:root {
    --bg: #ffffff;
    --bg-soft: #f7f7f5;
    --orange: #f7941d;
    --orange-dark: #d97400;
    --orange-soft: #fff5e8;
    --ink: #1e1e1e;
    --muted: #666666;
    --line: #e6e3df;
    --white: #ffffff;
    --radius: 18px;
    --shadow: 0 18px 46px rgba(36, 28, 18, 0.10);
    --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: 16px;
    top: 16px;
    z-index: 999;
    padding: 10px 14px;
    background: white;
    border: 2px solid var(--orange);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.brand {
    display: block;
    width: 215px;
    flex: 0 0 auto;
}

.brand img {
    display: block;
    width: 100%;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 21px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    font-size: .92rem;
    color: #3e3e3e;
    padding: 30px 0 27px;
    border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--orange-dark);
    border-bottom-color: var(--orange);
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 84px;
    background:
        linear-gradient(90deg, #fff 0%, #fff 58%, #fff8ef 100%);
    border-bottom: 1px solid var(--line);
}

.hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(247,148,29,.10);
    right: -160px;
    top: -180px;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .75fr);
    gap: 68px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--orange-dark);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 800;
}

.hero h1,
.section h2 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: -.03em;
}

.hero h1 {
    max-width: 820px;
    font-size: clamp(2.8rem, 5vw, 5rem);
}

.hero h1::after {
    content: "";
    display: block;
    width: 96px;
    height: 5px;
    margin-top: 26px;
    background: var(--orange);
    border-radius: 999px;
}

.hero-lead {
    max-width: 760px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 1.18rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 700;
}

.button-primary {
    background: var(--orange);
    color: #202020;
}

