/* ================================================================
   C&G Consulting Group — style.css
   Versión: 1.0 | Charset: UTF-8
   Paleta: Base #F2F2F2 | Sec #123B5A | Acento #C9A44C | Icon #BFD9CF
   ================================================================ */

/* ----------------------------------------------------------------
   1. VARIABLES CSS
   ---------------------------------------------------------------- */
:root {
    /* Colores corporativos */
    --clr-base:         #F2F2F2;
    --clr-secondary:    #123B5A;
    --clr-accent:       #C9A44C;
    --clr-icon:         #BFD9CF;

    /* Derivados */
    --clr-sec-light:    #1a4f7a;
    --clr-sec-dark:     #0c2840;
    --clr-accent-light: #d6b56a;
    --clr-accent-dark:  #a8843c;
    --clr-icon-light:   #d8eee7;
    --clr-white:        #ffffff;
    --clr-text:         #2c3e50;
    --clr-muted:        #64748b;
    --clr-border:       #e2e8f0;
    --clr-error:        #ef4444;
    --clr-success:      #22c55e;

    /* Tipografía */
    --font-sans:   'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-serif:  Georgia, 'Times New Roman', serif;

    --fs-xs:   0.75rem;    /* 12px */
    --fs-sm:   0.875rem;   /* 14px */
    --fs-base: 1rem;       /* 16px */
    --fs-md:   1.125rem;   /* 18px */
    --fs-lg:   1.25rem;    /* 20px */
    --fs-xl:   1.5rem;     /* 24px */
    --fs-2xl:  1.875rem;   /* 30px */
    --fs-3xl:  2.25rem;    /* 36px */
    --fs-4xl:  3rem;       /* 48px */
    --fs-5xl:  3.75rem;    /* 60px */

    /* Espaciado */
    --sp-1:  0.25rem;
    --sp-2:  0.5rem;
    --sp-3:  0.75rem;
    --sp-4:  1rem;
    --sp-5:  1.25rem;
    --sp-6:  1.5rem;
    --sp-8:  2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;
    --sp-24: 6rem;
    --sp-32: 8rem;

    /* Radios */
    --r-sm:   4px;
    --r-md:   8px;
    --r-lg:   16px;
    --r-xl:   24px;
    --r-2xl:  32px;
    --r-full: 9999px;

    /* Sombras */
    --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
    --shadow-lg:  0 10px 32px rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.06);
    --shadow-xl:  0 20px 56px rgba(0,0,0,.14), 0 8px 18px rgba(0,0,0,.08);
    --shadow-acc: 0 8px 24px rgba(201,164,76,.40);

    /* Transiciones */
    --t-fast:  150ms ease;
    --t-base:  260ms ease;
    --t-slow:  420ms ease;

    /* Layout */
    --container: 1220px;
    --header-h:  72px;
}

/* ----------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--clr-base);
    color: var(--clr-secondary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast);
}

ul, ol { list-style: none; }

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
}

input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
}

/* Scroll margin para header fijo */
section[id] {
    scroll-margin-top: var(--header-h);
}

/* ----------------------------------------------------------------
   3. ACCESIBILIDAD
   ---------------------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--clr-accent);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

/* ----------------------------------------------------------------
   4. LAYOUT — Container & Grid
   ---------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--sp-6);
}

.grid {
    display: grid;
    gap: var(--sp-6);
}

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

/* ----------------------------------------------------------------
   5. BOTONES
   ---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-6);
    border-radius: var(--r-full);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: background var(--t-base), border-color var(--t-base),
                transform var(--t-base), box-shadow var(--t-base),
                color var(--t-base);
    white-space: nowrap;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--clr-accent);
    color: var(--clr-secondary);
    border-color: var(--clr-accent);
    box-shadow: var(--shadow-acc);
}
.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--clr-accent-dark);
    border-color: var(--clr-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(201,164,76,.50);
}

.btn--ghost {
    background: transparent;
    color: var(--clr-white);
    border-color: rgba(255,255,255,.45);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
    background: rgba(255,255,255,.10);
    border-color: var(--clr-white);
    transform: translateY(-2px);
}

.btn--lg {
    padding: var(--sp-4) var(--sp-8);
    font-size: var(--fs-base);
}

.btn--full { width: 100%; }

/* Estado loading */
.btn__loader {
    width: 17px; height: 17px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    display: none;
    animation: spin .7s linear infinite;
    flex-shrink: 0;
}
.btn--loading .btn__loader { display: inline-block; }
.btn--loading .btn__text  { opacity: .7; }
.btn:disabled { opacity: .7; cursor: not-allowed; transform: none !important; }

