/* Caba Renovation - Master Production Stylesheet (v31.0.0) */
:root {
    --bg-primary: #ffffff;
    --text-primary: #1e293b;
    --card-bg: #f8fafc;
    --text-muted: #64748b;
    --card-border: rgba(0, 0, 0, 0.08);
    --header-bg: #ffffff;
    --header-border: rgba(0, 0, 0, 0.06);
    --nav-link-color: #1e293b;
    --dropdown-bg: #ffffff;
    --dropdown-hover: rgba(230, 35, 41, 0.08);
    --topbar-bg: #0d2847;
    --topbar-color: #ffffff;
    --topbar-muted: #cbd5e1;
    --footer-bg: #071524;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --input-text: #1e293b;
    --faq-summary-color: #183B56;
}

[data-theme="dark"] {
    --bg-primary: #071524;
    --text-primary: #f1f5f9;
    --card-bg: #0d2847;
    --text-muted: #94a3b8;
    --card-border: rgba(255, 255, 255, 0.08);
    --header-bg: #0a1c30;
    --header-border: rgba(255, 255, 255, 0.08);
    --nav-link-color: #f1f5f9;
    --dropdown-bg: #0d2847;
    --dropdown-hover: rgba(230, 35, 41, 0.18);
    --topbar-bg: #050e18;
    --topbar-color: #ffffff;
    --topbar-muted: #94a3b8;
    --footer-bg: #040a12;
    --input-bg: #071524;
    --input-border: rgba(255, 255, 255, 0.15);
    --input-text: #f1f5f9;
    --faq-summary-color: #f1f5f9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}
a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }

/* Google Material Symbols */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
}

/* TOPBAR & THEME TOGGLE */
.topbar {
    background: var(--topbar-bg);
    color: var(--topbar-color);
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.theme-toggle-btn {
    display: none !important;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    padding: 0;
    margin-left: 8px;
    flex-shrink: 0;
}
.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.08);
}
.theme-toggle-btn .material-symbols-outlined {
    font-size: 19px;
    color: inherit;
    line-height: 1;
}
.topbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.topbar-left a {
    color: #cbd5e1;
    font-weight: 600;
}
.topbar-left a:hover { color: #ffffff; }
.topbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
}
.topbar-item:hover { color: #ffffff; }
.topbar-item .material-symbols-outlined { font-size: 16px; color: #38bdf8; }

/* HEADER & NAVBAR */
.site-header {
    background: var(--header-bg); border-bottom: 1px solid var(--header-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-container img {
    height: 48px;
    width: auto;
    object-fit: contain;
}
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 28px;
}
.nav-item { position: relative; }
.nav-link {
    font-size: 14.5px;
    font-weight: 600;
    color: #183B56;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}
.nav-link:hover, .nav-link.active { color: #e62329; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 12px 0;
    min-width: 270px;
    list-style: none;
    z-index: 1100;
    border-top: 3px solid #e62329;
}
.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 22px;
    font-size: 13px;
    font-weight: 600;
    color: #183B56;
}
.dropdown-menu li a:hover {
    background: #f8fafc;
    color: #e62329;
    padding-left: 26px;
}
.nav-item:hover .dropdown-menu { display: block; }
.btn-header-contact {
    background: #0d2847;
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    transition: background 0.2s;
}
.btn-header-contact:hover { background: #e62329; }

/* BOTÓN TOGGLE MOBILE */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #0d2847;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}
.mobile-nav-toggle .material-symbols-outlined {
    font-size: 28px;
}

/* ========================================================== */
/* HERO SECTION: GRADIENTE ULTRA-TRANSLÚCIDO                  */
/* rgba(13, 40, 71, 0.20) SUPERIOR | rgba(13, 40, 71, 0.38) INFERIOR */
/* ========================================================== */
.hero-section {
    position: relative;
    min-height: 620px;
    background-image: url('/assets/images/home/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 80px 24px 100px;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 40, 71, 0.20) 0%, rgba(13, 40, 71, 0.38) 100%);
}
.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
}

/* ========================================================== */
/* TARJETAS DEL HERO: rgba(255, 255, 255, 0.90) & BLUR 8px   */
/* ========================================================== */
.hero-card {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 2px solid rgba(255, 255, 255, 0.92);
    display: flex;
    flex-direction: column;
}
.hero-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.35);
    border-color: #e62329;
}
.hero-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-bottom: 2px solid rgba(13, 40, 71, 0.08);
}
.hero-card-body {
    padding: 18px 18px;
    position: relative;
    flex-grow: 1;
}
.hero-card-body h3 {
    color: #0d2847;
    font-size: 16.5px;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.25;
}
.hero-card-body p {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    padding-right: 28px;
    line-height: 1.4;
}
.target-pin {
    position: absolute;
    bottom: 18px;
    right: 16px;
    width: 22px;
    height: 22px;
    border: 2px solid #0d2847;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.target-pin::after {
    content: '';
    width: 7px;
    height: 7px;
    background: #0d2847;
    border-radius: 50%;
}

/* SECCIÓN ACHIEVEMENTS (TARJETA CON BORDES REDONDEADOS) */
.achievements-floating-wrapper {
    max-width: 1200px;
    margin: -50px auto 70px;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}
.achievements-card-rounded {
    background: #0d2847;
    border-radius: 20px;
    padding: 50px 45px;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(13, 40, 71, 0.35);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}
.achievements-left { max-width: 440px; }
.achievements-left h2 {
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
}
.achievements-left p {
    color: #cbd5e1;
    font-size: 14.5px;
    line-height: 1.7;
}
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 30px 45px;
}
.stat-val {
    font-size: clamp(36px, 4vw, 46px);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    color: #ffffff;
}
.stat-lbl {
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 500;
}

