@charset "UTF-8";

/* 1. Configuración visual: colores, tamaños y espacios compartidos. */
:root {
    --ink: #102F4F;
    --navy: #102F4F;
    --blue: #2463A6;
    --green: #087F78;
    --accent: #9be6df;
    --gold: #B89046;
    --paper: #F5F7F6;
    --muted: #4b6076;
    --line: #cedde9;
    --logo-width: 170px;
    --footer-logo-width: 135px;
    --radius: 16px;
    --section-space: 36px;
    --transition: 220ms ease;
}

/* 2. Base y accesibilidad. Ningún texto baja de .95rem. */
* {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 135px;
}

body {
    margin: 0;
    font: 1rem/1.65 "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: white;
}

a {
    color: inherit;
    text-underline-offset: 4px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font: inherit;
}

button, a {
    touch-action: manipulation;
}

button {
    cursor: pointer;
}

small, sub, sup {
    font-size: .95rem;
}

h1, h2, h3, p, figure {
    margin-top: 0;
}

p {
    margin-bottom: 20px;
}

h1, h2 {
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.12;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.1rem, 3.8vw, 3.6rem);
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(2rem, 3.3vw, 3.2rem);
    margin-bottom: 24px;
}

h3 {
    font-size: 1.35rem;
    font-weight: 650;
    line-height: 1.35;
    margin-bottom: 14px;
}

em {
    font-family: Georgia, serif;
    color: var(--green);
    font-weight: 400;
}

:focus-visible {
    outline: 3px solid #b57a00;
    outline-offset: 5px;
}

::selection {
    background: var(--accent);
    color: var(--navy);
}

.container {
    width: min(1280px, calc(100% - 64px));
    margin-inline: auto;
}

.section {
    padding-block: var(--section-space);
}

.section>.container> :last-child, .page-hero>.container> :last-child {
    margin-bottom: 0;
}

.muted {
    background: linear-gradient(140deg, #F5F7F6, #e5f0ef);
}

.eyebrow {
    font-size: .95rem;
    line-height: 1.6;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 20px;
}

.intro {
    max-width: 900px;
    font-size: 1.20rem;
    color: var(--muted);
    line-height: 1.75;
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 100;
    padding: 12px;
    background: white;
}

.skip:focus {
    top: 10px;
}

/* 3. Botones y enlaces. */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 13px 19px;
    border: 1px solid var(--navy);
    border-radius: 999px;
    background: var(--navy);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.button:hover {
    background: #2463A6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px #123e701a;
}

.button.secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.button.secondary:hover {
    background: #e6f1f8;
}

.button:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--green);
    color: var(--green);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
}

.text-link:hover {
    color: var(--blue);
    border-color: var(--blue);
}

/* 4. Encabezado compartido: partials/header.html. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fffffff5;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav {
    min-height: 90px;
    padding-block: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-block;
    flex-shrink: 0;
    text-decoration: none;
}

.brand-caption { display: block; margin-top: 7px; font-size: .95rem; line-height: 1.3; font-weight: 650; letter-spacing: 0; color: var(--navy); }
.brand-caption > span { display: block; white-space: nowrap; }
.brand-caption > span:nth-child(2) { color: #087F78; }
.brand-innovation { color: #805b16; }
.footer-identity .brand-caption, .footer-identity .brand-caption > span, .footer-identity .brand-innovation { color: #e1f4f1; }
.brand-logo {
    width: var(--logo-width);
    height: auto;
    object-fit: contain;
}

.nav nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav nav>a {
    font-size: .95rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
}

.nav nav>a:not(.nav-contact)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.nav nav>a[aria-current=page]:not(.nav-contact) {
    color: var(--green);
}

.nav nav>a[aria-current=page]::after, .nav nav>a:hover::after {
    transform: scaleX(1);
}

.nav-contact {
    background: var(--navy);
    color: white;
    padding: 10px 18px;
    border-radius: 5px;
}

.nav-contact:hover {
    background: var(--blue);
}

.menu-toggle {
    display: none;
    font-size: 1rem;
    border: 1px solid var(--line);
    padding: 10px 12px;
    color: var(--ink);
    background: white;
    border-radius: 4px;
}

/* 5. Portada y encabezados de página. */
.home-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 85% 55%, #087F7855, transparent 50%), linear-gradient(120deg, #061b36, #102F4F);
    color: #f4faff;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: center;
    min-height: 0;
    padding-block: 24px;
}

