﻿/* ==============================================
   SHALOM LEGACY — Dual-Theme Styles
   Colors from logo: Gold #C8A54E, Sun #F2C94C,
   Mountain #6B7F5E, Legacy text #6B6B6B
   ============================================== */

/* ─── THEME TOKENS: LIGHT (default) ─── */
[data-theme="light"] {
    --gold:        #C8A54E;
    --gold-light:  #DBB960;
    --gold-pale:   #F7EDE3;
    --gold-sun:    #F2C94C;
    --green-mtn:   #6B7F5E;
    --green-deep:  #5A6D4E;
    --green-pale:  #E8EDDF;
    --gray-logo:   #6B6B6B;
    --dark:        #1E1E1E;
    --dark-soft:   #2A2A2A;
    --gray:        #F7F5F0;
    --gray-mid:    #7A7A7A;
    --light:       #FDFCFA;
    --white:       #FFFFFF;
    --bg:          #FDFCFA;
    --bg-alt:      #F7F5F0;
    --text:        #2A2A2A;
    --text-mid:    #7A7A7A;
    --card-bg:     #FFFFFF;
    --card-border: rgba(0,0,0,0.05);
    --input-bg:    #F7F5F0;
    --shadow-clr:  rgba(0,0,0,0.08);
    --nav-text:    #2A2A2A;
    --nav-link:    rgba(42,42,42,0.7);
    --footer-bg:   #1E1E1E;
    --badge-bg:    #E8EDDF;
    --badge-text:  #5A6D4E;
    --icon-text:   #2A2A2A;
    --icon-hover-bg: #FFFFFF;
}

/* ─── THEME TOKENS: DARK ─── */
[data-theme="dark"] {
    --gold:        #DFC06E;
    --gold-light:  #E8CC7A;
    --gold-pale:   #2A2518;
    --gold-sun:    #F2C94C;
    --green-mtn:   #7DA06E;
    --green-deep:  #6B7F5E;
    --green-pale:  #1A2218;
    --gray-logo:   #9A9A9A;
    --dark:        #0D0D0D;
    --dark-soft:   #1C1C1C;
    --gray:        #111111;
    --gray-mid:    #9A9A9A;
    --light:       #0A0A0A;
    --white:       #FFFFFF;
    --bg:          #0A0A0A;
    --bg-alt:      #111111;
    --text:        #E0E0E0;
    --text-mid:    #9A9A9A;
    --card-bg:     #141414;
    --card-border: rgba(255,255,255,0.06);
    --input-bg:    #1A1A1A;
    --shadow-clr:  rgba(0,0,0,0.3);
    --nav-text:    #E0E0E0;
    --nav-link:    rgba(224,224,224,0.7);
    --footer-bg:   #060606;
    --badge-bg:    #1A2218;
    --badge-text:  #7DA06E;
    --icon-text:   #E0E0E0;
    --icon-hover-bg: #1A1A1A;
}

/* ─── BASE TOKENS ─── */
:root {
    --heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --section: clamp(80px, 10vw, 140px);
    --container: min(1200px, calc(100% - 48px));
    --spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
    --smooth:   cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.6s;
    --shadow-md:  0 4px 16px var(--shadow-clr), 0 2px 4px var(--shadow-clr);
    --shadow-lg:  0 12px 48px var(--shadow-clr), 0 4px 12px var(--shadow-clr);
    --shadow-xl:  0 24px 64px var(--shadow-clr), 0 8px 20px var(--shadow-clr);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    transition: background 0.4s var(--smooth), color 0.4s var(--smooth);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading);
    line-height: 1.2;
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ════════════════════════════════════
   THEME / LANG TOGGLE BUTTONS
   ════════════════════════════════════ */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    order: 10;
}

.btn-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.2);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s var(--smooth);
    position: relative;
    overflow: hidden;
}
.btn-icon:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(200,165,78,0.1);
}

.navbar.scrolled .btn-icon {
    border-color: rgba(0,0,0,0.1);
    color: var(--nav-text);
}
.navbar.scrolled .btn-icon:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(200,165,78,0.1);
}