/* ----------------------------------------------------------------
   6. SECCIONES — base
   ---------------------------------------------------------------- */
.section {
    padding-block: var(--sp-24);
}
.section--base     { background: var(--clr-base); }
.section--white    { background: var(--clr-white); }
.section--accent   { background: #d3b463; }
.section--secondary{ background: var(--clr-secondary); }

.section__header {
    text-align: center;
    max-width: 660px;
    margin-inline: auto;
    margin-bottom: var(--sp-16);
}

/* Etiqueta tipo chip */
.section__label {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--clr-accent);
    background: rgba(201,164,76,.12);
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--r-full);
    margin-bottom: var(--sp-3);
}
.section__label--dark   { color: var(--clr-secondary); background: rgba(18,59,90,.15); }
.section__label--accent { color: var(--clr-accent);    background: rgba(201,164,76,.15); }

/* Títulos y subtítulos */
.section__title {
    font-size: var(--fs-3xl);
    font-weight: 800;
    color: var(--clr-secondary);
    line-height: 1.2;
    margin-bottom: var(--sp-4);
}
.section__title--white { color: var(--clr-white); }

.section__subtitle {
    font-size: var(--fs-md);
    color: var(--clr-muted);
    line-height: 1.7;
}
.section__subtitle--white { color: rgba(255,255,255,.80); }

/* ----------------------------------------------------------------
   7. HEADER
   ---------------------------------------------------------------- */
.header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 1000;
    height: var(--header-h);
    background: transparent;
    transition: background var(--t-slow), box-shadow var(--t-slow), backdrop-filter var(--t-slow);
}
.header.is-sticky {
    background: rgba(12, 40, 64, .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Nav */
.header__nav-list {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
}

.nav-link {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: rgba(255,255,255,.80);
    position: relative;
    padding-bottom: 2px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 2px;
    background: var(--clr-accent);
    transition: width var(--t-base);
    border-radius: var(--r-full);
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--clr-white); }
.nav-link:hover::after  { width: 100%; }

.nav-link--cta {
    background: var(--clr-accent);
    color: var(--clr-secondary) !important;
    padding: var(--sp-2) var(--sp-5);
    border-radius: var(--r-full);
    font-weight: 700;
    transition: background var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.nav-link--cta::after   { display: none; }
.nav-link--cta:hover,
.nav-link--cta:focus-visible {
    background: var(--clr-accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-acc);
}

/* Botón hamburguesa */
.header__menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px; height: 38px;
    padding: 4px;
    z-index: 1001;
}
.header__menu-btn span {
    display: block;
    height: 2px;
    background: var(--clr-white);
    border-radius: var(--r-full);
    transition: all var(--t-base);
    transform-origin: center;
}
.header__menu-btn.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__menu-btn.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header__menu-btn.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ----------------------------------------------------------------
   8. HERO
   ---------------------------------------------------------------- */
.hero {
    min-height: min(100svh, 800px);
    background: linear-gradient(140deg, var(--clr-secondary) 0%, var(--clr-sec-light) 55%, var(--clr-sec-dark) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-h);
}

/* Elementos decorativos */
.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero__circle {
    position: absolute;
    border-radius: 50%;
    background: var(--clr-accent);
}
.hero__circle--1 { width: 560px; height: 560px; top: -220px;  right: -160px; opacity: .05; }
.hero__circle--2 { width: 380px; height: 380px; bottom: -140px; left: -100px; opacity: .04; }
.hero__circle--3 { width: 180px; height: 180px; top: 42%;    right: 28%;    opacity: .03; background: var(--clr-icon); }

.hero__line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(201,164,76,.18), transparent);
    height: 1px;
    width: 100%;
}
.hero__line--1 { top: 30%; }
.hero__line--2 { top: 65%; }

/* Grid hero */
.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    gap: var(--sp-12);
    padding-top: var(--sp-6);
    padding-bottom: var(--sp-16);
    position: relative;
    z-index: 1;
}