/* ABOUT US */
.about-section {
    padding: 20px 24px 75px;
    max-width: 1200px;
    margin: 0 auto;
}
.about-header {
    text-align: center;
    margin-bottom: 45px;
}
.about-header h2 {
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 800;
    color: #e62329;
    margin-bottom: 14px;
}
.about-header p {
    max-width: 820px;
    margin: 0 auto;
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
}
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.about-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 32px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.about-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}
.about-row-left {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 85%;
}
.about-icon {
    font-size: 42px !important;
    color: #183B56;
    flex-shrink: 0;
}
.about-row-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.about-row-content p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
}
.about-num {
    font-size: 44px;
    font-weight: 900;
    color: #e2e8f0;
}

/* WELCOME BANNER */
/* SECCIÓN WELCOME (100% ESTÁTICA CON TRAZO DE PINCEL ARTESANAL) */
.welcome-section {
    position: relative;
    overflow: visible;
    padding: 40px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 30px;
}
.welcome-content {
    position: relative;
    overflow: visible;
    max-width: 780px;
}
/* Trazo de Pincel Artesanal Translúcido Rediseñado */
.brush-stroke-bg {
    position: absolute;
    top: -8px;
    left: -12px;
    width: 100%;
    max-width: 320px;
    height: 55px;
    background: radial-gradient(ellipse at center, rgba(230, 35, 41, 0.16) 0%, rgba(230, 35, 41, 0.04) 70%, transparent 100%);
    filter: blur(6px);
    border-radius: 30px;
    pointer-events: none;
    z-index: 1;
}
.welcome-title, .welcome-tag, .welcome-desc {
    position: relative;
    z-index: 2;
}
/* Animaciones de Entrada al Hacer Scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.welcome-tag {
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.welcome-title {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 800;
    color: #183B56;
    margin-bottom: 14px;
    line-height: 1.25;
}
.welcome-desc {
    color: #64748b;
    font-size: 15.5px;
    line-height: 1.7;
}
.btn-welcome {
    display: inline-block;
    background: #e62329;
    color: #ffffff;
    padding: 13px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(230, 35, 41, 0.28);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 2;
    text-decoration: none;
}
.btn-welcome:hover {
    background: #c81d22;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 35, 41, 0.38);
    color: #ffffff;
}

/* FRANJA ROJA CTA SLIDER (5s - ZERO FLICK GRID STACKING) */
.cta-strip {
    background: #e62329;
    padding: 20px 24px;
    color: #ffffff;
    margin: 20px 0 60px;
    box-shadow: 0 6px 20px rgba(230, 35, 41, 0.25);
}
.cta-slider-track {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-areas: "slide";
    align-items: center;
    min-height: 72px;
}
.cta-slide {
    grid-area: slide;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}