/* Moon is hidden in light mode */
body.theme-light .icon-moon { display: none; }
body.theme-dark .icon-sun   { display: none; }

/* Navbar toggle buttons — ensure visibility at top vs scrolled */
.navbar:not(.scrolled) .btn-icon {
    border-color: rgba(255,255,255,0.3);
    color: #FFFFFF;
}
.navbar:not(.scrolled) .btn-icon:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(200,165,78,0.15);
}

.lang-label {
    font-family: var(--body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border-radius: 100px;
    transition: all 0.35s var(--smooth);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold);
    color: #FFF;
    box-shadow: 0 4px 16px rgba(200,165,78,0.35);
}
.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(200,165,78,0.45);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(4px);
}
.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.08);
}

.btn-sm { padding: 10px 24px; font-size: 0.8rem; }
.btn-lg { padding: 18px 44px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ─── LAYOUT ─── */
.container { width: var(--container); margin: 0 auto; }
.section { padding: var(--section) 0; }

.section-badge {
    display: inline-block;
    font-family: var(--body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--badge-text);
    background: var(--badge-bg);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 3.8vw, 3rem);
    margin-bottom: 16px;
}
.section-title strong { color: var(--green-deep); }
.section-title em { color: var(--gold); font-style: italic; }

.section-subtitle {
    max-width: 620px;
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.8;
}

/* ─── REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity var(--duration) var(--smooth),
                transform var(--duration) var(--spring);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ─── NAVBAR ─── */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--smooth);
}
.navbar.scrolled {
    background: rgba(253,252,250,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
    padding: 10px 0;
}
[data-theme="dark"] .navbar.scrolled {
    background: rgba(10,10,10,0.92);
    box-shadow: 0 1px 12px rgba(0,0,0,0.3);
}

.navbar-inner {
    width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.logo-img {
    height: 42px;
    width: auto;
    transition: filter 0.3s var(--smooth);
}
.logo-img:hover {
    filter: drop-shadow(0 0 12px rgba(200,165,78,0.5));
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.navbar-nav a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    transition: all 0.3s var(--smooth);
    position: relative;
}
.navbar.scrolled .navbar-nav a {
    color: var(--nav-text);
}
.navbar.scrolled .navbar-nav a:hover {
    color: var(--gold);
}
.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1.5px;
    background: var(--gold);
    transition: width 0.3s var(--smooth);
}
.navbar-nav a:hover::after { width: 100%; }
.navbar-nav a:hover { color: var(--gold); }

.navbar-cta {
    background: var(--gold) !important;
    color: #FFF !important;
    border-radius: 100px;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    transition: all 0.3s var(--smooth);
}
.navbar-cta:hover {
    background: var(--gold-light) !important;
    transform: translateY(-1px);
}
.navbar-cta::after { display: none !important; }


/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    overflow: hidden;
}
.hero-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 30%;
    z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(18,18,18,0.55) 0%, rgba(18,18,18,0.7) 50%, rgba(18,18,18,0.85) 100%),
        linear-gradient(90deg, rgba(18,18,18,0.3) 0%, transparent 50%, rgba(18,18,18,0.3) 100%);
    z-index: 1;
}
.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    max-width: 800px; padding: 0 24px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-sun);
    border: 1px solid rgba(200,165,78,0.35);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
    background: rgba(0,0,0,0.25);
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.15;
}
.hero-title em {
    color: var(--gold-light);
    font-style: italic;
}
.hero-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 40px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.4);
    animation: bounce 2s ease-in-out infinite;
    display: flex;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ════════════════════════════════════
   LOGO SHOWCASE
   ════════════════════════════════════ */
/* ═══════════════════════════════════
   BRAND DIVIDER
   ═══════════════════════════════════ */