/* Lado izquierdo */
.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: var(--sp-5);
}
.hero__eyebrow-dot {
    width: 7px; height: 7px;
    background: var(--clr-accent);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2.2s ease-in-out infinite;
}

.hero__h1 {
    font-size: var(--fs-4xl);
    font-weight: 800;
    color: var(--clr-white);
    line-height: 1.14;
    margin-bottom: var(--sp-4);
    letter-spacing: -.01em;
}
.hero__h1 em {
    font-style: normal;
    color: var(--clr-accent);
}

.hero__subtitle {
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--clr-accent);
    margin-bottom: var(--sp-4);
}

.hero__desc {
    font-size: var(--fs-md);
    color: rgba(255,255,255,.72);
    line-height: 1.75;
    margin-bottom: var(--sp-6);
    max-width: 490px;
}

.hero__actions {
    display: flex;
    gap: var(--sp-4);
    flex-wrap: wrap;
    margin-bottom: var(--sp-3);
}

.hero__microcopy {
    display: flex;
    align-items: center;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: rgba(255,255,255,.8);
    margin-bottom: var(--sp-8);
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: var(--sp-6) var(--sp-4);
    padding-top: var(--sp-6);
    border-top: 1px solid rgba(255,255,255,.10);
    width: 100%;
}
.hero__stat-num {
    display: block;
    font-size: var(--fs-2xl);
    font-weight: 800;
    color: var(--clr-accent);
    line-height: 1.1;
}
.hero__stat-label {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.55);
    letter-spacing: .02em;
    margin-top: 2px;
}

/* Lado derecho — visual */
.hero__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-5);
    position: relative;
}

.hero__visual-card--main {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--r-2xl);
    padding: var(--sp-12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__logo-mark {
    max-width: 220px;
    opacity: .18;
    filter: brightness(0) invert(1);
}

.hero__badge {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--r-lg);
    padding: var(--sp-3) var(--sp-5);
    color: rgba(255,255,255,.85);
    font-size: var(--fs-sm);
    font-weight: 500;
    width: 100%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hero__badge svg { flex-shrink: 0; }

/* Scroll hint */
.hero__scroll {
    position: absolute;
    bottom: var(--sp-8);
    left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 40px;
    border: 2px solid rgba(255,255,255,.25);
    border-radius: var(--r-full);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
}
.hero__scroll-dot {
    width: 4px; height: 8px;
    background: var(--clr-accent);
    border-radius: var(--r-full);
    animation: scrollBounce 1.9s ease-in-out infinite;
}

/* ----------------------------------------------------------------
   9. CARDS — Reto
   ---------------------------------------------------------------- */
.card {
    background: var(--clr-white);
    border-radius: var(--r-lg);
    padding: var(--sp-8);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-base), box-shadow var(--t-base);
    position: relative;
    overflow: hidden;
}
.card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--clr-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base);
}
.card:hover               { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card:hover::after        { transform: scaleX(1); }

.card__icon {
    width: 52px; height: 52px;
    background: rgba(191,217,207,.18);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-5);
    flex-shrink: 0;
}
.card__icon svg     { width: 26px; height: 26px; fill: var(--clr-icon); }

.card__icon--light  { background: rgba(191,217,207,.15); }
.card__icon--light svg { fill: var(--clr-icon); }

.card__title         { font-size: var(--fs-lg); font-weight: 700; color: var(--clr-secondary); margin-bottom: var(--sp-3); }
.card__title--white  { color: var(--clr-white); }
.card__desc          { font-size: var(--fs-sm); color: var(--clr-muted); line-height: 1.65; }
.card__desc--light   { color: rgba(255,255,255,.65); }

/* Cierre de Reto */
.reto__cierre {
    margin-top: var(--sp-12);
    text-align: center;
}
.reto__cierre p {
    display: inline-block;
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--clr-secondary);
    background: var(--clr-accent);
    padding: var(--sp-4) var(--sp-8);
    border-radius: var(--r-xl);
    border: 1px solid var(--clr-accent);
}

/* Cards Servicio */
.card--servicio {
    border-top: 3px solid var(--clr-accent);
    background: var(--clr-white);
}
.card--servicio::after { display: none; }

.card__icon-wrap {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, rgba(18,59,90,.07), rgba(18,59,90,.02));
    border: 1px solid rgba(18,59,90,.08);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-5);
}
.card__icon-wrap svg { width: 28px; height: 28px; fill: var(--clr-secondary); }

