﻿/* ============================================
   VALYA — Administración de Fraccionamientos
   Design tokens
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
    --navy-950: #0B1F33;
    --navy-900: #122A44;
    --navy-800: #1B3A5C;
    --blue-600: #2F6FA3;
    --blue-700: #235882;
    --blue-300: #8FB7D8;
    --sand-100: #F5F2EA;
    --sand-50: #FAF8F3;
    --white: #FFFFFF;
    --amber-500: #D99A3D;
    --amber-600: #BE8330;
    --ink-900: #16232F;
    --ink-600: #48576A;
    --ink-400: #7E8B9C;
    --line: #E4DFD3;
    --display: 'Fraunces', serif;
    --body: 'Inter', sans-serif;
    --mono: 'IBM Plex Mono', monospace;
    --radius: 4px;
    --container: 1180px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--body);
    color: var(--ink-900);
    background: var(--sand-50);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

:focus-visible {
    outline: 2px solid var(--amber-500);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* ---------- Type scale ---------- */
h1, h2, h3 {
    font-family: var(--display);
    font-weight: 600;
    color: var(--ink-900);
    line-height: 1.12;
    margin: 0;
    letter-spacing: -0.01em;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber-600);
}

p {
    margin: 0;
    color: var(--ink-600);
    line-height: 1.65;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250,248,243,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

    .site-header .wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 84px;
    }

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

    .brand-mark svg {
        width: 20px;
        height: 20px;
    }

.brand-text .name {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--ink-900);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.brand-text .tagline {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-400);
    letter-spacing: 0.03em;
}

.main-nav ul {
    display: flex;
    gap: 36px;
    align-items: center;
}

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-600);
    position: relative;
    padding: 6px 0;
    transition: color .15s ease;
}

    .main-nav a:hover, .main-nav a.active {
        color: var(--blue-700);
    }

        .main-nav a.active::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 2px;
            background: var(--amber-500);
        }

.nav-cta {
    background: var(--navy-950);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
}

    .nav-cta:hover {
        background: var(--blue-700);
    }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.btn-primary {
    background: var(--amber-500);
    color: var(--navy-950);
}

    .btn-primary:hover {
        background: var(--amber-600);
        transform: translateY(-1px);
    }

.btn-ghost {
    border-color: rgba(255,255,255,0.35);
    color: var(--white);
}

    .btn-ghost:hover {
        border-color: var(--white);
        transform: translateY(-1px);
    }

.btn-dark {
    background: var(--navy-950);
    color: var(--white);
}

    .btn-dark:hover {
        background: var(--blue-700);
    }

/* ---------- Hero ---------- */
.hero {
    background: var(--navy-950);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

    .hero .wrap {
        display: grid;
        grid-template-columns: 1.05fr 0.95fr;
        gap: 40px;
        align-items: center;
        padding-top: 88px;
        padding-bottom: 88px;
        min-height: 640px;
    }

.hero-copy .eyebrow {
    color: var(--amber-500);
    margin-bottom: 18px;
    display: block;
}

.hero-copy h1 {
    font-size: clamp(34px, 4.4vw, 54px);
    color: var(--white);
    margin-bottom: 24px;
}

.hero-copy p.lead {
    font-size: 18px;
    color: var(--blue-300);
    max-width: 480px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Signature: agile cycle diagram */
.cycle-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cycle-diagram {
    width: 100%;
    max-width: 420px;
}

.cycle-center-label {
    font-family: var(--mono);
    font-size: 12px;
    fill: var(--blue-300);
    letter-spacing: 0.08em;
}

/* ---------- Sections ---------- */
section {
    padding: 96px 0;
}

.section-sand {
    background: var(--sand-100);
}

.section-navy {
    background: var(--navy-950);
    color: var(--white);
}

    .section-navy p {
        color: var(--blue-300);
    }

    .section-navy h2 {
        color: var(--white);
    }

.section-head {
    max-width: 640px;
    margin-bottom: 56px;
}

    .section-head .eyebrow {
        display: block;
        margin-bottom: 14px;
    }

    .section-head h2 {
        font-size: clamp(26px,3vw,36px);
        margin-bottom: 16px;
    }

.section-navy .section-head .eyebrow {
    color: var(--amber-500);
}

/* Services grid */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.service-card {
    background: var(--sand-100);
    padding: 36px 28px;
}

.service-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    color: var(--blue-600);
}

.service-card h3 {
    font-size: 19px;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14.5px;
}

/* Methodology 3 col */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 44px;
}

.method-card {
    border-top: 2px solid var(--amber-500);
    padding-top: 24px;
}

.method-stat {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--amber-500);
    margin-bottom: 14px;
    display: block;
}

.method-card h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 12px;
}

.method-card p {
    font-size: 14.5px;
}

/* Values (about page) */
.values-list {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.value-item {
    background: var(--white);
    padding: 32px;
}

    .value-item h3 {
        font-size: 18px;
        margin-bottom: 10px;
        color: var(--blue-700);
    }

    .value-item p {
        font-size: 14.5px;
    }

/* About narrative */
.about-hero {
    background: var(--navy-950);
    color: var(--white);
    padding: 72px 0 64px;
}

    .about-hero h1 {
        color: var(--white);
        font-size: clamp(30px,4vw,44px);
        max-width: 680px;
    }

    .about-hero .eyebrow {
        color: var(--amber-500);
        display: block;
        margin-bottom: 16px;
    }

.narrative {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 56px;
    max-width: 880px;
    margin: 0 auto 64px;
}

    .narrative .label {
        font-family: var(--mono);
        font-size: 12px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--amber-600);
        padding-top: 6px;
    }

    .narrative .body h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .narrative .body p {
        text-align: justify;
        text-align-last: left;
    }

    .narrative .body p + p {
        margin-top: 14px;
    }