.brand-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    background: var(--bg);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}
.brand-divider::before,
.brand-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.2;
}
.brand-char {
    font-family: var(--heading);
    font-size: 2.5rem;
    color: var(--gold);
    opacity: 0.35;
    padding: 0 24px;
    user-select: none;
    flex-shrink: 0;
}
[data-theme="dark"] .brand-divider::before,
[data-theme="dark"] .brand-divider::after {
    opacity: 0.12;
}
[data-theme="dark"] .brand-char {
    opacity: 0.25;
}

/* ─── ABOUT ── */
.about { background: var(--bg); }

.about-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}
.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-image {
    width: 100%; height: 400px;
    object-fit: cover; display: block;
}
.about-image-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(30,30,30,0.45) 100%);
}
.about-image-badge {
    position: absolute; bottom: 20px; left: 20px;
    display: flex; flex-direction: column; align-items: flex-start;
}
.about-image-year {
    font-family: var(--heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-sun);
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.about-image-label {
    font-family: var(--body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--card-border);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-number {
    font-family: var(--heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-mid);
    line-height: 1.5;
    letter-spacing: 0.01em;
    gap: 2px;
    display: block;
}
.stat-divider {
    width: 1px; height: 40px;
    background: rgba(0,0,0,0.08);
    flex-shrink: 0;
}
[data-theme="dark"] .stat-divider {
    background: rgba(255,255,255,0.08);
}

/* Dark mode overrides */
[data-theme="dark"] .section-title strong {
    color: var(--green-mtn);
}

[data-theme="dark"] .about-card:hover {
    border-color: rgba(200,165,78,0.2);
}

[data-theme="dark"] .value-card:hover {
    border-color: rgba(125,160,110,0.25);
}

[data-theme="dark"] .servicio-card:not(.featured):hover {
    border-color: rgba(223,192,110,0.25);
}

/* (featured card rules are defined inline below, not here) */

[data-theme="dark"] .diff-item:hover {
    background: var(--dark);
}

[data-theme="dark"] .diff-image-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
}

@media (max-width: 768px) {
    [data-theme="dark"] .navbar-nav.open {
        background: var(--dark);
    }
    [data-theme="dark"] .navbar-nav.open a {
        color: #E0E0E0 !important;
    }
    [data-theme="dark"] .navbar-nav.open a:hover {
        color: var(--gold) !important;
    }
}

.about-header { text-align: center; }
.about-header .section-subtitle { margin: 0 auto; }

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}
.about-card {
    padding: 40px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    transition: all 0.4s var(--smooth);
}
.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-pale);
}
.about-card-icon {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    background: var(--green-pale);
    color: var(--green-deep);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid rgba(107,127,94,0.12);
}
.about-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.about-card p { font-size: 0.95rem; color: var(--text-mid); line-height: 1.8; }

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.value-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 12px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    text-align: center;
    transition: all 0.35s var(--spring);
}
.value-card:hover {
    background: var(--green-pale);
    border-color: rgba(107,127,94,0.18);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.value-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: var(--icon-hover-bg);
    border-radius: 50%;
    color: var(--green-mtn);
    border: 1px solid rgba(107,127,94,0.12);
    transition: all 0.3s var(--smooth);
}
.value-card:hover .value-icon-wrap {
    background: var(--green-mtn);
    color: var(--white);
}
.value-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.01em;
    line-height: 1.3;
}

/* ─── SERVICES ── */
/* ─── SERVICES (Premium Carousel) ── */
.servicios {
    background: var(--bg-alt);
    color: var(--text);
    overflow: hidden;
}

.servicios .section-badge {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--gold);
}

.servicios .section-title {
    color: var(--text);
    text-align: center;
}
.servicios .section-title strong { color: var(--gold); }

.servicios .section-subtitle {
    color: var(--text-mid);
    text-align: center;
    margin: 0 auto 64px;
}

/* Carousel Container */
.servicios-carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.servicios-carousel {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    gap: 32px;
}

.carousel-card {
    flex: 0 0 calc((100% - 64px) / 3);
    background: var(--card-bg);
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: all 0.4s var(--smooth);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
}

@media (max-width: 1100px) {
    .carousel-card { flex: 0 0 calc((100% - 32px) / 2); }
}