.button-primary:hover { background: #ffa631; }

.button-secondary {
    background: white;
    border: 1px solid var(--line);
}

.button-secondary:hover { border-color: var(--orange); }

.button-light {
    background: white;
    color: #222;
}

.hero-visual {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-accent {
    position: absolute;
    width: 82%;
    height: 82%;
    background: var(--orange);
    border-radius: 22px;
    transform: rotate(5deg);
    opacity: .22;
}

.hero-panel {
    position: relative;
    width: 100%;
    max-width: 390px;
    padding: 34px;
    color: white;
    background: #252525;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-panel-label {
    display: block;
    margin-bottom: 16px;
    color: #ffc67f;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .74rem;
    font-weight: 800;
}

.hero-panel strong {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    font-size: 1.45rem;
}

.hero-panel p {
    margin: 18px 0 0;
    color: #dedede;
}

.standards-strip {
    background: var(--orange);
    border-bottom: 1px solid #e8830e;
}

.standards-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    overflow-x: auto;
}

.standards-inner span {
    white-space: nowrap;
    font-weight: 800;
    font-size: .9rem;
}

.section { padding: 88px 0; }

.section-heading {
    max-width: 770px;
    margin-bottom: 38px;
}

.section h2 {
    font-size: clamp(2rem, 3.6vw, 3.35rem);
}

.section-heading > p:last-child,
.section-copy {
    color: var(--muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card {
    position: relative;
    padding: 30px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 5px;
    background: var(--orange);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.service-number {
    margin: 8px 0 32px;
    color: var(--orange-dark);
    font-weight: 800;
}

.service-card h3 {
    margin: 0 0 10px;
    font-size: 1.5rem;
}

.service-card p { color: var(--muted); }

.service-card a,
.text-link {
    color: var(--orange-dark);
    font-weight: 800;
}

.section-orange-soft {
    background: var(--orange-soft);
}

.experience-grid {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 70px;
    align-items: center;
}

.experience-stat {
    padding: 38px;
    background: var(--orange);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.experience-year {
    display: block;
    line-height: 1;
    font-size: clamp(4.2rem, 8vw, 7.5rem);
    font-weight: 900;
    letter-spacing: -.06em;
}

.experience-stat p {
    margin-bottom: 0;
    font-weight: 700;
}

.client-name-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.client-name-grid span {
    min-height: 120px;
    display: flex;
    align-items: center;
    padding: 22px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-weight: 700;
}

.clients-action { margin-top: 28px; }

.cta-section { padding-top: 0; }

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 44px;
    background: var(--orange);
    border-radius: var(--radius);
}

.cta-box .eyebrow { color: #6d3d00; }
.cta-box h2 { max-width: 760px; }

.site-footer {
    padding: 58px 0 24px;
    background: #1d1d1d;
    color: #d9d9d9;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
}

.footer-logo {
    width: 220px;
    margin-bottom: 16px;
}

.site-footer h2 {
    margin-top: 0;
    color: white;
    font-size: 1rem;
}

.site-footer a { color: #e8e8e8; }

.footer-bottom {
    margin-top: 42px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: #a7a7a7;
    font-size: .9rem;
}

@media (max-width: 1020px) {
    .nav-toggle { display: block; }

    .main-nav {
        display: none;
        position: absolute;
        top: 86px;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(0,0,0,.06);
    }

    .main-nav.is-open { display: block; }

    .main-nav ul {
        display: block;
        width: min(var(--container), calc(100% - 40px));
        margin: 0 auto;
        padding: 12px 0 18px;
    }

    .main-nav a {
        display: block;
        padding: 12px 0;
        border-bottom: 0;
    }

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

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

    .client-name-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .container { width: min(100% - 28px, var(--container)); }
    .header-inner { min-height: 76px; }
    .brand { width: 180px; }
    .main-nav { top: 76px; }
    .hero { padding: 64px 0 58px; }
    .hero h1 { font-size: 2.65rem; }
    .section { padding: 64px 0; }
    .hero-visual { min-height: auto; }
    .hero-accent { display: none; }
    .client-name-grid { grid-template-columns: 1fr; }
    .standards-inner { justify-content: flex-start; }
    .cta-box { align-items: flex-start; flex-direction: column; }
}

/* ==========================================================
   Home V2: Tres líneas de servicio, un mismo propósito
   Rediseño 2026-09-08
   Reemplaza visualmente el diagrama orbital por una jerarquía
   simple: tres servicios -> propósito compartido.
   ========================================================== */

.service-purpose {
    margin: 46px 0 54px;
}

.service-purpose-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.purpose-card {
    position: relative;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(36, 28, 18, 0.08);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.purpose-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 5px;
    background: var(--orange);
    border-radius: var(--radius) var(--radius) 0 0;
}

.purpose-card:hover,
.purpose-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--orange);
    box-shadow: var(--shadow);
}

.purpose-number {
    margin-bottom: 18px;
    color: var(--orange-dark);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.purpose-card strong {
    color: var(--ink);
    font-size: 1.45rem;
    line-height: 1.2;
}

.purpose-card small {
    margin-top: 8px;
    color: var(--muted);
    font-size: .95rem;
}

.purpose-connector {
    width: min(760px, 78%);
    height: 42px;
    margin: 0 auto;
    position: relative;
}

.purpose-connector::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 18px;
    height: 1px;
    background: #efc18b;
}

.purpose-connector::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 18px;
    width: 1px;
    height: 24px;
    background: #efc18b;
}

.purpose-connector span {
    position: absolute;
    top: 0;
    width: 1px;
    height: 19px;
    background: #efc18b;
}

.purpose-connector span:nth-child(1) { left: 0; }
.purpose-connector span:nth-child(2) { left: 50%; }
.purpose-connector span:nth-child(3) { right: 0; }

.purpose-result {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 28px 34px;
    text-align: center;
    background: var(--orange);
    border: 1px solid #e8830e;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.purpose-result span {
    display: block;
    margin-bottom: 5px;
    color: #744000;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    font-weight: 900;
}

.purpose-result strong {
    display: block;
    color: #1e1e1e;
    font-size: clamp(1.5rem, 2.4vw, 2.15rem);
    line-height: 1.15;
}

.purpose-result small {
    display: block;
    max-width: 610px;
    margin: 9px auto 0;
    color: #3d2a12;
    font-size: .96rem;
}

/* El panel de estándares queda separado del diagrama de servicios. */
.visual-story-section .standards-map {
    margin-top: 0;
}

@media (max-width: 800px) {
    .service-purpose-grid {
        grid-template-columns: 1fr;
    }

    .purpose-card {
        min-height: 145px;
    }

    .purpose-connector {
        display: none;
    }

    .purpose-result {
        margin-top: 22px;
    }
}