/* KPI strip */
.kpi-strip {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    border: 1px solid var(--line);
    background: var(--white);
}

.kpi {
    padding: 32px 28px;
    border-right: 1px solid var(--line);
}

    .kpi:last-child {
        border-right: none;
    }

    .kpi .num {
        font-family: var(--mono);
        font-size: 32px;
        font-weight: 600;
        color: var(--blue-700);
        display: block;
    }

    .kpi .desc {
        font-size: 13.5px;
        color: var(--ink-400);
        margin-top: 6px;
    }

/* Final CTA */
.cta-band {
    background: var(--navy-950);
    color: var(--white);
    padding: 88px 0;
    text-align: center;
}

    .cta-band h2 {
        color: var(--white);
        font-size: clamp(26px,3.4vw,38px);
        max-width: 640px;
        margin: 0 auto 18px;
    }

    .cta-band p {
        color: var(--blue-300);
        max-width: 520px;
        margin: 0 auto 36px;
        font-size: 17px;
    }

    .cta-band .btn-row {
        display: flex;
        gap: 16px;
        justify-content: center;
        flex-wrap: wrap;
    }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-950);
    color: var(--blue-300);
    padding: 56px 0 32px;
    border-top: 1px solid var(--navy-800);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .brand-text .name {
    color: var(--white);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 14px;
    max-width: 280px;
}

.footer-col h4 {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--amber-500);
    margin-bottom: 16px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 14.5px;
    transition: color .15s;
}

    .footer-col a:hover {
        color: var(--white);
    }

.footer-bottom {
    border-top: 1px solid var(--navy-800);
    padding-top: 24px;
    font-size: 13px;
    color: var(--ink-400);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Contact page ---------- */
.contact-hero {
    background: var(--navy-950);
    color: var(--white);
    padding: 72px 0 56px;
}

    .contact-hero h1 {
        color: var(--white);
        font-size: clamp(30px,4vw,44px);
        max-width: 600px;
    }

    .contact-hero .eyebrow {
        color: var(--amber-500);
        display: block;
        margin-bottom: 16px;
    }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 64px;
}

.contact-info h3 {
    font-size: 15px;
    color: var(--ink-900);
    margin-bottom: 6px;
}

.contact-info .info-block {
    margin-bottom: 28px;
}

    .contact-info .info-block p {
        font-size: 15px;
    }

    .contact-info .info-block a {
        color: var(--blue-700);
        font-weight: 600;
    }

.field {
    margin-bottom: 22px;
}

    .field label {
        display: block;
        font-family: var(--mono);
        font-size: 12px;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--ink-400);
        margin-bottom: 8px;
    }

    .field input, .field textarea {
        width: 100%;
        border: 1px solid var(--line);
        background: var(--white);
        padding: 13px 14px;
        font-family: var(--body);
        font-size: 15px;
        border-radius: var(--radius);
        color: var(--ink-900);
    }

    .field textarea {
        resize: vertical;
        min-height: 130px;
    }

        .field input:focus, .field textarea:focus {
            outline: none;
            border-color: var(--blue-600);
            box-shadow: 0 0 0 3px rgba(47,111,163,0.15);
        }

.form-msg {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 14.5px;
    display: none;
}

    .form-msg.show {
        display: block;
    }

    .form-msg.ok {
        background: #EAF4EC;
        color: #2B6E3F;
        border: 1px solid #C7E3CC;
    }

    .form-msg.err {
        background: #FBEAEA;
        color: #A23B3B;
        border: 1px solid #F0CBCB;
    }

/* ---------- Extras / sports classes ---------- */
.subsection-label {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-400);
    margin: 64px 0 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

    .subsection-label::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--line);
    }

.grid-3-extras {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.extra-card {
    background: var(--white);
    padding: 32px 28px;
    position: relative;
}

    .extra-card .badge {
        font-family: var(--mono);
        font-size: 10.5px;
        letter-spacing: 0.06em;
        color: var(--amber-600);
        background: rgba(217,154,61,0.12);
        padding: 4px 9px;
        border-radius: 20px;
        display: inline-block;
        margin-bottom: 16px;
    }

.extra-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    color: var(--blue-600);
}

.extra-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.extra-card p {
    font-size: 14px;
}

.extras-note {
    margin-top: 20px;
    font-size: 13.5px;
    color: var(--ink-400);
    font-style: italic;
}

/* ---------- Mobile nav ---------- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--ink-900);
}

    .nav-toggle svg {
        width: 24px;
        height: 24px;
    }

.main-nav.mobile-open {
    display: flex;
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--sand-50);
    z-index: 60;
    padding: 32px;
}

    .main-nav.mobile-open ul {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .main-nav.mobile-open a {
        font-size: 20px;
        padding: 16px 4px;
        border-bottom: 1px solid var(--line);
    }

        .main-nav.mobile-open a.active::after {
            display: none;
        }

    .main-nav.mobile-open .nav-cta {
        text-align: center;
        border-bottom: none;
        margin-top: 12px;
    }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .grid-3-extras {
        grid-template-columns: 1fr;
    }

    .hero .wrap {
        grid-template-columns: 1fr;
        padding-top: 56px;
        padding-bottom: 56px;
        min-height: auto;
    }

    .cycle-wrap {
        order: -1;
        max-width: 280px;
        margin: 0 auto 32px;
    }

    .grid-4 {
        grid-template-columns: repeat(2,1fr);
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .values-list {
        grid-template-columns: 1fr;
    }

    .narrative {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .kpi-strip {
        grid-template-columns: 1fr;
    }

    .kpi {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    section {
        padding: 64px 0;
    }
}
