:root {
    --ink: #17201c;
    --paper: #f4f0e7;
    --canvas: #dce3dc;
    --accent: #d65b35;
    --moss: #526b57;
    --line: rgba(23, 32, 28, 0.16);
    --page-width: 560px;
    --page-height: 760px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--canvas);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    background-color: var(--canvas);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
    background-size: 32px 32px;
}

button,
a {
    font: inherit;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.brochure-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px clamp(18px, 3vw, 48px) 12px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding-bottom: 7px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
}

.brand-mark-image {
    display: block;
    width: 100%;
    height: auto;
}

.edition {
    margin: 0;
    color: rgba(23, 32, 28, 0.62);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.viewer {
    position: relative;
    display: grid;
    min-height: 0;
    place-items: center;
    overflow: hidden;
}

.book {
    width: min(100%, calc(var(--page-width) * 2));
    height: clamp(320px, 88dvh, var(--page-height));
    filter: drop-shadow(0 22px 24px rgba(23, 32, 28, 0.18));
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.book.is-ready {
    opacity: 1;
    transform: translateY(0);
}

.page {
    position: relative;
    overflow: hidden;
    color: var(--ink);
    background: var(--paper);
}

.page::after {
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 1px solid rgba(23, 32, 28, 0.08);
    content: "";
    pointer-events: none;
}

.page-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #ffffff;
}

.page-background-image {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-background::after {
    position: absolute;
    inset: 0;
    content: "";
}

.page--cover {
    color: #fff;
    background: #16232d;
}

.cover-background {
    position: absolute;
    inset: 0;
    filter: saturate(0.78) contrast(1.08);
}

.cover-background-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cover-background::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 18, 27, 0.8) 0%, rgba(8, 18, 27, 0.18) 34%, rgba(8, 18, 27, 0.88) 100%);
    content: "";
}

.cover-content {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 6% 6% 4%;
}

.cover-brand,
.cover-company,
.cover-subtitle,
.cover-title,
.cover-edition {
    margin: 0;
}

.cover-brand {
    display: block;
    width: min(82%, 560px);
    height: auto;
    max-height: 100px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
     margin-top: -20px;          /* sube o baja */
    transform: translateX(-20px) translateY(-25px);
}

.cover-company {
    align-self: flex-end;
    margin-top: -0.2em;
    color: #fff;
    font-size: clamp(0.62rem, 1.2vw, 0.85rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    transform: translateY(-100px); /* ajuste fino */
}

.cover-subtitle {
    max-width: 90%;
    margin-top: 3%;
    font-size: clamp(0.7rem, 1.5vw, 1rem);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    transform: translateY(-60px); /* ajuste fino */
}

.cover-title {
    max-width: 88%;
    margin-top: 16px;
    color: #ff713f;
    font-size: clamp(1.1rem, 2.7vw, 1.8rem);
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.7);
        transform: translateY(-70px); /* ajuste fino */
}

.cover-team-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 52%;
    max-height: 54%;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-team-container::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 75%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.6) 0%, rgba(220, 235, 255, 0.35) 100%, rgba(180, 210, 245, 0.12) 60%, transparent 75%);
    filter: blur(14px);
    border-radius: 50%;
    content: "";
    z-index: 0;
}

.cover-team-image {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.35)) drop-shadow(0 12px 20px rgba(0, 0, 0, 0.7));
    transform: translateY(-30px); /* ajuste fino */
}

.cover-bottom {
    position: relative;
    z-index: 2;
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
    padding-bottom: 4px;
    width: 100%;
}