@media (max-width: 768px) {
    .carousel-card { flex: 0 0 100%; }
    .servicios-carousel-wrapper { padding: 0 20px; }
}

.carousel-card:hover {
    transform: translateY(-10px);
    border-color: rgba(200,165,78,0.3);
    box-shadow: var(--shadow-xl);
}

.card-image {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.4) 100%);
}

html[lang="en"] .lang-es { display: none !important; }
html[lang="es"] .lang-en { display: none !important; }

/* ─── MODAL TERMS & CONDITIONS ─── */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--smooth);
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: all 0.4s var(--spring);
    display: flex;
    flex-direction: column;
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--text-mid);
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover {
    color: var(--text);
}
.modal-content h2 {
    font-family: var(--heading);
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 16px;
    padding-right: 24px;
}
.modal-body {
    overflow-y: auto;
    padding-right: 8px;
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.7;
}
.modal-body ul { padding-left: 20px; margin-top: 8px; margin-bottom: 16px; }
.modal-body h3 { font-size: 1.1rem; color: var(--text); margin-top: 24px; margin-bottom: 8px; }
.modal-body p { margin-bottom: 12px; }
.modal-body a { color: var(--gold); }
.modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-body::-webkit-scrollbar-thumb {
    background-color: var(--card-border);
    border-radius: 4px;
}

.card-image--annuity { background-image: url('../images/service-annuities.webp'); }
.card-image--term    { background-image: url('../images/service-term.webp'); }
.card-image--final   { background-image: url('../images/service-final.webp'); }
.card-image--iul     { background-image: url('../images/service-iul.webp'); }

.carousel-card .card-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.carousel-card h3 {
    color: var(--text);
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-family: var(--heading);
}

.carousel-card p {
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Popular Badge for IUL */
.card-popular-badge {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--gold);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    z-index: 10;
    letter-spacing: 0.05em;
}

/* Arrows */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(200,165,78,0.08);
    border: 1px solid rgba(200,165,78,0.2);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s var(--smooth);
}

.carousel-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: -60px; }
.carousel-next { right: -60px; }

@media (max-width: 1400px) {
    .carousel-prev { left: 5px; }
    .carousel-next { right: 5px; }
    .carousel-btn { background: var(--card-bg); box-shadow: var(--shadow-md); backdrop-filter: blur(4px); }
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--card-border);
    transition: all 0.3s var(--smooth);
}

.carousel-dot.active {
    background: var(--gold);
    width: 28px;
    border-radius: 10px;
}

/* Dark mode: servicios section */
[data-theme="dark"] .servicios .section-badge {
    background: rgba(125,160,110,0.15);
    color: var(--green-mtn);
}
[data-theme="dark"] .carousel-btn {
    background: rgba(223,192,110,0.08);
    border-color: rgba(223,192,110,0.2);
    color: var(--gold);
}
[data-theme="dark"] .carousel-dot {
    background: rgba(255,255,255,0.12);
}


/* ─── WHY US ─── */
.diferenciadores { background: var(--bg); }

.diff-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.diff-text { position: sticky; top: 140px; }
.diff-illustration {
    position: absolute; left: -40px; bottom: -60px;
    width: 250px; height: 250px;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}
.diff-text { position: relative; }

.diff-list { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; 
    padding-top: 12px; 
}

@media (max-width: 1100px) {
    .diff-layout { grid-template-columns: 1fr; gap: 40px; }
    .diff-text { position: relative; top: 0; }
    .diff-illustration { display: none; }
}
@media (max-width: 600px) {
    .diff-list { grid-template-columns: 1fr; }
}

.diff-item {
    position: relative;
    padding: 32px 24px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: all 0.4s var(--smooth);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 1;
}

.diff-item:nth-child(5) {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .diff-item:nth-child(5) {
        grid-column: span 1;
    }
}

[data-theme="dark"] .diff-item {
    background: var(--bg-alt);
}

.diff-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(200,165,78,0.25);
    background: var(--card-bg);
}

[data-theme="dark"] .diff-item:hover {
    background: var(--card-bg);
    border-color: rgba(200,165,78,0.4);
}