.cta-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.cta-phone {
    color: #ffffff;
    font-weight: 700;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.cta-phone:hover {
    opacity: 0.85;
    color: #ffffff;
}
.cta-center-text {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 800;
    text-align: center;
}
.btn-cta-book {
    background: #0d2847;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}
.btn-cta-book:hover {
    background: #183B56;
    transform: translateY(-2px);
    color: #ffffff;
}

/* CARRUSEL DE FOTOS (2s) CON LIGHTBOX, SOPORTE TÁCTIL Y PAUSA */
.carousel-section {
    background: var(--bg-primary);
    padding: 75px 24px;
}
.carousel-header {
    text-align: center;
    margin-bottom: 40px;
}
.carousel-header h2 {
    font-size: clamp(28px, 3.5vw, 36px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.carousel-header p {
    color: #64748b;
    font-size: 15px;
    max-width: 650px;
    margin: 0 auto;
}
.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 15px 5px;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    user-select: none;
}
.carousel-slide {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 290px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    background: var(--card-bg); border: 1px solid var(--card-border);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}
.carousel-slide:hover { transform: translateY(-6px); }
.carousel-slide img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}
.carousel-slide:hover img { transform: scale(1.06); }

/* BADGE DE LUPA SIN TEXTO */
.carousel-slide-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(13,40,71,0.85);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: background 0.2s, transform 0.2s;
}
.carousel-slide:hover .carousel-slide-badge {
    background: #e62329;
    transform: scale(1.1);
}
.carousel-slide-caption { padding: 18px 20px; }
.carousel-slide-caption h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.carousel-slide-caption p {
    font-size: 13px;
    color: var(--text-muted);
}
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
}
.carousel-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0d2847;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.carousel-btn:hover {
    background: #e62329;
    transform: scale(1.08);
}

/* ========================================================== */
/* TARJETA DE INVITACIÓN SOCIAL EN SUBPÁGINAS (v23.1.0)       */
/* ========================================================== */
.subpage-social-card {
    max-width: 1150px;
    margin: 45px auto 10px;
    background: linear-gradient(135deg, #0d2847 0%, #173b64 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 38px 30px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(13, 40, 71, 0.22);
    position: relative;
    overflow: hidden;
}
.subpage-social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e62329, #f59e0b, #e62329);
}
.subpage-social-card h3 {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
}
.subpage-social-card p {
    font-size: 15px;
    color: #cbd5e1;
    max-width: 720px;
    margin: 0 auto 28px;
    line-height: 1.6;
}
.subpage-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.social-invite-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.social-invite-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 24px rgba(0,0,0,0.3);
    filter: brightness(1.1);
}
.social-invite-btn.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-invite-btn.youtube-btn {
    background: #ff0000;
}
.social-invite-btn .material-symbols-outlined {
    font-size: 20px;
}

/* ========================================================== */
/* GRID SIDE-BY-SIDE: TESTIMONIALS & FAQS (>= 992px)          */
/* ========================================================== */
.testimonials-faqs-section {
    background: var(--bg-primary);
    padding: 85px 24px;
    border-top: 1px solid #f1f5f9;
}
.testimonials-faqs-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.testimonials-col, .faqs-col {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.testimonials-header, .faqs-header {
    margin-bottom: 25px;
}
.testimonials-tag, .faqs-tag {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.testimonials-title, .faqs-title {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 10px;
}
.faqs-desc {
    color: #64748b;
    font-size: 14.5px;
    line-height: 1.6;
}

/* TARJETA DE TESTIMONIOS */
.testimonial-card {
    background: #183B56;
    color: #ffffff;
    border-radius: 14px;
    padding: 38px 34px;
    width: 100%;
    position: relative;
    box-shadow: 0 16px 45px rgba(0,0,0,0.12);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 0.25s ease;
}
.testimonial-card-title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #ffffff;
}
.quote-icon {
    font-size: 52px;
    line-height: 1;
    color: #38bdf8;
    margin-bottom: 6px;
    font-family: serif;
}
.testimonial-quote-box {
    flex-grow: 1;
    display: flex;
    align-items: center;
}
.testimonial-text {
    font-size: 15.5px;
    line-height: 1.7;
    color: #e2e8f0;
    margin-bottom: 20px;
    font-style: italic;
}
.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 18px;
}
.stars-container {
    color: #f59e0b;
    font-size: 20px;
    margin-bottom: 4px;
    letter-spacing: 3px;
}
.author-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}
.author-role {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 400;
}
.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #38bdf8;
    object-fit: cover;
}
.slider-dots {
    display: flex;
    gap: 14px;
    margin-top: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
}
.slider-dot-btn {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s;
}
.slider-dot-btn.active {
    color: #ffffff;
    border-bottom: 2.5px solid #f59e0b;
}