.card__list          { margin-top: var(--sp-3); }
.card__list li {
    font-size: var(--fs-sm);
    color: var(--clr-muted);
    padding: var(--sp-2) 0;
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    align-items: flex-start;
    gap: var(--sp-2);
    line-height: 1.45;
}
.card__list li:last-child { border-bottom: none; }
.card__list li::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--clr-icon);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

/* Cards Diferenciadores */
.card--difer {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.card--difer::after    { background: var(--clr-accent); }
.card--difer:hover     { background: rgba(255,255,255,.09); }

/* ----------------------------------------------------------------
   10. PROCESO — Nuestro Enfoque
   ---------------------------------------------------------------- */
.proceso {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    gap: var(--sp-4);
}
.proceso::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background: rgba(18,59,90,.25);
    z-index: 0;
}

.proceso__paso {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-inline: var(--sp-4);
    position: relative;
    z-index: 1;
}

.proceso__num {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: var(--clr-secondary);
    color: var(--clr-white);
    font-size: var(--fs-xl);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-6);
    flex-shrink: 0;
    border: 4px solid rgba(255,255,255,.30);
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    transition: background var(--t-base), transform var(--t-base);
}
.proceso__paso:hover .proceso__num {
    background: var(--clr-sec-dark);
    transform: scale(1.06);
}

.proceso__titulo {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--clr-secondary);
    margin-bottom: var(--sp-3);
}
.proceso__desc {
    font-size: var(--fs-sm);
    color: rgba(18,59,90,.75);
    line-height: 1.65;
}

/* ----------------------------------------------------------------
   11. CITA DE CIERRE
   ---------------------------------------------------------------- */
.cita {
    margin-top: var(--sp-16);
    text-align: center;
}
.cita blockquote p {
    font-size: var(--fs-xl);
    font-style: italic;
    color: var(--clr-muted);
    max-width: 700px;
    margin-inline: auto;
    position: relative;
    padding-inline: var(--sp-12);
    line-height: 1.55;
}
.cita blockquote p::before,
.cita blockquote p::after {
    position: absolute;
    font-family: var(--font-serif);
    font-size: 5rem;
    line-height: 1;
    color: var(--clr-accent);
    opacity: .35;
}
.cita blockquote p::before { content: '\201C'; left: 0; top: -12px; }
.cita blockquote p::after  { content: '\201D'; right: 0; bottom: -36px; }

/* ----------------------------------------------------------------
   12. CONTACTO
   ---------------------------------------------------------------- */
.contacto-section {
    position: relative;
}
.contacto-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--clr-accent) 0%,
        var(--clr-icon) 50%,
        var(--clr-accent) 100%);
}

.contacto__inner {
    display: grid;
    grid-template-columns: 1fr 1.55fr;
    gap: var(--sp-16);
    align-items: start;
}

.contacto__title,
.contacto__subtitle {
    text-align: left;
}
.contacto__subtitle { margin-top: var(--sp-4); }

.contacto__cierre {
    font-size: var(--fs-md);
    color: var(--clr-accent);
    font-weight: 600;
    margin-top: var(--sp-2);
}
.contacto__preform {
    font-size: var(--fs-sm);
    color: var(--clr-muted);
    margin-bottom: var(--sp-6);
    font-weight: 500;
    text-align: center;
}

.contacto__datos {
    margin-top: var(--sp-8);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}
.contacto__datos li,
.contacto__datos a {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: var(--fs-sm);
    color: var(--clr-muted);
    font-weight: 500;
}
.contacto__datos svg {
    width: 20px; height: 20px;
    fill: var(--clr-accent);
    flex-shrink: 0;
}
.contacto__datos a:hover { color: var(--clr-accent); }

/* Formulario */
.contacto__form-wrap {
    background: var(--clr-white);
    border-radius: var(--r-2xl);
    padding: var(--sp-10);
    box-shadow: var(--shadow-xl);
}
.contacto__form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
}
.form__group {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}
.form__label {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--clr-secondary);
}
.form__req { color: var(--clr-accent); }