.hero-copy {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.hero-copy .eyebrow {
    color: #8ee4da;
}

.hero-copy h1 {
    font-size: clamp(2rem, 2.65vw, 3rem);
    font-weight: 600;
    line-height: 1.16;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.08rem;
    color: #cadce9;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero-copy .button {
    background: linear-gradient(135deg, #087F78, #096773);
    box-shadow: inset 0 1px 0 #ffffff30, 0 6px 22px #087F7833;
    border-color: #44d9d1;
    color: white;
}

.hero-copy .button:hover {
    background: #096d68;
}

.hero-copy .button.secondary {
    background: #F5F7F6;
    border-color: #F5F7F6;
    color: #102F4F;
}

.hero-copy .button.secondary:hover {
    background: #e2eeed;
}

.hero-question { display: block; font-size: 1.5rem; font-weight: 750; line-height: 1.3; margin-bottom: 12px; color: #dcfff4; }

.hero-foot {
    font-size: 1.25rem;
    margin: 28px 0 0;
    color: #a3cdc9;
    padding-top: 22px;
    border-top: 1px solid #ffffff26;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding-block: 36px 28px;
    background: radial-gradient(ellipse at 90% 10%, #087F7870, transparent 58%), linear-gradient(120deg, #061b36, #102F4F);
    color: #F5F7F6;
    border-bottom: 1px solid var(--line);
}

.page-hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid #B8904655;
    border-radius: 50%;
    right: -140px;
    top: -180px;
    pointer-events: none;
}

.page-hero .eyebrow { color: #8fe4d8; }
.page-hero .intro, .page-hero > .container > div > p { color: #d8e8ef; }
.page-hero h1 {
    max-width: 1000px;
}

.page-hero .intro {
    margin-bottom: 0;
}

.breadcrumb, .breadcrumb-divider {
    font-size: .95rem;
    color: var(--muted);
}

.breadcrumb-divider {
    margin-inline: 12px;
}

.page-heading {
    margin-top: 30px;
}

.evidence-feature {
    background: linear-gradient(115deg, #102F4F, #087F78);
    color: white;
}

.editorial-evidence {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.editorial-evidence .eyebrow {
    color: var(--accent);
}

.editorial-evidence h2 {
    margin-bottom: 0;
}

/* 6. Soluciones y entregables. */
.services-intro {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 40px;
}

.services-intro>div {
    min-width: 0;
}

.services-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 18px 42px #123e701a;
}

.editorial-solutions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.editorial-solution {
    scroll-margin-top: 140px;
    padding: 32px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: 0 5px 22px #123e7008;
    transition: transform var(--transition), box-shadow var(--transition);
}

.editorial-solution:nth-child(even) {
    border-top-color: var(--green);
}

.editorial-solution:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px #123e7014;
}

.editorial-solution h2 {
    font-size: 1.25rem;
    letter-spacing: .005em;
    line-height: 1.4;
    margin-bottom: 18px;
}

.solution-lead {
    font-size: 1.1rem;
    color: var(--muted);
}

.service-items {
    padding-left: 21px;
    margin-block: 0 26px;
}

.service-items li {
    padding-left: 4px;
    margin-bottom: 12px;
}

.service-items li::marker {
    color: var(--green);
}

.editorial-solution .text-link {
    align-self: flex-end;
    margin-top: auto;
}


#entregables {
    background: linear-gradient(120deg, #102F4F, #087F78);
    color: #F5F7F6;
    border-block: 1px solid var(--gold);
}

#entregables > .container > .intro { color: #e1eef2; }

.editorial-deliverables article {
    color: var(--navy);
    border: 1px solid var(--line);
    border-top: 3px solid var(--green);
    padding: 26px;
    border-radius: var(--radius);
    background: white;
}

.editorial-deliverables h3 {
    font-size: 1.3rem;
}

/* 7. Enfoque, contexto, experiencia e identidad. */
.editorial-cycle {
    list-style: none;
    padding: 0;
    margin-block: 24px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 15px;
}

.editorial-cycle li {
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(140deg, #102F4F, #104c58);
    color: #F5F7F6;
    border-color: #B8904680;
}

.step-number {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    background: #087F78;
    border: 1px solid #B89046;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    margin-bottom: 12px;
}

.editorial-cycle li:nth-child(even) { background: linear-gradient(140deg, #2463A6, #174777); }

.editorial-cycle h3 { font-size: 1.08rem; line-height: 1.3; margin-bottom: 10px; }

.editorial-cycle p {
    font-size: .95rem;
    line-height: 1.5;
    margin: 0;
    color: #d9eaf0;
}

.qualification-image {
    margin: 32px 0 0;
}

.qualification-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 16px 40px #123e7014;
}

.qualification-image a {
    display: block;
    cursor: zoom-in;
}

.cycle-summary {
    max-width: 900px;
    font-size: 1.15rem;
}

.editorial-context, .editorial-countries {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.editorial-context article, .editorial-countries article {
    border-left: 3px solid var(--blue);
    padding: 12px 30px 20px;
}

.editorial-context h2, .editorial-countries h2 {
    font-size: 1.9rem;
}

.source {
    font-size: .95rem;
    color: var(--muted);
    margin-top: 24px;
}

.sector-sequence {
    padding-block: 24px;
    font-size: 1.2rem;
    color: var(--blue);
    line-height: 1.9;
    font-weight: 600;
}

.editorial-countries {
    margin-bottom: 28px;
}

.editorial-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 24px;
}

.editorial-values article {
    background: white;
    border-top: 3px solid var(--green);
    padding: 28px;
    border-radius: var(--radius);
}

.editorial-values h3 {
    font-size: 1.45rem;
}

/* Nosotros: contenido completo con una jerarquía más compacta. */
body[data-page="nosotros.html"] .page-hero { padding-block: 20px 16px; }
body[data-page="nosotros.html"] .page-hero .eyebrow { color: #8fe4d8; }
.page-hero .intro, .page-hero > .container > div > p { color: #d8e8ef; }
.page-hero h1 { font-size: clamp(1.8rem, 2.5vw, 2.4rem); margin-bottom: 12px; }
body[data-page="nosotros.html"] .intro { max-width: none; font-size: 1.05rem; line-height: 1.5; }
body[data-page="nosotros.html"] .intro + .intro { margin-top: 8px; }
#identidad { padding-block: 20px 24px; }
#identidad h2 { font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: 1.2; margin-bottom: 12px; }
#identidad > .container > p { margin-bottom: 16px; line-height: 1.5; }
#identidad .editorial-values { margin-top: 16px; gap: 20px; }
#identidad .editorial-values article { padding: 18px; }
#identidad .editorial-values h3 { font-size: 1.2rem; margin-bottom: 10px; }
#identidad .editorial-values p { font-size: 1rem; line-height: 1.5; margin-bottom: 0; }

/* 8. Contacto. */
.editorial-contact {
    max-width: 920px;
    margin-inline: auto;
}

#contact-form {
    min-width: 0;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #F5F7F6;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#contact-form label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
}

#contact-form input:not([type=checkbox]), #contact-form select, #contact-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 12px;
    margin-top: 8px;
    background: white;
    color: var(--ink);
    font-size: 1rem;
}

#contact-form textarea {
    resize: vertical;
    min-height: 135px;
}

#contact-form>.full {
    margin-bottom: 24px;
}

#contact-form>.full>label {
    font-size: 1.2rem;
}

.full {
    grid-column: 1 / -1;
}

.trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#contact-form .consent {
    display: flex;
    gap: 12px;
    margin: 24px 0;
    font-weight: 400;
    color: var(--muted);
    align-items: flex-start;
}

.consent input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: 4px;
    accent-color: var(--green);
}

.consent>span {
    min-width: 0;
    overflow-wrap: anywhere;
}

#form-status {
    font-size: 1rem;
    margin: 18px 0 0;
}

#form-status:empty {
    display: none;
}