/* ACORDEÓN FAQS */
.faqs-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}
.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    transition: all 0.2s ease;
}
.faq-item[open] {
    border-color: #0d2847;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.faq-item summary {
    padding: 16px 20px;
    font-size: 15.5px;
    font-weight: 700;
    color: #183B56;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 700;
    color: #e62329;
    flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-content {
    padding: 0 20px 18px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* CONTACT FORM */
.contact-section {
    background: var(--bg-primary);
    padding: 80px 24px;
    border-top: 1px solid #e2e8f0;
}
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}
.contact-info { max-width: 460px; }
.contact-info h2 {
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
}
.contact-info p {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 30px;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-detail-item {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.contact-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--input-text);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #0d2847;
    box-shadow: 0 0 0 3px rgba(13, 40, 71, 0.12);
}
.btn-submit {
    background: #0d2847;
    color: #ffffff;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-submit:hover { background: #e62329; }

/* FOOTER CON LOGO EN CÁPSULA CORPORATIVA BLANCA */
.site-footer {
    background: #0d2847;
    color: #ffffff;
    padding: 80px 24px 35px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}
.footer-logo-capsule {
    background: #ffffff;
    padding: 8px 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.18);
    margin-bottom: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.footer-logo-capsule:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.footer-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}
.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 35px;
    height: 2px;
    background: #e62329;
}
.footer-col p {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.7;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    font-size: 14px;
}
.footer-links a:hover { color: #e62329; }
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 14px;
}
.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
}
.footer-contact-list .material-symbols-outlined {
    color: #ffffff;
    font-size: 18px;
}
.social-icons { display: flex; gap: 12px; }
.social-btn {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: 0.2s;
}
.social-btn:hover {
    background: #e62329;
    transform: translateY(-2px);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 25px 0 10px;
    font-size: 13px;
    color: #64748b;
}
.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-legal-links a {
    color: #94a3b8;
    text-decoration: underline;
    font-size: 13px;
    transition: color 0.2s ease;
}
.footer-legal-links a:hover {
    color: #e62329;
}

/* ========================================================== */
/* BOTÓN FLOTANTE GLOBAL DE CONTACTO (INFERIOR IZQUIERDA)     */
/* ========================================================== */
.floating-contact-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9999;
    background: #e62329;
    color: #ffffff !important;
    padding: 12px 22px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(230, 35, 41, 0.45);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    text-decoration: none;
}
.floating-contact-btn:hover {
    background: #0d2847;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(13, 40, 71, 0.45);
    border-color: rgba(255, 255, 255, 0.6);
}
.floating-contact-btn .material-symbols-outlined {
    font-size: 20px;
}

