/* =========================================================
   Colegio Luz de Israel — v2.1
   Premium + cálido + educativo
   ========================================================= */

:root {
    /* Marca ampliada */
    --blue: #0D47A1;
    --blue-dark: #082c66;
    --blue-light: #1e6bd6;
    --blue-50: #eef4ff;
    --blue-100: #dde9fb;

    --yellow: #FFC107;
    --yellow-light: #FFD75E;
    --yellow-dark: #d99e00;
    --yellow-50: #FFF8E1;

    /* Acentos cálidos NUEVOS */
    --coral: #FF7A59;
    --coral-soft: #FFE0D6;
    --mint: #2EC4B6;
    --mint-soft: #D4F1EE;
    --cream: #FFF7EC;

    --white: #FFFFFF;

    /* Neutros suaves */
    --bg: #FFFFFF;
    --bg-warm: #FFFBF3;     /* fondo cálido (crema muy claro) */
    --bg-alt: #F5F7FA;
    --bg-soft: #EAECEF;
    --line: #ECE6DA;        /* línea con tono cálido */
    --ink: #1A1F36;
    --ink-soft: #3a4a6b;
    --ink-mute: #6b7894;

    /* Sistema */
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    --shadow-xs: 0 1px 3px rgba(26, 31, 54, .06);
    --shadow-sm: 0 8px 24px rgba(26, 31, 54, .08);
    --shadow: 0 20px 60px rgba(26, 31, 54, .12);
    --shadow-lg: 0 30px 80px rgba(26, 31, 54, .18);
    --shadow-warm: 0 20px 50px rgba(255, 122, 89, .15);

    --container: 1240px;
    --header-h: 80px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-display: 'Poppins', var(--font-sans);

    --t-fast: .2s cubic-bezier(.4,0,.2,1);
    --t: .35s cubic-bezier(.4,0,.2,1);
    --t-slow: .6s cubic-bezier(.4,0,.2,1);
    --t-spring: .5s cubic-bezier(.34, 1.56, .64, 1);
}

/* =================== Reset =================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }

/* =================== Layout =================== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--bg-warm); }
.section-head { text-align: center; max-width: 740px; margin: 0 auto 72px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--coral);
    background: var(--coral-soft);
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.section-title { font-size: clamp(34px, 4.2vw, 56px); font-weight: 700; margin-bottom: 18px; }
.section-title em { font-style: normal; color: var(--coral); position: relative; }
.section-title em::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 12px;
    background: var(--yellow); opacity: .35; border-radius: 6px; z-index: -1;
}
.section-sub { font-size: 18px; color: var(--ink-mute); line-height: 1.7; }

/* Decoración orgánica de fondo */
.blob {
    position: absolute; border-radius: 50%; filter: blur(80px);
    pointer-events: none; z-index: 0;
}

/* =================== Header =================== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, .78);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t), background var(--t);
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.brand-mark {
    width: 44px; height: 44px; border-radius: 14px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
    color: var(--white); display: grid; place-items: center;
    font-weight: 800; font-size: 16px; letter-spacing: -.02em;
    box-shadow: 0 10px 24px rgba(13, 71, 161, .3);
    position: relative;
}
.brand-mark::after {
    content: ''; position: absolute; top: -4px; right: -4px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 4px 8px rgba(255, 193, 7, .5);
}
.brand-text { font-size: 17px; }

.nav-desktop { display: flex; gap: 36px; }
.nav-desktop a {
    font-size: 15px; font-weight: 500; color: var(--ink-soft);
    position: relative; transition: color var(--t-fast);
}
.nav-desktop a:hover { color: var(--blue); }
.nav-desktop a::after {
    content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--yellow); transition: width var(--t);
}
.nav-desktop a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; width: 40px; height: 40px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px auto; width: 22px; border-radius: 2px; transition: var(--t); }

.nav-mobile { display: none; }

/* =================== Botones =================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; border-radius: 999px;
    font-weight: 600; font-size: 15px;
    transition: transform var(--t-spring), box-shadow var(--t-fast), background var(--t-fast);
    white-space: nowrap;
    font-family: inherit;
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 10px 28px rgba(13, 71, 161, .3); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(13, 71, 161, .4); }

.btn-yellow {
    background: var(--yellow); color: var(--blue-dark);
    box-shadow: 0 10px 28px rgba(255, 193, 7, .4);
}
.btn-yellow:hover { background: var(--yellow-light); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(255, 193, 7, .5); }

.btn-coral { background: var(--coral); color: white; box-shadow: 0 10px 28px rgba(255, 122, 89, .4); }
.btn-coral:hover { background: #ff6240; transform: translateY(-3px); }

.btn-ghost { background: rgba(255,255,255,.12); color: var(--white); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-3px); }

.btn-edit {
    background: var(--yellow); color: var(--blue-dark); font-weight: 700;
    padding: 10px 18px; font-size: 13px; border-radius: 999px;
    box-shadow: 0 6px 16px rgba(255, 193, 7, .35);
}
.btn-edit:hover { transform: translateY(-1px); }
body.edit-mode .btn-edit { background: #ff5252; color: white; box-shadow: 0 6px 16px rgba(255, 82, 82, .35); }

.btn-ghost[href] { color: var(--ink-soft); border: 1px solid var(--line); background: transparent; padding: 8px 16px; font-size: 13px; }
.btn-ghost[href]:hover { background: var(--bg-warm); }

/* Iconos dentro de botones */
.btn-ico { font-size: 1.15em; line-height: 1; }

