/* ═══════════════════════════════════════════════════════════
   style.css — SG Gestión Contable  (rediseño premium 2025)
   Paleta extraída del logo: navy #0E1F3C + gold #B8952A
   Tipografía: Cormorant Garamond (display) + Inter (body)
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── VARIABLES ──────────────────────────────────────────── */
:root {
    /* Paleta principal */
    --navy: #0E1F3C;
    --navy-mid: #162C50;
    --navy-light: #1E3A6A;
    --gold: #B8952A;
    --gold-light: #D4AC4A;
    --gold-pale: #F0E0A8;
    --cream: #F7F5F0;
    --white: #FFFFFF;

    /* Texto */
    --text: #1C2B3A;
    --text-mid: #4A5E72;
    --text-light: #8A9BB0;

    /* UI */
    --border: #DDE3EB;
    --border-dark: #C8D0DC;
    --off-white: #F4F5F8;

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(14, 31, 60, .08);
    --shadow-md: 0 8px 28px rgba(14, 31, 60, .13);
    --shadow-lg: 0 20px 56px rgba(14, 31, 60, .18);
    --shadow-gold: 0 8px 28px rgba(184, 149, 42, .28);

    /* Transición */
    --tr: all .28s cubic-bezier(.4, 0, .2, 1);

    /* Legados — mantener compatibilidad con código inline existente */
    --primary-color: #0E1F3C;
    --secondary-color: #1E6FD9;
    --blue: #1E6FD9;
    --accent-color: #B8952A;
    --light-color: #F4F5F8;
    --dark-color: #0E1F3C;
    --text-color: #1C2B3A;
    --text-light: #8A9BB0;
    --shadow: 0 4px 16px rgba(14, 31, 60, .1);
    --transition: all .28s cubic-bezier(.4, 0, .2, 1);
}

/* ── RESET & BASE ───────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

/* ── HEADER ─────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px) saturate(1.6);
    -webkit-backdrop-filter: blur(14px) saturate(1.6);
    border-bottom: 1px solid rgba(14, 31, 60, .07);
    transition: var(--tr);
}

.header.scrolled {
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 4px 24px rgba(14, 31, 60, .10);
    border-bottom-color: transparent;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

/* Logo */
.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.4px;
    line-height: 1;
}

.logo span {
    color: var(--gold);
}

/* Nav */
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links li {}

.nav-links a {
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-mid);
    padding: 7px 14px;
    border-radius: 8px;
    transition: var(--tr);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--navy);
    background: rgba(14, 31, 60, .05);
}

.nav-links a.active {
    color: var(--navy);
    font-weight: 600;
    background: rgba(184, 149, 42, .09);
}

/* Logo imagen */
.logo-img {
    display: flex;
    align-items: center;
    line-height: 1;
}

.logo-image {
    height: 75px; 
    width: auto;
    object-fit: contain;
    display: block;
    transform: scale(1.45); /* Aumento visual drástico para igualar el ejemplo */
    transform-origin: left center;
    margin-left: 15px;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.logo:hover .logo-image {
    transform: scale(1.52); /* Efecto zoom sutil sobre el tamaño grande */
}

/* Logo footer — invertir colores sobre fondo navy */
.footer-logo-img {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
}

.footer-logo-image {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
    /* Invierte el logo para que se vea sobre fondo oscuro */
    filter: brightness(0) invert(1);
}

/* CTA en nav */
.header-cta {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    background: var(--navy) !important;
    color: var(--white) !important;
    padding: 9px 18px !important;
    border-radius: 9px !important;
    font-weight: 600 !important;
    font-size: .82rem !important;
    letter-spacing: .2px;
    transition: var(--tr) !important;
    box-shadow: 0 4px 14px rgba(14, 31, 60, .25);
}

.header-cta:hover {
    background: var(--gold) !important;
    box-shadow: var(--shadow-gold) !important;
    transform: translateY(-2px);
}

.header-cta i {
    font-size: .78rem;
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 1.1rem;
    color: var(--navy);
    cursor: pointer;
    transition: var(--tr);
}

.menu-toggle:hover {
    background: var(--off-white);
    border-color: var(--border-dark);
}

/* ── PAGE HERO (páginas interiores) ─────────────────────── */
.page-hero {
    padding: 120px 0 56px;
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 149, 42, .12) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold-light);
    border: 1px solid rgba(212, 172, 74, .3);
    background: rgba(184, 149, 42, .08);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.page-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: .95rem;
    color: rgba(255, 255, 255, .6);
    max-width: 480px;
    margin: 0 auto;
}

/* ── HERO / CAROUSEL ────────────────────────────────────── */
.hero {
    height: 88vh;
    min-height: 560px;
    margin-top: 68px;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .9s ease;
    display: flex;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
}

/* Overlay gradient sobre la imagen */
.carousel-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.carousel-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            rgba(10, 20, 45, .78) 0%,
            rgba(10, 20, 45, .45) 55%,
            rgba(10, 20, 45, .20) 100%);
}

.carousel-content {
    position: relative;
    z-index: 2;
    padding: 0 60px;
    max-width: 620px;
    color: var(--white);
}