.cover-highlights {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(8, 20, 32, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.cover-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cover-highlight:not(:last-child) {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cover-highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    color: #ffb36b;
}

.cover-highlight-icon svg {
    width: 20px;
    height: 20px;
}

.cover-highlight-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cover-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(8, 20, 32, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    text-align: right;
}

.cover-side-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cover-side-item:not(:last-child) {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cover-content .section-title {
    color: #ffb36b;
    font-size: clamp(0.62rem, 1.15vw, 0.74rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.cover-content .section-text {
    color: #ffffff;
    font-size: clamp(0.55rem, 1.05vw, 0.7rem);
    line-height: 1.25;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.cover-edition {
    position: relative;
    z-index: 2;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.58rem;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.page-image {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
}

.page-image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 20, 17, 0.05) 20%, rgba(14, 20, 17, 0.86) 100%);
    content: "";
}

.page-copy {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(28px, 8%, 64px);
    color: var(--ink);
}

.page--page1 .page-copy {
    padding-top: 15%; /* Altura del contenido de Page1. */
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 190px);
    grid-template-rows: auto 1fr;
    column-gap: 18px;
    align-content: start;
}

.page--page2 .page-copy {
    padding-top: 15%; /* Altura del contenido de Page2. */
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: 10px;
    align-content: start;
}

.page--page3 .page-copy {
    padding-top: 15%; /* Altura del contenido de Page3. */
    gap: 8px;
}

.page--page4 .page-copy {
    padding-top: 15%; /* Altura del contenido de Page4. */
    gap: 8px;
}

.page--page5 .page-copy {
    padding-top: 15%; /* Altura del contenido de Page5. */
}

.page--page5 .page-background::after {
    background:
        linear-gradient(180deg, rgba(8, 17, 24, 0.82), rgba(8, 17, 24, 0.68)),
        linear-gradient(135deg, rgba(214, 64, 35, 0.2), transparent 48%);
}

.page--page5 .page-number,
.page--page5 .page-eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.page--page5 .page-eyebrow {
    display: none;
}

.closing-copy {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    align-content: start;
    padding: 7% 6% 5%;
    color: #fff;
}

.closing-title {
    margin: 0;
    color: #f26b42;
    font-size: clamp(1.35rem, 3.6vw, 2.15rem);
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.closing-tagline {
    margin: 7px 0 16px;
    color: #fff;
    font-size: clamp(0.72rem, 1.4vw, 0.92rem);
    font-weight: 500;
    text-align: center;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.85);
}

.closing-logo {
    display: block;
    width: min(92%, 440px);
    height: 142px;
    margin: 0 auto 14px;
    padding: 18px 22px;
    border: 2px solid rgba(232, 63, 35, 0.88);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.52),
        0 0 0 6px rgba(255, 255, 255, 0.12),
        0 0 30px rgba(231, 62, 34, 0.3);
    object-fit: contain;
}

.closing-contacts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-content: start;
    grid-auto-flow: row dense;
}

.closing-contact {
    display: grid;
    min-width: 0;
    height: 54px;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 8px 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 7px;
    background: rgba(11, 25, 36, 0.84);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(7px);
}

.closing-contact--direccion {
    grid-column: 1 / -1;
    grid-template-columns: 34px minmax(0, 1fr);
    width: 100%;
    height: 72px;
    order: -1;
    padding: 9px 12px;
    background: rgba(11, 25, 36, 0.92);
}

.closing-contact--direccion .closing-contact-value {
    overflow-wrap: normal;
    font-size: clamp(0.51rem, 0.9vw, 0.62rem);
    line-height: 1.25;
}

.closing-contact-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #d93620;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.closing-contact-icon svg {
    width: 16px;
    height: 16px;
}

.closing-contact-body {
    min-width: 0;
}

.closing-contact-title {
    display: block;
    margin-bottom: 2px;
    color: #f58b65;
    font-size: clamp(0.54rem, 1vw, 0.66rem);
    line-height: 1;
    text-transform: uppercase;
}

.closing-contact-value {
    display: block;
    overflow-wrap: anywhere;
    color: #fff;
    font-size: clamp(0.53rem, 0.95vw, 0.65rem);
    line-height: 1.18;
    text-decoration: none;
}

a.closing-contact-value:hover {
    color: #ff9b78;
}

.page-brand-header {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    padding: 6% 6% 4%;
    pointer-events: none;
}