/* Botón Plataforma en el header */
.btn-platform { gap: 8px; }
.btn-platform-ico { font-size: 1.05em; line-height: 1; }

/* Botón "Únete a nosotros" (matrícula) parpadeante en la barra superior */
.btn-matricula {
    gap: 8px; position: relative;
    animation: matricula-pulse 1.8s ease-in-out infinite;
}
.btn-matricula:hover { animation-play-state: paused; }
@keyframes matricula-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, .55), 0 10px 28px rgba(255, 193, 7, .4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0), 0 14px 32px rgba(255, 193, 7, .5);
    }
}
@media (prefers-reduced-motion: reduce) {
    .btn-matricula { animation: none; }
}

/* Accesos del CTA final */
.cta-actions {
    display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 8px;
}
.cta-final .btn-ghost { color: var(--white); border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.1); }
.cta-final .btn-ghost:hover { background: rgba(255,255,255,.2); }

/* Accesos en el menú móvil */
.nav-mobile-cta {
    display: flex; align-items: center; gap: 8px;
    margin-top: 8px; padding: 14px 18px !important; border-radius: 14px;
    font-weight: 700; justify-content: center;
    background: var(--yellow); color: var(--blue-dark) !important;
}
.nav-mobile-cta.primary { background: var(--blue); color: var(--white) !important; }
.nav-mobile .nav-mobile-cta { border-bottom: none; }

/* =================== HERO =================== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    padding-top: var(--header-h);
    overflow: hidden;
    color: var(--white);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at top left, rgba(30, 107, 214, .35), transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(255, 193, 7, .2), transparent 60%),
        linear-gradient(180deg, #0a1a3a 0%, #0d2a5a 50%, #0a1a3a 100%);
}
.hero-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
    will-change: transform;
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 24, 60, .45) 0%, rgba(8, 24, 60, .75) 100%),
        radial-gradient(circle at 80% 20%, rgba(255, 193, 7, .12), transparent 50%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 80px 24px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 500; letter-spacing: .18em;
    color: rgba(255,255,255,.95);
    text-transform: uppercase;
    padding: 10px 22px; border-radius: 999px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(10px);
    margin-bottom: 32px;
}
.hero-eyebrow::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow);
    box-shadow: 0 0 12px var(--yellow);
}
.hero-title {
    font-size: clamp(42px, 7.5vw, 92px);
    font-weight: 700;
    letter-spacing: -.03em;
    margin-bottom: 24px;
    max-width: 1000px; margin-left: auto; margin-right: auto;
    color: var(--white);
}
.hero-title em {
    font-style: normal;
    color: var(--yellow);
    position: relative;
    display: inline-block;
}
.hero-subtitle {
    font-size: clamp(18px, 2vw, 22px); font-weight: 400; line-height: 1.55;
    color: rgba(255,255,255,.88);
    max-width: 720px; margin: 0 auto 48px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 80px; }

.hero-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
    max-width: 900px; margin: 0 auto;
    padding: 36px; border-radius: var(--radius-lg);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(24px);
}
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after {
    content: ''; position: absolute; right: -16px; top: 20%; height: 60%; width: 1px;
    background: rgba(255,255,255,.15);
}
.stat-num {
    display: block;
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(30px, 3.2vw, 46px);
    color: var(--yellow); letter-spacing: -.02em;
    line-height: 1.1;
}
.stat-label { display: block; font-size: 13px; color: rgba(255,255,255,.85); margin-top: 6px; letter-spacing: .03em; font-weight: 500; }

.hero-scroll {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 40px; border: 2px solid rgba(255,255,255,.4); border-radius: 12px;
    display: flex; justify-content: center;
}
.hero-scroll span {
    display: block; width: 4px; height: 8px;
    background: rgba(255,255,255,.7); border-radius: 2px; margin-top: 8px;
    animation: scroll-dot 1.8s infinite;
}
@keyframes scroll-dot {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

/* =================== VALORES (warmer) =================== */
.values-section { background: var(--bg-warm); position: relative; overflow: hidden; }
.values-section .blob.b1 { width: 500px; height: 500px; top: -150px; left: -100px; background: var(--yellow-50); }
.values-section .blob.b2 { width: 400px; height: 400px; bottom: -100px; right: -50px; background: var(--coral-soft); }