.carousel-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold-light);
    border: 1px solid rgba(212, 172, 74, .35);
    background: rgba(184, 149, 42, .1);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.carousel-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .3);
}

.carousel-content p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 32px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .2);
}

.hero-cta-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Carousel controls */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .1);
    border: 1.5px solid rgba(255, 255, 255, .25);
    color: var(--white);
    font-size: 1rem;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--tr);
    backdrop-filter: blur(6px);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .5);
    transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
    left: 22px;
}

.carousel-next {
    right: 22px;
}

.carousel-dots {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: var(--tr);
    border: none;
}

.dot.active {
    background: var(--gold-light);
    width: 24px;
    border-radius: 4px;
}

/* ── BOTONES GLOBALES ───────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: var(--gold);
    color: var(--white);
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--tr);
    letter-spacing: .2px;
    box-shadow: 0 4px 18px rgba(184, 149, 42, .3);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--gold-light);
    box-shadow: 0 8px 28px rgba(184, 149, 42, .42);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, .45);
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tr);
    text-decoration: none;
    white-space: nowrap;
    backdrop-filter: blur(6px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .7);
    transform: translateY(-2px);
    color: var(--white);
}

/* Variante dark (sobre fondo blanco) */
.btn-secondary.dark {
    color: var(--navy);
    border-color: var(--border-dark);
    background: transparent;
    backdrop-filter: none;
}

.btn-secondary.dark:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
    transform: translateY(-2px);
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: var(--gold);
    color: var(--white);
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--tr);
    box-shadow: var(--shadow-gold);
    text-decoration: none;
    white-space: nowrap;
}

.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-large {
    padding: 14px 32px !important;
    font-size: 1rem !important;
}

/* ── SECCIÓN: SERVICIOS DESTACADOS ─────────────────────── */
.servicios-destacados {
    padding: 88px 0;
    background: var(--off-white);
}

.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-label {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.18;
}

.section-sub {
    font-size: .93rem;
    color: var(--text-mid);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-bottom: 44px;
}

.servicio-card {
    background: var(--white);
    border-radius: 14px;
    padding: 32px 28px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--tr);
    position: relative;
    overflow: hidden;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    opacity: 0;
    transition: var(--tr);
}

.servicio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.servicio-card:hover::before {
    opacity: 1;
}

.servicio-icon {
    width: 60px;
    height: 60px;
    background: rgba(14, 31, 60, .05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold);
    margin: 0 auto 20px;
    transition: var(--tr);
}

.servicio-card:hover .servicio-icon {
    background: var(--navy);
    color: var(--gold-light);
}

.servicio-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.servicio-card p {
    font-size: .85rem;
    color: var(--text-mid);
    line-height: 1.65;
}

/* ── SECCIÓN ¿POR QUÉ ELEGIRNOS? ── */
.porque-section {
    padding: 80px 0;
    background: var(--white, #fff);
}

.porque-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 64px;
    align-items: center;
}

/* Foto */
.porque-foto {
    position: relative;
    border-radius: 16px;
    overflow: visible;
}

.porque-foto img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(15, 32, 53, .18);
    display: block;
}

.porque-foto-badge {
    position: absolute;
    bottom: -18px;
    right: -18px;
    background: var(--navy, #0f2035);
    border-radius: 12px;
    padding: 18px 22px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(15, 32, 53, .25);
    border: 3px solid var(--white, #fff);
}

.badge-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-light, #e8b95a);
    line-height: 1;
}

.badge-label {
    font-size: .72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Contenido */
.porque-content {
    padding-left: 8px;
}

.porque-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--navy, #0f2035);
    margin: 10px 0 16px;
    line-height: 1.2;
}

.porque-intro {
    font-size: .95rem;
    color: var(--text-mid, #4a5e72);
    line-height: 1.7;
    margin-bottom: 28px;
}

.porque-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    margin-bottom: 32px;
}

.porque-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.porque-item-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: rgba(30, 111, 217, .09);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue, #1e6fd9);
    font-size: .9rem;
}

.porque-item-body h4 {
    font-size: .88rem;
    font-weight: 700;
    color: var(--navy, #0f2035);
    margin-bottom: 3px;
}

.porque-item-body p {
    font-size: .8rem;
    color: var(--text-mid, #4a5e72);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .porque-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .porque-foto img {
        height: 320px;
    }

    .porque-foto-badge {
        bottom: -14px;
        right: 14px;
    }

    .porque-content {
        padding-left: 0;
    }
}

@media (max-width: 560px) {
    .porque-items {
        grid-template-columns: 1fr;
    }

    .porque-foto img {
        height: 240px;
    }
}

/* ── SECCIÓN: CTA FINAL ─────────────────────────────────── */
.cta-section {
    padding: 88px 0;
    text-align: center;
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    bottom: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 149, 42, .08) 0%, transparent 65%);
    pointer-events: none;
}

.cta-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--white);
    margin-bottom: 14px;
    font-weight: 700;
}

.cta-section p {
    font-size: .95rem;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 36px;
}