.form__input,
.form__textarea,
.form__select {
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
    border: 2px solid var(--clr-border);
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
    color: var(--clr-secondary);
    background: var(--clr-base);
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
    outline: none;
}
.form__input::placeholder,
.form__textarea::placeholder { color: #a0aec0; }

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px rgba(201,164,76,.14);
    background: var(--clr-white);
}
.form__input.is-error,
.form__textarea.is-error {
    border-color: var(--clr-error);
    box-shadow: 0 0 0 3px rgba(239,68,68,.10);
}

.form__error {
    font-size: var(--fs-xs);
    color: var(--clr-error);
    min-height: 18px;
    font-weight: 500;
}

.form__textarea { resize: vertical; min-height: 120px; }

.form__select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23123B5A' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: var(--sp-10);
    cursor: pointer;
}

.form__msg {
    padding: var(--sp-3) var(--sp-5);
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
    font-weight: 600;
    display: none;
    line-height: 1.5;
}
.form__msg.success {
    display: block;
    background: rgba(34,197,94,.10);
    color: #15803d;
    border: 1px solid rgba(34,197,94,.25);
}
.form__msg.error {
    display: block;
    background: rgba(239,68,68,.08);
    color: #b91c1c;
    border: 1px solid rgba(239,68,68,.20);
}

/* Honeypot */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

/* Posicionamiento */
.pos__grid { gap: var(--sp-6); }
.pos__item {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--r-lg);
    padding: var(--sp-8) var(--sp-4);
    text-align: center;
    transition: transform var(--t-base), background var(--t-base);
}
.pos__item:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,.08);
}
.pos__icon {
    width: 64px; height: 64px;
    background: rgba(201,164,76,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--sp-4);
}
.pos__icon svg { width: 32px; height: 32px; fill: var(--clr-accent); }
.pos__texto {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--clr-white);
    line-height: 1.3;
}

/* CTA Intermedio */
.section--cta {
    background: linear-gradient(135deg, var(--clr-secondary), var(--clr-sec-light));
    padding-block: var(--sp-12);
    text-align: center;
    position: relative;
}
.section--cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5V18H0v2.5h20zM20 0v20h20V0H20zm1.5 20.5h18.5V40H21.5V20.5zM0 20.5h20V40H0V20.5z' fill='%23ffffff' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.cta-int__inner {
    position: relative;
    z-index: 1;
}
.cta-int__title {
    font-size: var(--fs-3xl);
    font-weight: 800;
    color: var(--clr-white);
    margin-bottom: var(--sp-6);
    max-width: 800px;
    margin-inline: auto;
}

/* WhatsApp Float */
.wa-float {
    position: fixed;
    bottom: var(--sp-6);
    right: var(--sp-6);
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: transform var(--t-base), box-shadow var(--t-base);
}
.wa-float svg {
    width: 34px;
    height: 34px;
    fill: #ffffff;
}
.wa-float:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 12px 28px rgba(37,211,102,.4);
}

/* ----------------------------------------------------------------
   13. FOOTER
   ---------------------------------------------------------------- */
.footer {
    background: var(--clr-sec-dark);
    color: rgba(255,255,255,.65);
    padding-top: var(--sp-20);
}
.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--sp-12);
    padding-bottom: var(--sp-12);
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer__brand img {
    filter: brightness(0) invert(1);
    opacity: .90;
    height: 30px; width: auto;
    margin-bottom: var(--sp-4);
}
.footer__tagline {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.50);
    font-style: italic;
    line-height: 1.65;
    max-width: 320px;
    margin-bottom: var(--sp-5);
}
.footer__ubicacion {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.45);
}
.footer__ubicacion svg { width: 15px; height: 15px; fill: var(--clr-accent); flex-shrink: 0; }

.footer__heading {
    font-size: var(--fs-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .10em;
    color: var(--clr-white);
    margin-bottom: var(--sp-5);
}

.footer__nav ul,
.footer__contact {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}
.footer__nav a {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.55);
    transition: color var(--t-fast), padding-left var(--t-fast);
}
.footer__nav a:hover { color: var(--clr-accent); padding-left: var(--sp-2); }

.footer__contact a {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.55);
    transition: color var(--t-fast);
}
.footer__contact a:hover { color: var(--clr-accent); }
.footer__contact svg { width: 16px; height: 16px; fill: var(--clr-accent); flex-shrink: 0; }