.grid-4 {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    position: relative; z-index: 1;
}
.value-card {
    padding: 40px 32px; border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid rgba(255,255,255,.8);
    transition: transform var(--t-spring), box-shadow var(--t);
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.value-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }

/* Variantes de color por tarjeta */
.value-card.v-blue .value-icon { background: linear-gradient(135deg, var(--blue), var(--blue-light)); }
.value-card.v-yellow .value-icon { background: linear-gradient(135deg, var(--yellow), var(--yellow-light)); color: var(--blue-dark); }
.value-card.v-coral .value-icon { background: linear-gradient(135deg, var(--coral), #FF9978); }
.value-card.v-mint .value-icon { background: linear-gradient(135deg, var(--mint), #5DD9CD); }

.value-card::before {
    content: ''; position: absolute; top: -40px; right: -40px;
    width: 120px; height: 120px; border-radius: 50%;
    background: var(--yellow-50);
    opacity: 0; transition: opacity var(--t), transform var(--t);
}
.value-card.v-coral::before { background: var(--coral-soft); }
.value-card.v-mint::before { background: var(--mint-soft); }
.value-card.v-yellow::before { background: var(--yellow-50); }
.value-card:hover::before { opacity: 1; transform: scale(1.4); }

.value-icon {
    width: 64px; height: 64px; border-radius: 18px;
    color: var(--white); display: grid; place-items: center;
    font-size: 28px; margin-bottom: 24px;
    box-shadow: 0 12px 28px rgba(13, 71, 161, .2);
    position: relative; z-index: 1;
    transition: transform var(--t-spring);
}
.value-card:hover .value-icon { transform: rotate(-6deg) scale(1.05); }
.value-title { font-size: 22px; font-weight: 600; margin-bottom: 12px; position: relative; z-index: 1; }
.value-text { color: var(--ink-mute); font-size: 15px; line-height: 1.7; position: relative; z-index: 1; }

/* =================== Por qué (con fotos reales grandes) =================== */
.feature-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
    padding: 60px 0;
}
.feature-row.reverse .feature-media { order: 2; }
.feature-media {
    aspect-ratio: 5/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
    position: relative; box-shadow: var(--shadow);
    transition: transform var(--t-spring);
}
.feature-row:hover .feature-media { transform: scale(1.01); }
.feature-media-inner { position: absolute; inset: 0; display: grid; place-items: center; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.feature-row:hover .feature-media img { transform: scale(1.05); }
.feature-icon-big {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 96px; color: rgba(255,255,255,.25);
    pointer-events: none;
}
.feature-media img + .feature-icon-big { display: none; }

/* Badge cálido junto a la imagen */
.feature-media::after {
    content: ''; position: absolute; top: 20px; right: 20px;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 12px 28px rgba(255, 193, 7, .5);
    opacity: 0; transform: scale(.5);
    transition: var(--t-spring);
}
.feature-row:hover .feature-media::after { opacity: 1; transform: scale(1); }

.feature-num {
    font-family: var(--font-display); font-weight: 700;
    font-size: 18px;
    color: var(--coral);
    display: inline-block;
    padding: 6px 14px; background: var(--coral-soft);
    border-radius: 999px;
    margin-bottom: 20px;
}
.feature-title { font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; margin-bottom: 18px; line-height: 1.2; }
.feature-text { font-size: 17px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 24px; }
.feature-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    background: var(--blue-50); color: var(--blue);
    font-size: 13px; font-weight: 600;
}

/* =================== Galería (warmer) =================== */
.gallery-filters { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
    padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 500;
    color: var(--ink-soft); background: var(--white);
    border: 1px solid var(--line); transition: all var(--t-fast);
}
.filter-btn:hover { border-color: var(--coral); color: var(--coral); }
.filter-btn.active { background: var(--blue); color: var(--white); border-color: var(--blue); box-shadow: 0 8px 20px rgba(13, 71, 161, .25); }

.gallery.masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}
.gallery-item {
    position: relative; overflow: hidden; border-radius: var(--radius);
    cursor: zoom-in; background: var(--bg-soft);
    transition: transform var(--t-spring), box-shadow var(--t);
    box-shadow: var(--shadow-xs);
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.gallery-item:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(13, 71, 161, .65) 100%);
    opacity: 0; transition: opacity var(--t);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-placeholder {
    width: 100%; height: 100%; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: rgba(255,255,255,.6); font-weight: 700; letter-spacing: .15em; font-size: 12px;
}
.gallery-item.hidden { display: none; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(8, 24, 60, .92);
    display: none; align-items: center; justify-content: center;
    backdrop-filter: blur(12px);
    padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-close {
    position: absolute; top: 24px; right: 24px;
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,.12); color: var(--white);
    font-size: 28px; line-height: 1; border: 1px solid rgba(255,255,255,.2);
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }

/* =================== Testimonios (warmer) =================== */
.testimonials { position: relative; overflow: hidden; padding: 20px 0 60px; }
.testimonial-track {
    display: flex; transition: transform var(--t-slow);
    gap: 32px;
}
.testimonial {
    flex: 0 0 calc(33.333% - 22px);
    background: var(--white);
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform var(--t-spring), box-shadow var(--t);
}
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.testimonial::before {
    content: ''; position: absolute; top: 0; left: 36px; width: 48px; height: 4px;
    background: linear-gradient(90deg, var(--coral), var(--yellow));
    border-radius: 0 0 4px 4px;
}
.quote-mark {
    font-family: var(--font-display); font-weight: 800;
    font-size: 84px; line-height: 1;
    color: var(--yellow); opacity: .35;
    position: absolute; top: 24px; right: 32px;
}
.testimonial-text { font-size: 17px; line-height: 1.7; color: var(--ink-soft); margin: 16px 0 32px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.avatar {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--coral), var(--yellow));
    color: var(--white); display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 700; font-size: 18px;
    box-shadow: 0 8px 16px rgba(255, 122, 89, .35);
}
.testimonial-name { display: block; font-weight: 600; color: var(--ink); }
.testimonial-role { display: block; font-size: 13px; color: var(--ink-mute); }
.testimonial-controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 40px; }
.t-prev, .t-next {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--white); border: 1px solid var(--line);
    font-size: 22px; color: var(--blue);
    box-shadow: var(--shadow-xs); transition: all var(--t-fast);
}
.t-prev:hover, .t-next:hover { background: var(--coral); color: var(--white); border-color: var(--coral); transform: translateY(-2px); }
.t-dots { display: flex; gap: 8px; }
.t-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bg-soft); cursor: pointer; transition: var(--t-fast); border: none; }
.t-dot.active { background: var(--coral); width: 28px; border-radius: 4px; }