.page-eyebrow {
    position: absolute;
    right: 6%; /* Distancia desde el borde derecho. */
    bottom: 4%; /* Altura desde el borde inferior. */
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 0.68rem;
    font-weight: 600;
    text-align: right;
    text-transform: uppercase;
}

.page-eyebrow::before {
    width: 28px;
    height: 2px;
    background: var(--accent);
    content: "";
}

.page-signature {
    position: absolute;
    right: 6%; /* Alineación horizontal con el nombre de la página. */
    bottom: 8%; /* Ajusta la altura de la firma. */
    width: min(32%, 145px); /* Ajusta el tamaño de la firma. */
    height: auto;
    object-fit: contain;
    object-position: right bottom;
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.7));
}

.page-title {
    max-width: 460px;
    margin: 0 0 18px;
    color: #ff713f;
    font-family: "DM Sans", sans-serif;
    font-size: clamp(1.1rem, 2.7vw, 1.8rem);
    font-style: normal;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.7);
}

.page-detail {
    max-width: 390px;
}

.page-subtitle {
    margin: 0 0 4px;
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    font-weight: 700;
    line-height: 1.1;
}

.page--page1 .page-detail {
    grid-column: 2;
    grid-row: 2;
    width: 100%; /* Ajusta el ancho del bloque. */
    max-width: 190px;
    margin-top: 0; /* Ajusta para subir o bajar solo Sobre Nosotros y su texto. */
    color: #111;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.95), 0 1px 3px rgba(255, 255, 255, 0.8);
}

.page--page1 .page-title {
    grid-column: 1 / -1;
}

.page--page2 .page-title {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.page--page3 .page-title,
.page--page4 .page-title {
    margin-bottom: 0;
}

.page--page3 > .page-content > .page-copy > .page-text,
.page--page4 > .page-content > .page-copy > .page-text {
    color: #fff;
    font-size: clamp(0.7rem, 1.2vh, 0.86rem);
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.page-values-image {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    height: auto;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.25);
}

.page--page1 .page-text {
    font-size: clamp(0.78rem, 1.35vh, 0.96rem);
    font-weight: 500;
    line-height: 1.12;
    text-align: justify;
    text-justify: inter-word;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.page-text {
    max-width: 390px;
    margin: 0;
    font-size: clamp(0.88rem, 1.5vh, 1.05rem);
    line-height: 1.65;
}

.page-sections {
    display: grid;
    gap: 10px;
    max-width: 460px;
    margin-top: 20px;
}

.page--page1 .page-sections {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    gap: 0;
    margin-top: 0;
    min-height: 280px; /* Altura general del bloque Misión y Visión. */
    padding: 20px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    color: #fff;
    background: rgba(12, 28, 42, 0.88);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(5px);
}

.page--page2 .page-sections {
    grid-column: 1 / -1;
    grid-row: 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 0;
}

.page--page2 .page-section {
    display: block;
    height: 64px;
}

.page--page2 .page-section-icon {
    display: none;
}

.page--page2 .page-section-body {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    padding: 8px 6px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(145deg, #dc351f, #a8140c);
    box-shadow: 0 5px 12px rgba(100, 10, 5, 0.3);
    text-align: center;
}

.page--page2 .section-title {
    color: #fff;
    font-size: clamp(0.56rem, 1vw, 0.7rem);
    line-height: 1.15;
}

.page--page2 .section-text {
    order: -1;
    margin-bottom: 2px;
    color: #fff;
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    font-weight: 700;
    line-height: 1;
}

.page-gallery {
    position: relative;
    display: block;
    grid-column: 1 / -1;
    grid-row: 4;
    min-height: 200px;
    margin-top: 2px;
}

.page-gallery-image {
    position: absolute;
    display: block;
    border: 4px solid rgba(255, 255, 255, 0.96);
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.38);
}

.page-gallery-image--1 {
    left: 3%;
    top: 2px;
    z-index: 2;
    width: 38%;
    height: 190px;
    object-position: 56% center;
    transform: rotate(1deg);
}

.page-gallery-image--2 {
    top: 9px;
    right: 0;
    z-index: 1;
    width: 68%;
    height: 96px;
    object-position: center 62%;
    transform: rotate(-2.5deg);
}

.page-gallery-image--3 {
    right: 4%;
    bottom: 2px;
    z-index: 3;
    width: 62%;
    height: 102px;
    object-position: center 70%;
    transform: rotate(1.8deg);
}

.page-gallery::after {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 0;
    width: 43%;
    height: 184px;
    border-radius: 6px;
    background: #d83b21;
    content: "";
}

.service-cards {
    width: 100%;
    max-width: none;
    margin-top: 4px;
}

.service-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(224, 76, 43, 0.8);
    border-radius: 12px;
    background: #111d28;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.34);
}

.service-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-body {
    position: relative;
    overflow: visible;
    color: #fff;
    background: linear-gradient(145deg, rgba(20, 34, 46, 0.98), rgba(10, 20, 29, 0.98));
}

.service-card-badge {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #bd291c;
    box-shadow: 0 4px 9px rgba(0, 0, 0, 0.38);
    font-size: 0.72rem;
    font-weight: 700;
}

.service-card-title,
.service-card-text {
    position: relative;
    z-index: 1;
    margin: 0;
}

.service-card-title {
    color: #f08a61;
    font-size: clamp(0.78rem, 1.6vw, 1.02rem);
    line-height: 1.08;
    text-transform: uppercase;
}

.service-card-text {
    margin-top: 6px;
    font-size: clamp(0.62rem, 1.05vh, 0.75rem);
    font-weight: 400;
    line-height: 1.25;
}

.service-card-number {
    position: absolute;
    right: 8px;
    bottom: -8px;
    color: transparent;
    font-size: clamp(2.8rem, 7vw, 4.3rem);
    font-weight: 700;
    line-height: 1;
    -webkit-text-stroke: 1px rgba(240, 110, 75, 0.78);
}

.page--page3 .service-cards,
.page--page4 .service-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 430px;
    gap: 12px;
}