.diff-icon {
    position: absolute;
    bottom: -15px;
    right: -10px;
    font-size: 6.5rem;
    line-height: 1;
    font-family: var(--heading);
    font-weight: 700;
    font-style: italic;
    color: var(--gold);
    opacity: 0.05;
    z-index: -1;
    transition: all 0.5s var(--smooth);
    pointer-events: none;
}
.diff-item:hover .diff-icon {
    transform: scale(1.1) translate(-10px, -10px);
    opacity: 0.12;
}

.diff-content { position: relative; z-index: 2; pointer-events: none; }
.diff-content h3 { font-family: var(--heading); font-size: 1.2rem; margin-bottom: 12px; color: var(--text); transition: color 0.3s var(--smooth); }
.diff-item:hover .diff-content h3 { color: var(--gold); }
.diff-content p { font-size: 0.95rem; color: var(--text-mid); line-height: 1.6; }

/* Image strip */
.diff-image-strip {
    position: relative;
    margin-top: 80px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.diff-image { width: 100%; height: 380px; object-fit: cover; display: block; }
.diff-image-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(18,18,18,0.65) 0%, rgba(18,18,18,0.35) 60%, transparent 100%);
    display: flex; align-items: center; justify-content: center; padding: 48px;
}
.diff-image-quote {
    color: var(--white);
    font-family: var(--heading);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.diff-image-quote cite {
    display: block;
    margin-top: 16px;
    font-family: var(--body);
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 500;
    color: var(--gold-sun);
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════
   IUL SPOTLIGHT
   ═══════════════════════════════════════════ */
.iul-spotlight {
    background: var(--bg-alt);
}
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 16px 32px;
    font-family: var(--body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #1E1E1E;
    background: var(--gold);
    border-radius: 100px;
    border: none;
    text-decoration: none;
    transition: transform 0.3s var(--spring, ease), box-shadow 0.3s ease, background 0.3s;
    cursor: pointer;
}
.cta-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px rgba(200,165,78,0.35);
    background: var(--gold-light);
}
.cta-primary:active {
    transform: translateY(0) scale(0.98);
}
.cta-primary.large { padding: 18px 40px; font-size: 1rem; }
.cta-primary.full { width: 100%; justify-content: center; margin-top: 8px; }

.spotlight-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    padding: 64px;
    background: var(--dark);
    border-radius: var(--radius, 16px);
    color: #FFFFFF;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(200,165,78,0.1);
}
.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}
.spotlight-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dark);
    background: var(--gold);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
}
.spotlight-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: #FFFFFF;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.spotlight-title em { color: var(--gold); }
.spotlight-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
    margin-bottom: 36px;
    font-weight: 300;
}
.spotlight-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}
.sf-item {
    display: flex; gap: 14px;
}
.sf-icon {
    width: 40px; height: 40px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(200,165,78,0.1);
    color: var(--gold);
    border-radius: 10px;
    border: 1px solid rgba(200,165,78,0.1);
}
.sf-item strong {
    display: block;
    font-family: var(--body);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: #FFF;
}
.sf-item p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.5;
}

.spotlight-right {
    display: flex;
    align-items: center;
    justify-content: center;
}
.spotlight-visual {
    position: relative;
    width: 280px; height: 280px;
}
.sv-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(200,165,78,0.12);
}
.sv-ring { inset: 0; }
.sv-ring-2 { inset: 30px; border-color: rgba(200,165,78,0.06); }
.sv-core {
    position: absolute;
    inset: 60px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(200,165,78,0.08);
    border-radius: 50%;
    border: 1px solid rgba(200,165,78,0.15);
}
.sv-line {
    position: absolute;
    background: var(--gold);
    opacity: 0.15;
}
.sv-line-1 { width: 1px; height: 40px; top: 50%; left: -20px; transform: translateY(-50%); }
.sv-line-2 { width: 40px; height: 1px; top: -12px; left: 50%; transform: translateX(-50%); }
.sv-line-3 { width: 1px; height: 40px; bottom: 15%; right: -10px; transform: translateY(-50%); }
.sv-dot {
    position: absolute;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.3;
}
.sv-dot-1 { top: -15px; left: 50%; transform: translateX(-50%); }
.sv-dot-2 { bottom: 15%; right: -12px; }