/* =================== CTA final (warmer) =================== */
.cta-final {
    padding: 100px 0;
    background:
        linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
    color: var(--white); text-align: center;
    overflow: hidden; position: relative;
}
.cta-final::before {
    content: ''; position: absolute; width: 500px; height: 500px;
    top: -150px; left: -100px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 193, 7, .3), transparent 70%);
}
.cta-final::after {
    content: ''; position: absolute; width: 600px; height: 600px;
    bottom: -200px; right: -100px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 89, .25), transparent 70%);
}
.cta-wrap { position: relative; z-index: 1; }
.cta-final h2 { color: var(--white); font-size: clamp(34px, 5vw, 60px); margin-bottom: 16px; }
.cta-final h2 em { font-style: normal; color: var(--yellow); }
.cta-final p { font-size: 18px; color: rgba(255,255,255,.9); margin-bottom: 36px; max-width: 580px; margin-left: auto; margin-right: auto; }

/* =================== Footer =================== */
.site-footer {
    background: #0a1532; color: rgba(255,255,255,.7);
    padding: 80px 0 32px;
    position: relative; overflow: hidden;
}
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--coral), var(--yellow));
}
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
    padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-footer .brand-text { color: var(--white); }
.brand-footer { margin-bottom: 20px; }
.footer-desc { font-size: 15px; line-height: 1.7; max-width: 320px; }
.footer-col h4 { color: var(--white); font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.footer-list li { padding: 6px 0; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.footer-list a { transition: color var(--t-fast); }
.footer-list a:hover { color: var(--yellow); }
.fi { color: var(--yellow); font-size: 14px; }
.footer-social { display: flex; flex-direction: column; gap: 12px; }
.social-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; border-radius: 14px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
    transition: all var(--t-fast); font-size: 14px;
}
.social-card:hover { background: rgba(255,255,255,.1); transform: translateX(6px); border-color: var(--yellow); }
.social-icon {
    width: 36px; height: 36px; border-radius: 10px;
    color: white; display: grid; place-items: center; font-weight: 800; font-family: var(--font-display);
}
.social-card.facebook .social-icon { background: #1877f2; }
.social-card.instagram .social-icon { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 24px; font-size: 13px;
}
.footer-admin-link { opacity: .5; transition: opacity var(--t-fast); }
.footer-admin-link:hover { opacity: 1; color: var(--yellow); }

/* =================== Reveal animations =================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* =================== Login =================== */
.auth-body {
    min-height: 100vh; display: grid; place-items: center;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 193, 7, .25), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 122, 89, .25), transparent 50%),
        linear-gradient(135deg, var(--blue) 0%, #0a1532 100%);
    padding: 24px;
}
.auth-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 48px; max-width: 440px; width: 100%;
    box-shadow: var(--shadow-lg);
}
.brand-auth { justify-content: center; margin-bottom: 32px; }
.auth-card h1 { font-size: 28px; text-align: center; margin-bottom: 8px; }
.auth-sub { text-align: center; color: var(--ink-mute); margin-bottom: 32px; font-size: 15px; }
.auth-error {
    background: #fff0f0; color: #a01b1b; padding: 12px 16px;
    border-radius: 12px; font-size: 14px; margin-bottom: 20px;
    border: 1px solid #ffd9d9;
}
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.auth-form input {
    padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
    font-size: 15px; font-family: inherit;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.auth-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(13, 71, 161, .12); }