/* BOTÓN FLOTANTE IDIOMA CON BANDERA DINÁMICA A LA IZQUIERDA */
.lang-switch-floating {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    background: rgba(13, 40, 71, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    transition: background 0.2s, box-shadow 0.2s;
}
.lang-switch-floating:hover {
    background: #0d2847;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.lang-flag-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}
.lang-flag-svg {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    display: block;
}
.lang-btn {
    font-size: 13.5px;
    font-weight: 700;
    color: #cbd5e1;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.5px;
}
.lang-btn.active {
    color: #ffffff;
    background: #e62329;
}
.lang-btn:hover:not(.active) {
    color: #ffffff;
}
.lang-divider {
    color: rgba(255,255,255,0.3);
    font-size: 12px;
    user-select: none;
}

/* LIGHTBOX MODAL CON FLECHAS DE NAVEGACIÓN */
.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.lightbox-modal.active {
    display: flex;
    opacity: 1;
}
.lightbox-image-wrapper {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    color: #ffffff;
    font-size: 38px;
    cursor: pointer;
    border: none;
    background: transparent;
    line-height: 1;
    transition: transform 0.2s;
    z-index: 10010;
}
.lightbox-close:hover {
    transform: scale(1.2);
    color: #e62329;
}
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(13, 40, 71, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 10010;
}
.lightbox-nav-btn:hover {
    background: #e62329;
    transform: translateY(-50%) scale(1.1);
}
.lightbox-prev-btn { left: 25px; }
.lightbox-next-btn { right: 25px; }

/* ========================================================== */
/* RESPONSIVIDAD FLUIDA (< 992px, < 768px, < 600px)           */
/* ========================================================== */
@media (max-width: 991.98px) {
    .testimonials-faqs-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .testimonial-card {
        min-height: auto;
    }
    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.14);
        gap: 16px;
        align-items: flex-start;
        border-top: 3px solid #e62329;
    }
    .nav-menu.open {
        display: flex;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 6px 0 6px 14px;
        background: #f8fafc;
        width: 100%;
    }
    .achievements-card-rounded {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .contact-container {
        flex-direction: column;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .topbar-container {
        justify-content: center;
        text-align: center;
    }
    .cta-container {
        justify-content: center;
        text-align: center;
    }
    .carousel-slide {
        flex: 0 0 85%;
    }
    .lightbox-nav-btn {
        width: 44px;
        height: 44px;
    }
    .lightbox-prev-btn { left: 10px; }
    .lightbox-next-btn { right: 10px; }
    .about-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .about-row-left {
        max-width: 100%;
    }
    .about-num {
        align-self: flex-end;
    }
}

@media (max-width: 600px) {
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    .floating-contact-btn {
        bottom: 18px;
        left: 14px;
        padding: 10px 16px;
        font-size: 12px;
        gap: 6px;
    }
    .lang-switch-floating {
        bottom: 18px;
        right: 14px;
        padding: 6px 12px;
    }
    .subpage-social-card {
        padding: 28px 18px;
        margin: 30px 10px 5px;
    }
    .subpage-social-links {
        flex-direction: column;
        gap: 12px;
    }
    .social-invite-btn {
        width: 100%;
        justify-content: center;
    }
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}


/* ========================================================== */
/* MODAL DE CONFIRMACIÓN DE LEAD Y CONEXIÓN WHATSAPP (v31.0.0)*/
/* ========================================================== */
.lead-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.lead-modal-overlay.active {
    display: flex;
    opacity: 1;
}
.lead-modal-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    border-radius: 16px;
    padding: 36px 28px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.25s ease;
}
.lead-modal-overlay.active .lead-modal-card {
    transform: scale(1);
}
.lead-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}
.lead-modal-close:hover {
    color: #e62329;
    transform: scale(1.15);
}
.lead-modal-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.lead-modal-icon-badge .material-symbols-outlined {
    font-size: 36px;
}
.lead-modal-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.lead-modal-desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.lead-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lead-modal-wa-btn {
    background: #25d366;
    color: #ffffff !important;
    padding: 13px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}
.lead-modal-wa-btn:hover {
    background: #1eb954;
    transform: translateY(-2px);
}
.lead-modal-call-btn {
    background: #0d2847;
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
}
.lead-modal-call-btn:hover {
    background: #183B56;
    transform: translateY(-2px);
}