/* ═══════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════ */
.testimonials { background: var(--bg); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    padding: 36px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.4s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(200,165,78,0.2);
}
.testimonial-stars {
    display: flex; gap: 2px;
    color: var(--gold);
}
.testimonial-card p {
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
}
.testimonial-author {
    display: flex; gap: 12px;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--card-border);
}
.testimonial-avatar {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--gold-pale);
    color: var(--gold);
    font-family: var(--heading);
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
}
.testimonial-author strong {
    display: block;
    font-size: 0.88rem;
    font-family: var(--body);
}
.testimonial-author span {
    font-size: 0.78rem;
    color: var(--text-mid);
    opacity: 0.7;
}

/* ─── CTA BANNER ─── */
.cta-banner {
    background: var(--dark);
    padding: var(--section) 0;
    position: relative;
    overflow: hidden;
}
.cta-bg-decoration { position: absolute; inset: 0; z-index: 0; opacity: 0.8; }
.cta-content {
    position: relative; z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.cta-icon {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 72px; height: 72px;
    background: linear-gradient(135deg, rgba(200,165,78,0.18), rgba(200,165,78,0.05));
    border-radius: 50%;
    border: 1px solid rgba(200,165,78,0.25);
    color: var(--gold-light);
    margin-bottom: 28px;
}
.cta-content h2 { color: #FFFFFF; font-size: clamp(2rem, 3.5vw, 2.75rem); margin-bottom: 16px; }
.cta-content h2 em { color: var(--gold-light); font-style: italic; }
.cta-content p { color: rgba(255,255,255,0.6); font-size: 1.05rem; line-height: 1.8; margin-bottom: 36px; }
.cta-content .btn { margin: 0 auto; }

/* ─── CONTACT ─── */
.contacto { background: var(--bg-alt); }
.contacto-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.contact-details {
    display: flex; flex-direction: column;
    gap: 24px;
    margin-top: 40px; margin-bottom: 40px;
}
.contact-item { display: flex; align-items: center; gap: 16px; }

.contact-icon-wrap {
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--card-bg);
    border-radius: 50%;
    color: var(--green-mtn);
    border: 1px solid rgba(107,127,94,0.12);
    transition: all 0.3s var(--smooth);
}
.contact-item:hover .contact-icon-wrap {
    background: var(--green-pale);
    color: var(--green-deep);
}

.contact-item strong { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 2px; }
.contact-item span, .contact-item a { font-size: 0.92rem; color: var(--text-mid); }
.contact-item a:hover { color: var(--gold); }

.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--icon-text);
    border: 1px solid var(--card-border);
    transition: all 0.3s var(--smooth);
}
.social-links a:hover {
    background: var(--gold);
    color: #FFF;
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* Form */
.contacto-form {
    position: relative;
    padding: 36px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--card-border);
}
.form-header-icon {
    display: flex;
    align-items: center; justify-content: center;
    width: 64px; height: 64px;
    background: linear-gradient(135deg, rgba(200,165,78,0.12), rgba(200,165,78,0.04));
    border-radius: 50%;
    margin-bottom: 24px;
    border: 1px solid rgba(200,165,78,0.12);
}
.form-row {
    display: flex;
    gap: 16px;
}
.form-row .form-group {
    flex: 1;
    margin-bottom: 16px;
}
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.contacto-form h3 { font-size: 1.5rem; margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
    color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--body);
    font-size: 0.92rem;
    color: var(--text);
    background: var(--input-bg);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--smooth);
    outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-mid);
    opacity: 0.6;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(200,165,78,0.12);
}
.form-group textarea { resize: vertical; }