.cta-buttons-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── FORMULARIOS ────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 7px;
    letter-spacing: .2px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: .9rem;
    color: var(--text);
    background: var(--white);
    transition: var(--tr);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 149, 42, .12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Alertas */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(34, 197, 94, .08);
    border: 1px solid rgba(34, 197, 94, .25);
    color: #166534;
}

.alert-danger {
    background: rgba(239, 68, 68, .07);
    border: 1px solid rgba(239, 68, 68, .2);
    color: #991b1b;
}

/* Inputs con error (JS) */
input.field-error,
textarea.field-error {
    border-color: #ef4444 !important;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
    background: var(--navy, #0f2035);
    color: rgba(255, 255, 255, .55);
    padding: 56px 0 0;
}

/* Top layout */
.footer-top {
    display: grid;
    grid-template-columns: 1.1fr 2fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    margin-bottom: 22px;
}

/* Brand */
.footer-brand {
    padding-right: 16px;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 14px;
    letter-spacing: -.3px;
}

.footer-logo-image {
    height: 160px;
    width: auto;
    object-fit: contain;
    display: block;
    /* Invierte el logo para que se vea blanco sobre fondo oscuro */
    filter: brightness(0) invert(1);
}

.footer-logo span {
    color: var(--gold-light, #e8b95a);
}

.footer-tagline {
    font-size: .84rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .48);
    margin-bottom: 22px;
}

/* Social */
.social-links {
    display: flex;
    gap: 8px;
}

.social-links a {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .5);
    font-size: .82rem;
    text-decoration: none;
    transition: all .22s;
}

.social-links a:hover {
    background: var(--blue, #1e6fd9);
    border-color: var(--blue, #1e6fd9);
    color: #fff;
    transform: translateY(-3px);
}

/* Nav group */
.footer-nav-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 32px;
}

.footer-column h3 {
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    font-size: .84rem;
    color: rgba(255, 255, 255, .45);
    text-decoration: none;
    transition: color .2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-links a::before {
    content: '→';
    font-size: .7rem;
    color: var(--blue, #1e6fd9);
    opacity: 0;
    transition: opacity .2s, transform .2s;
    transform: translateX(-4px);
}

.footer-links a:hover {
    color: #fff;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Contact items */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-contact-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, .07);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light, #e8b95a);
    font-size: .8rem;
}

.footer-contact-val {
    display: block;
    font-size: .84rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 2px;
}

.footer-contact-sub {
    display: block;
    font-size: .74rem;
    color: rgba(255, 255, 255, .35);
}

/* WhatsApp CTA en footer */
.footer-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 9px 16px;
    background: rgba(37, 211, 102, .12);
    border: 1px solid rgba(37, 211, 102, .25);
    border-radius: 8px;
    color: #4ade80;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .22s;
    width: 100%;
    justify-content: center;
}

.footer-wa-btn:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

.footer-wa-btn i {
    font-size: .95rem;
}

/* Bottom bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-size: .76rem;
    color: rgba(255, 255, 255, .25);
    flex-wrap: wrap;
    gap: 8px;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-brand {
        padding-right: 0;
    }

    .footer-tagline {
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    .footer-nav-group {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-nav-group {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ── SECCIÓN PÁGINA HERO (página contacto/servicios/etc.) ── */
.page-hero-section {
    background: var(--navy);
    padding: 110px 0 52px;
    text-align: center;
}

/* ── MISC / UTILIDADES ──────────────────────────────────── */
.section-divider {
    height: 1px;
    background: var(--border);
    margin: 0 auto;
    max-width: 1180px;
}

/* Scroll top (generado por main.js, sobreescribimos las vars inline) */
#scrollTop {
    background: var(--navy) !important;
}

#scrollTop:hover {
    background: var(--gold) !important;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {

    /* Header móvil */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 1001;
    }

    .logo-image {
        height: 50px;
        transform: scale(1.2);
    }

    .nav-links {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        padding: 20px;
        gap: 4px;
        box-shadow: 0 12px 32px rgba(14, 31, 60, .12);
        border-bottom: 1px solid var(--border);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: var(--tr);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        display: block;
        padding: 12px 16px;
        font-size: .95rem;
    }

    .header-cta {
        justify-content: center;
        margin-top: 8px;
    }

    /* Hero */
    .hero {
        height: 80vh;
        margin-top: 68px;
    }

    .carousel-content {
        padding: 0 24px;
        max-width: 100%;
    }

    .carousel-content h1 {
        font-size: 2rem;
    }

    .carousel-content p {
        font-size: .92rem;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 10px;
    }

    .hero-cta-group .btn-primary,
    .hero-cta-group .btn-secondary {
        justify-content: center;
    }

    .btn-large {
        padding: 12px 24px !important;
        font-size: .92rem !important;
    }

    /* Secciones */
    .servicios-destacados {
        padding: 60px 0;
    }

    .cta-section {
        padding: 64px 0;
    }

    .cta-buttons-group {
        flex-direction: column;
        align-items: center;
    }

    /* Ocultar flechas carousel en móvil */
    .carousel-prev,
    .carousel-next {
        display: none;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.7rem;
    }

    .page-hero {
        padding: 100px 0 40px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}