.footer__bottom {
    padding-block: var(--sp-6);
    text-align: center;
}
.footer__bottom p {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.30);
}
.footer__credit {
    margin-top: var(--sp-2);
    font-size: 0.70rem !important;
    color: rgba(255,255,255,.20) !important;
}
.footer__credit a {
    color: rgba(255,255,255,.45);
    transition: color var(--t-fast);
}
.footer__credit a:hover {
    color: rgba(255,255,255,.8);
}

/* ----------------------------------------------------------------
   14. ANIMACIONES DE ENTRADA (Reveal)
   ---------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .75s cubic-bezier(.16,1,.3,1),
                transform .75s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal--right {
    transform: translateX(36px);
}
.reveal--right.is-visible { transform: translateX(0); }

/* ----------------------------------------------------------------
   15. KEYFRAMES
   ---------------------------------------------------------------- */
@keyframes scrollBounce {
    0%   { transform: translateY(0);   opacity: 1; }
    50%  { transform: translateY(10px); opacity: .35; }
    100% { transform: translateY(0);   opacity: 1; }
}
@keyframes pulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%       { transform: scale(1.5); opacity: .6; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------------
   16. MEDIA QUERIES — RESPONSIVO
   ---------------------------------------------------------------- */

/* Tablet grande / laptop pequeño */
@media (max-width: 1100px) {
    :root {
        --fs-4xl: 2.625rem;
        --fs-3xl: 2rem;
    }
    .hero__inner   { gap: var(--sp-10); }
    .proceso       { grid-template-columns: repeat(2, 1fr); gap: var(--sp-12) var(--sp-8); }
    .proceso::before { display: none; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1023px) {
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* Móvil + Tablet pequeña */
@media (max-width: 768px) {
    :root {
        --fs-4xl: 2.1rem;
        --fs-3xl: 1.75rem;
        --fs-2xl: 1.5rem;
        --header-h: 64px;
    }

    /* Header móvil */
    .header__menu-btn { display: flex; }
    .header__nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-h));
        height: calc(100dvh - var(--header-h));
        background: rgba(12,40,64,.97);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        padding: var(--sp-8) var(--sp-6);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--t-base);
        overflow-y: auto;
    }
    .header__nav.is-open { opacity: 1; pointer-events: auto; }
    .header__nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .header__nav-list li { width: 100%; }
    .nav-link {
        display: block;
        padding: var(--sp-4) 0;
        font-size: var(--fs-lg);
        border-bottom: 1px solid rgba(255,255,255,.07);
    }
    .nav-link--cta {
        margin-top: var(--sp-5);
        text-align: center;
        padding: var(--sp-4);
        width: 100%;
        display: block;
    }

    /* Hero móvil */
    .hero__inner {
        grid-template-columns: 1fr;
        padding-block: var(--sp-16);
        gap: 0;
    }
    .hero__visual { display: none; }
    .hero__stats  { gap: var(--sp-6); }

    /* Grids móvil */
    .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .grid--2            { grid-template-columns: 1fr; }

    /* Proceso móvil */
    .proceso {
        grid-template-columns: 1fr;
        gap: var(--sp-8);
    }
    .proceso::before { display: none; }
    .proceso__paso {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: var(--sp-5);
    }
    .proceso__num { margin-bottom: 0; flex-shrink: 0; }
    .proceso__body { flex: 1; }

    /* Contacto móvil */
    .contacto__inner    { grid-template-columns: 1fr; gap: var(--sp-10); }
    .form__row          { grid-template-columns: 1fr; }
    .contacto__title,
    .contacto__subtitle { text-align: left; }

    /* Footer móvil */
    .footer__inner { grid-template-columns: 1fr; gap: var(--sp-8); }

    /* Secciones */
    .section { padding-block: var(--sp-16); }
    .section__header { margin-bottom: var(--sp-10); }
}

/* Teléfonos pequeños */
@media (max-width: 480px) {
    .container { padding-inline: var(--sp-4); }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; justify-content: center; }
    .contacto__form-wrap { padding: var(--sp-6); }
    .hero__stats { flex-wrap: wrap; gap: var(--sp-5); }
    .cita blockquote p { font-size: var(--fs-md); padding-inline: var(--sp-6); }
    .wa-float {
        bottom: var(--sp-4);
        right: var(--sp-4);
        width: 52px;
        height: 52px;
    }
    .wa-float svg { width: 28px; height: 28px; }
}

/* Reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