.page--page3 .service-card,
.page--page4 .service-card {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    height: 430px;
    min-height: 0;
    grid-template-rows: 58% 42%;
}

.page--page3 .service-card-body,
.page--page4 .service-card-body {
    padding: 18px 13px 38px;
}

.page--page3 .service-card-badge,
.page--page4 .service-card-badge {
    left: 50%;
    top: -17px;
    transform: translateX(-50%);
}

.page--page3 .service-card-image,
.page--page4 .service-card-image {
    object-position: center 55%;
}

.page-section {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.page--page1 .page-section + .page-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.page-section-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #df431f;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.page-section-icon svg {
    width: 24px;
    height: 24px;
}

.page-section-body {
    min-width: 0;
}

.page--page1 .section-title {
    margin-bottom: 7px;
    color: #ff9a5c;
    font-size: clamp(1rem, 1.8vw, 1.2rem); /* Tamaño de Misión y Visión. */
    line-height: 1.1;
}

.page--page1 .section-text {
    color: #fff;
    font-family: "DM Sans", sans-serif;
    font-size: clamp(0.76rem, 1.35vh, 0.94rem); /* Tamaño de los textos. */
    font-weight: 400;
    line-height: 1.45; /* Espacio entre líneas. */
}

.section-title,
.section-text {
    margin: 0;
}

.section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.section-text {
    font-size: 0.84rem;
    line-height: 1.5;
}

.page-number {
    position: absolute;
    z-index: 3;
    top: 28px;
    right: 30px;
    color: rgba(23, 32, 28, 0.58);
    font-size: 0.66rem;
}

.page--about .page-image::after {
    background: linear-gradient(90deg, rgba(14, 20, 17, 0.9), rgba(14, 20, 17, 0.18));
}