/* ─── FOOTER ─── */
.footer {
    background: var(--footer-bg);
    padding: 48px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-logo { display: inline-block; }

.footer-logo-img {
    height: 36px;
    width: auto;
    transition: filter 0.3s var(--smooth);
}
.footer-logo-img:hover {
    filter: drop-shadow(0 0 8px rgba(200,165,78,0.4));
}

.footer-nav { display: flex; gap: 32px; }
.footer-nav a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s var(--smooth);
}
.footer-nav a:hover { color: var(--gold-light); }

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

/* ══════════════════════════════════════
   HAMBURGER / MOBILE SIDEBAR
   ══════════════════════════════════════ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    justify-content: center;
    align-items: center;
    margin-left: auto;
}
.hamburger-line {
    width: 22px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s var(--smooth);
}
.navbar.scrolled .hamburger-line {
    background: var(--icon-text);
}

/* ─── SIDEBAR BACKDROP ─── */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 1001;
    pointer-events: none;
    transition: background 0.4s var(--smooth);
}
.sidebar-backdrop.active {
    background: rgba(0,0,0,0.35);
    pointer-events: auto;
}

/* ─── MOBILE SIDEBAR ─── */
.mobile-sidebar {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    background: var(--card-bg);
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.5s var(--smooth);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: -12px 0 40px rgba(0,0,0,0.15);
}
.mobile-sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 0.5px solid var(--card-border);
    flex-shrink: 0;
}
.sidebar-logo-img {
    height: 32px;
    width: auto;
}
.sidebar-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}
.sidebar-close span {
    position: absolute;
    width: 18px;
    height: 1.5px;
    background: var(--text);
    border-radius: 1px;
}
.sidebar-close span:first-child { transform: rotate(45deg); }
.sidebar-close span:last-child { transform: rotate(-45deg); }

/* Sidebar nav */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    flex: 1;
}
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    transition: background 0.2s;
    position: relative;
}
.sidebar-link::after {
    content: '›';
    position: absolute;
    right: 24px;
    font-size: 1.2rem;
    color: var(--text-mid);
    opacity: 0.4;
    transition: opacity 0.2s;
}
.sidebar-link:active,
.sidebar-link:hover {
    background: var(--bg-alt);
}
.sidebar-link:hover::after {
    opacity: 1;
}

/* Sidebar bottom actions */
.sidebar-actions {
    padding: 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    border-top: 0.5px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
}
.sidebar-toggles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.sidebar-toggles .btn-icon {
    border-color: var(--card-border);
    color: var(--text);
    width: 42px;
    height: 42px;
}
.sidebar-toggles .btn-icon:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(200,165,78,0.08);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .servicios-grid { grid-template-columns: repeat(2, 1fr); }
    .diff-layout { grid-template-columns: 1fr; gap: 48px; }
    .diff-text { position: static; }
    .diff-illustration { display: none; }
    .contacto-layout { gap: 48px; }
    .values-grid { grid-template-columns: repeat(3, 1fr); }
    .about-top { gap: 40px; }
    .diff-image { height: 280px; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .navbar-nav,
    .navbar-actions { display: none; }

    .servicios-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .contacto-layout { grid-template-columns: 1fr; }
    .contacto-form { padding: 32px 24px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 280px; }

    .values-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .value-card { padding: 20px 8px; }

    .about-top { grid-template-columns: 1fr; }
    .about-image { height: 280px; }
    .about-stats { flex-direction: column; align-items: flex-start; gap: 16px; }
    .stat-divider { width: 40px; height: 1px; }

    .diff-image { height: 220px; }
    .diff-image-overlay { padding: 32px 16px; }
    .diff-image-quote { font-size: 1.1rem; }

    .spotlight-card { grid-template-columns: 1fr; padding: 32px 24px; }
    .spotlight-right { display: none; }
    .spotlight-features { grid-template-columns: 1fr 1fr; }

    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial-card { padding: 26px; }
}

@media (max-width: 480px) {
    :root { --container: min(100%, calc(100% - 32px)); }
    .servicio-card { padding: 32px 24px; }
    .about-card { padding: 28px; }
    .section-title { font-size: 1.8rem; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
}