#form-status[data-kind=error] {
    color: #a32720;
}

#form-status[data-kind=success] {
    color: var(--green);
}

.editorial-promo {
    background: linear-gradient(120deg, #102F4F, #087F78);
    color: white;
}

.editorial-promo .eyebrow {
    color: var(--accent);
}

.editorial-promo h2 {
    max-width: 900px;
}

.invoice {
    font-size: 1rem;
    letter-spacing: .1em;
    margin: 20px 0 0;
}

/* 9. Footer compartido: partials/footer.html. */
.site-footer {
    padding: 36px 0 22px;
    background: #102F4F;
    color: #edf5fc;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 48px;
    padding-bottom: 24px;
}

.footer-logo {
    display: inline-block;
    width: var(--footer-logo-width);
    max-width: 100%;
    padding: 10px;
    background: white;
    border-radius: 6px;
}

.footer-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-principles {
    max-width: 270px;
    font-size: 1rem;
    line-height: 1.8;
    color: #c3d9e9;
    margin: 22px 0 0;
}

.site-footer h2 {
    font-size: 1.2rem;
    letter-spacing: 0;
    font-weight: 650;
    margin-bottom: 20px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.site-footer a {
    font-size: 1rem;
    text-decoration: none;
}

.site-footer a:not(.footer-logo):not(.button):hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer-contact h2 {
    margin-bottom: 0;
}

.footer-button {
    background: #a4e7e3;
    border-color: #a4e7e3;
    color: #103c51;
    text-align: left;
}

.footer-button:hover {
    background: #c6f3ef;
    color: #103c51;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid #ffffff30;
    color: #c3d9e9;
    font-size: .95rem;
}

/* 10. Aviso independiente de privacidad. */
.legal {
    max-width: 960px;
    padding-block: 28px 40px;
}

.legal-nav {
    margin-bottom: 24px;
}

.legal h1 {
    font-size: clamp(2.1rem, 4vw, 3rem);
}

.legal h2 {
    font-size: 1.6rem;
}

.legal h3 {
    font-size: 1.16rem;
}

.legal p, .legal li, .legal small, .legal address {
    font-size: 1rem;
    color: var(--muted);
}

.legal-section {
    padding: 25px 0;
    border-bottom: 1px solid var(--line);
}

.legal-eyebrow {
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--green);
}

.legal-blank {
    display: inline-block;
    min-width: 190px;
    border-bottom: 1px dashed #789081;
    min-height: 1.5em;
}

.legal-draft {
    padding: 20px;
    background: #f4eedf;
    border-left: 3px solid #B89046;
}

.legal-contact {
    font-style: normal;
    line-height: 1.9;
}

.legal-footer {
    margin-top: 24px;
}

/* Interacciones compartidas de las tarjetas. */
.orbit-node, .governance-steps li, .editorial-deliverables article, .editorial-cycle li, .editorial-context article, .editorial-countries article, .editorial-values article {
    transition: translate 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

:is(.orbit-node, .governance-steps li, .editorial-deliverables article, .editorial-cycle li, .editorial-context article, .editorial-countries article, .editorial-values article):hover {
    translate: 0 -4px;
    box-shadow: 0 16px 38px #123e7010;
    border-color: #72b5b6;
}

/* 11. Escritura progresiva; las entradas de sección se coordinan en effects.js. */
.typewriter-title {
    position: relative;
}

.typewriter-original {
    opacity: 0;
}

.typewriter-visual {
    position: absolute;
    inset: 0;
}

.typewriter-visual::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: .8em;
    margin-left: 4px;
    background: currentColor;
    animation: cursor-blink .75s steps(1) infinite;
}

@keyframes cursor-blink {
    50% {
        opacity: 0;
    }
}

/* 12. Adaptación a tableta y móvil. */
@media (max-width: 1100px) {
    .editorial-cycle { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nav {
        flex-wrap: wrap;
        padding-block: 12px;
        gap: 12px;
    }

    .nav nav {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav nav>a {
        white-space: normal;
        padding: 12px;
    }

    .nav nav>a::after {
        display: none;
    }

    .nav nav[data-collapsed=true] {
        display: none;
    }

    .menu-toggle:not([hidden]) {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .hero-layout {
        gap: 28px;
    }

    .hero-copy h1 {
        font-size: clamp(2rem, 3.6vw, 2.7rem);
    }

    .editorial-deliverables {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1.3fr;
        gap: 32px;
    }

    .footer-contact {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 780px) {
    .editorial-cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    :root {
        --logo-width: 150px;
        --section-space: 28px;
    }

    html {
        scroll-padding-top: 110px;
    }

    .container {
        width: calc(100% - 36px);
    }

    .nav {
        min-height: 98px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        padding-block: 32px;
    }

    .hero-copy h1 {
        font-size: clamp(2rem, 6.4vw, 2.65rem);
    }

    .hero-description {
        font-size: 1.05rem;
    }

    .hero-media {
        max-width: 600px;
        width: 100%;
        margin-inline: auto;
    }

    .page-hero {
        padding-block: 28px 24px;
    }

    .services-intro {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .editorial-evidence, .editorial-solutions, .editorial-context, .editorial-countries, .editorial-values {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .editorial-solution {
        padding: 24px;
        scroll-margin-top: 112px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-contact {
        grid-column: auto;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-principles {
        max-width: 420px;
    }
}

@media (max-width: 480px) {
    .editorial-cycle { grid-template-columns: 1fr; }
    .editorial-deliverables, .form-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions .button {
        width: 100%;
    }

    #contact-form {
        padding: 20px;
    }

    .legal-blank {
        min-width: 140px;
    }

    .footer-bottom {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        translate: none !important;
    }

    .button:hover, .editorial-solution:hover {
        transform: none;
    }
}