.auth-form button { margin-top: 8px; }
.auth-back { display: block; text-align: center; margin-top: 24px; font-size: 14px; color: var(--ink-mute); }
.auth-back:hover { color: var(--blue); }

/* =================== EDIT MODE =================== */
body.edit-mode [data-editable] {
    outline: 2px dashed transparent; outline-offset: 4px;
    transition: outline-color var(--t-fast), background-color var(--t-fast);
    border-radius: 4px; cursor: text;
}
body.edit-mode [data-editable]:hover { outline-color: var(--coral); background-color: rgba(255, 122, 89, .06); }
body.edit-mode [data-editable]:focus { outline-color: var(--yellow); outline-style: solid; background-color: rgba(255, 193, 7, .1); }

body.edit-mode [data-editable-image] {
    position: relative; cursor: pointer;
    transition: filter var(--t-fast);
}
body.edit-mode [data-editable-image]:hover { filter: brightness(.65); }

.img-edit-wrapper { position: relative; display: inline-block; }
.img-edit-camera {
    position: absolute; top: 12px; right: 12px; z-index: 10;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 122, 89, .98); color: white;
    display: grid; place-items: center; font-size: 20px;
    box-shadow: var(--shadow-sm); cursor: pointer;
    opacity: 0; transition: opacity var(--t-fast), transform var(--t-fast);
    pointer-events: none;
}
body.edit-mode .img-edit-wrapper:hover .img-edit-camera { opacity: 1; pointer-events: auto; transform: scale(1.05); }

.toast {
    position: fixed; bottom: 32px; right: 32px; z-index: 300;
    background: var(--ink); color: white; padding: 14px 22px;
    border-radius: 12px; font-size: 14px; font-weight: 500;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px); opacity: 0;
    transition: transform var(--t), opacity var(--t);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.ok { background: var(--mint); }
.toast.err { background: var(--coral); }

.edit-bar {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 99;
    background: rgba(11, 27, 59, .95);
    color: white; padding: 12px 20px; border-radius: 999px;
    display: none; align-items: center; gap: 16px;
    font-size: 13px; backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,.1);
}
body.edit-mode .edit-bar { display: flex; }
.edit-bar .pulse {
    width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); }
    70% { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* =================== Responsive =================== */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .feature-row { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
    .feature-row.reverse .feature-media { order: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .gallery.masonry { grid-template-columns: repeat(3, 1fr); }
    .testimonial { flex: 0 0 calc(50% - 16px); }
    .stat:not(:last-child)::after { display: none; }
}
@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .nav-desktop { display: none; }
    .nav-toggle { display: block; }
    .nav-mobile {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: white; border-bottom: 1px solid var(--line);
        padding: 16px 24px; box-shadow: var(--shadow-sm);
    }
    .nav-mobile.open { display: flex; flex-direction: column; gap: 4px; }
    .nav-mobile a { padding: 14px 8px; border-bottom: 1px solid var(--line); }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 24px; }
    .grid-4 { grid-template-columns: 1fr; }
    .gallery.masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
    .gallery-item.wide, .gallery-item.tall { grid-column: span 1; grid-row: span 1; }
    .testimonial { flex: 0 0 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .auth-card { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