.page--about .page-copy {
    top: 12%;
    bottom: auto;
}

.page--services .page-image::after {
    background: linear-gradient(180deg, rgba(14, 20, 17, 0.16), rgba(14, 20, 17, 0.9));
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.service-list li {
    border: 1px solid rgba(255, 255, 255, 0.52);
    padding: 8px 11px;
    font-size: 0.68rem;
    text-transform: uppercase;
}

.page--contact .page-image::after {
    background: rgba(23, 32, 28, 0.72);
}

.contact-links {
    display: grid;
    gap: 7px;
    margin-top: 24px;
}

.contact-links a {
    width: fit-content;
    color: #fffdf8;
    font-size: 0.82rem;
    text-underline-offset: 4px;
}

.loading-state,
.error-state {
    position: absolute;
    z-index: 10;
    display: grid;
    justify-items: center;
    gap: 15px;
    color: rgba(23, 32, 28, 0.68);
    font-size: 0.78rem;
    text-align: center;
}

.loading-line {
    width: 120px;
    height: 2px;
    overflow: hidden;
    background: rgba(23, 32, 28, 0.14);
}

.loading-line::after {
    display: block;
    width: 45%;
    height: 100%;
    background: var(--accent);
    animation: loading 1.1s ease-in-out infinite alternate;
    content: "";
}

.retry-button {
    border: 0;
    padding: 10px 16px;
    color: #fff;
    background: var(--ink);
    cursor: pointer;
}

.book-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.icon-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--ink);
    background: rgba(244, 240, 231, 0.7);
    cursor: pointer;
}

.icon-button:hover:not(:disabled) {
    color: #fff;
    background: var(--ink);
}

.icon-button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.icon-button svg,
.download-fab svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

.page-indicator {
    min-width: 72px;
    font-size: 0.72rem;
    text-align: center;
}

.download-fab {
    position: fixed;
    z-index: 50;
    right: clamp(16px, 3vw, 34px);
    bottom: clamp(16px, 3vw, 28px);
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 12px 24px rgba(73, 35, 23, 0.25);
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.download-fab:hover {
    background: #b94423;
}

.download-fab:disabled {
    cursor: wait;
    opacity: 0.72;
}

.pdf-export-stage {
    position: fixed;
    left: -10000px;
    top: 0;
    width: 560px;
    height: 760px;
    overflow: hidden;
}

.pdf-export-page {
    position: relative !important;
    display: block !important;
    width: 560px !important;
    height: 760px !important;
    transform: none !important;
}

.pdf-export-page .cover-brand {
    width: 340px !important;
    max-width: 82% !important;
    max-height: 72px !important;
}

.pdf-export-page .page-content {
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
}

[hidden] {
    display: none !important;
}

@keyframes loading {
    from { transform: translateX(-10%); }
    to { transform: translateX(130%); }
}

@media (max-width: 700px) {
    .brochure-shell {
        height: auto;
        min-height: 100vh;
        gap: 12px;
        padding: 16px 12px 80px;
    }

    .book {
        width: min(100%, var(--page-width));
        height: min(70vh, var(--page-height));
    }

    .page-content {
        width: 560px;
        height: 760px;
        transform: scale(var(--mobile-page-scale, 0.65));
        transform-origin: top left;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .book-controls {
        position: relative;
        z-index: 20;
        gap: 20px;
        transform: translateY(-28px);
    }

    .icon-button {
        width: 48px;
        height: 48px;
        border-color: rgba(23, 32, 28, 0.26);
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 5px 14px rgba(23, 32, 28, 0.16);
    }

    .icon-button svg {
        width: 22px;
        height: 22px;
        stroke-width: 2.2;
    }

    .page-indicator {
        min-width: 76px;
        font-size: 0.8rem;
        font-weight: 600;
    }

    .download-fab {
        right: 12px;
        bottom: 12px;
    }
}

@media (max-width: 430px) {
    .download-fab span {
        max-width: 150px;
        line-height: 1.2;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}