/* ========================================================== */
/* PÁGINA LEGAL Y CIBERSEGURIDAD (v24.0.0)                     */
/* ========================================================== */
.legal-page-hero {
    background: linear-gradient(135deg, #091929 0%, #0d2847 100%);
    padding: 70px 24px 50px;
    text-align: center;
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.legal-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}
.legal-breadcrumbs {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
}
.legal-breadcrumbs a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}
.legal-breadcrumbs a:hover {
    color: #ef4444;
}
.legal-hero-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(239, 68, 68, 0.25);
    margin-bottom: 14px;
}
.legal-hero-title {
    font-size: clamp(26px, 3.8vw, 40px);
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.25;
}
.legal-hero-subtitle {
    font-size: 16px;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 780px;
    margin: 0 auto;
}
.legal-toc-bar {
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 16px 24px;
    position: sticky;
    top: 70px;
    z-index: 40;
}
.legal-toc-container {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}
.legal-toc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    transition: all 0.2s ease;
}
.legal-toc-pill:hover {
    color: #ffffff;
    background: #e62329;
    border-color: #e62329;
}
.legal-main-section {
    background: #09121d;
    padding: 50px 24px 70px;
}
.legal-content-container {
    max-width: 1040px;
    margin: 0 auto;
}
.legal-card {
    background: #111d2d;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 34px;
    margin-bottom: 28px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    transition: border-color 0.2s ease;
}
.legal-card:hover {
    border-color: rgba(230, 35, 41, 0.35);
}
.legal-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.legal-card-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}
.legal-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(230, 35, 41, 0.12);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.legal-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}
.legal-statute-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.1);
}
.legal-paragraph {
    font-size: 15.5px;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 14px;
    text-align: justify;
    text-justify: inter-word;
}
.legal-paragraph:last-child {
    margin-bottom: 0;
}
.legal-highlight-box {
    margin-top: 18px;
    background: rgba(230, 35, 41, 0.06);
    border-left: 4px solid #ef4444;
    padding: 16px 20px;
    border-radius: 0 10px 10px 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: #fecaca;
}
.legal-highlight-box strong {
    color: #ffffff;
}

/* ==========================================================================
   ESTILOS EXPLÍCITOS DARK MODE CON ESPECIFICIDAD GARANTIZADA (v31.0.0)
   ========================================================================== */
html[data-theme="dark"], html[data-theme="dark"] body { background-color: #071524 !important; color: #f1f5f9 !important; }
html[data-theme="dark"] .site-header { background-color: #0a1c30 !important; }
html[data-theme="dark"] .nav-link { color: #f1f5f9 !important; }
html[data-theme="dark"] .dropdown-menu { background-color: #0d2847 !important; }
html[data-theme="dark"] .dropdown-menu li a { color: #f1f5f9 !important; }
html[data-theme="dark"] .about-row, html[data-theme="dark"] .faq-item { background-color: #0d2847 !important; border-color: rgba(255,255,255,0.08) !important; color: #f1f5f9 !important; }
html[data-theme="dark"] .about-row-content h3, html[data-theme="dark"] .faq-item summary { color: #ffffff !important; }
html[data-theme="dark"] .about-row-content p, html[data-theme="dark"] .faq-content { color: #cbd5e1 !important; }
html[data-theme="dark"] .dual-social-faqs-section, html[data-theme="dark"] .contact-section { background-color: #071524 !important; border-color: rgba(255,255,255,0.06) !important; }
html[data-theme="dark"] .contact-info h2, html[data-theme="dark"] .contact-detail-item { color: #ffffff !important; }
html[data-theme="dark"] .contact-form input, html[data-theme="dark"] .contact-form textarea { background-color: #0d2847 !important; border-color: rgba(255,255,255,0.15) !important; color: #ffffff !important; }
html[data-theme="dark"] .carousel-section { background-color: #071524 !important; }
html[data-theme="dark"] .carousel-header h2, html[data-theme="dark"] .about-header h2, html[data-theme="dark"] .testimonials-header h2, html[data-theme="dark"] .faqs-header h2 { color: #ffffff !important; }
html[data-theme="dark"] .carousel-header p, html[data-theme="dark"] .about-header p, html[data-theme="dark"] .testimonials-header p, html[data-theme="dark"] .faqs-header p, html[data-theme="dark"] .contact-info p { color: #94a3b8 !important; }
html[data-theme="dark"] .about-icon { color: #38bdf8 !important; }
html[data-theme="dark"] .about-num { color: rgba(255, 255, 255, 0.12) !important; }
html[data-theme="dark"] .subpage-lead-copy p { color: #cbd5e1 !important; }

