/* =====================================
  THEME / VARIABLES (ORIGINAL RESTORED)
===================================== */
:root {
    /* Paleta por defecto (dark) */
    --bg: #0b0d12;
    --card: #121620;
    --card-2: #0e131c;
    --border: #1f2533;
    --text: #e7ecf4;
    --text-muted: #a6b0c3;

    --primary: #7c3aed;
    /* violeta */
    --primary-2: #06b6d4;
    /* cian */

    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;

    --shadow: 0 10px 30px rgba(0, 0, 0, .25);
    --overlay-bg: rgba(255, 255, 255, .04);
    --overlay-bg-hover: rgba(255, 255, 255, .06);
    --text-rgb: 231, 236, 244;

    /* Tipografía y radios */
    --fs-display: clamp(2.4rem, 4.5vw, 4rem);
    --fs-h2: clamp(1.6rem, 2.2vw, 2.2rem);
    --fs-h3: clamp(1.25rem, 1.6vw, 1.6rem);
    --fs-lead: clamp(1.05rem, 1.2vw, 1.2rem);
    --lh-tight: 1.1;
    --lh-normal: 1.5;
    --radius: 16px;

    /* Tamaños de logos */
    --header-logo-h: 56px;
    /* móvil header */
    --header-logo-h-lg: 72px;
    /* desktop header */
    --footer-logo-h: 150px;
    --footer-logo-h-lg: 150px;

    /* Altura del header */
    --header-h: 78px;

    /* Sidebar Width */
    --sidebar-width: 260px;
}

@media (min-width: 992px) {
    :root {
        --header-h: 96px;
    }
}

/* Tema claro */
html[data-bs-theme="light"] {
    --bg: #f6f8fb;
    --card: #ffffff;
    --card-2: #f9fbff;
    --border: #dbe1ea;
    --text: #0b1220;
    --text-muted: #5d6b82;
    --shadow: 0 12px 30px rgba(10, 16, 31, .06);
    --overlay-bg: rgba(0, 0, 0, .03);
    --overlay-bg-hover: rgba(0, 0, 0, .05);
    --text-rgb: 11, 18, 32;
    color-scheme: light;
}

/* =====================================
  GLOBAL DARK MODE FIXES
  (Override Bootstrap utilities to adapt to premium dark theme)
===================================== */
html[data-bs-theme="dark"] .bg-white {
    background-color: var(--card) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    /* Ensure border is visible if replaced */
}

/* Invert text-dark to be readable on dark bg */
html[data-bs-theme="dark"] .text-dark {
    color: var(--text) !important;
}

/* Restore dark text on yellow buttons/badges which maintain light color in dark mode */
html[data-bs-theme="dark"] .btn-warning.text-dark,
html[data-bs-theme="dark"] .badge.bg-warning.text-dark {
    color: #1a1a1a !important;
}

/* Adjust bg-light to be a subtle dark in dark mode */
html[data-bs-theme="dark"] .bg-light {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

/* Ensure text-dark inside bg-light (now dark) becomes light? 
   Yes, the rule above (.text-dark -> var(--text)) handles this. 
   So badge bg-light text-dark -> Dark Grey BG, Light Text. Readable. 
*/


/* =====================================
  GLOBAL BASE
===================================== */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

body {
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(1200px 600px at -10% -10%, rgba(124, 58, 237, .15), transparent 60%),
        radial-gradient(1000px 800px at 110% -10%, rgba(6, 182, 212, .12), transparent 60%);
    color: var(--text);
    transition: background-color .3s ease, color .3s ease;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary);
}

/* Ancho global amplio */
.container-xxl {
    max-width: min(1600px, 96vw);
}

@media (min-width: 1800px) {
    .container-xxl {
        max-width: 1720px;
    }
}

/* Utilidades Tipográficas */
.fw-800 {
    font-weight: 800
}

.rounded-16 {
    border-radius: var(--radius)
}

.small-muted {
    font-size: .9rem;
    color: var(--text-muted)
}

.section {
    padding: clamp(2rem, 5vw, 4rem) 0
}

.section-title {
    margin-bottom: 1rem
}

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .4rem;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 1.25rem 0
}

p {
    margin: 0 0 .75rem
}

.lead {
    font-size: var(--fs-lead);
    line-height: var(--lh-normal);
    color: var(--text-muted)
}

h1 {
    font-size: var(--fs-display);
    line-height: var(--lh-tight);
    margin: 0 0 .5rem
}

h2 {
    font-size: var(--fs-h2);
    line-height: 1.2;
    margin: 0 0 .6rem
}

h3 {
    font-size: var(--fs-h3);
    line-height: 1.25;
    margin: 0 0 .5rem
}

/* Enlaces y acciones */
.action {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: border-color .2s ease
}

.action:hover {
    border-bottom-color: var(--text)
}

/* Botones */
.btn,
.btn-cta,
.btn-outline-primary,
.btn-outline-danger,
.btn-outline-light {
    transition: transform .18s ease, filter .18s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
    border-radius: 12px;
    /* Consistent radius */
}

.btn:active {
    transform: translateY(1px)
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    border: 0;
    color: #fff;
}

.btn-outline-secondary {
    color: var(--text);
    border-color: var(--border)
}

.btn-outline-secondary:hover {
    color: var(--text);
    background: var(--card-2)
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Foco accesible */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px
}


/* =====================================
  LAYOUT: ADMIN SIDEBAR STRUCTURE
===================================== */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling using Original Variables */
.app-sidebar {
    width: var(--sidebar-width);
    background-color: var(--card);
    /* Match card/overlay style */
    background: linear-gradient(180deg, var(--card) 0%, var(--bg) 100%);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    height: var(--header-h);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border);
}

.brand-logo-admin {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    padding: 1.5rem 1rem;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link:hover {
    background-color: var(--overlay-bg-hover);
    color: var(--text);
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.15));
    color: var(--text);
    border-left: 3px solid var(--primary);
    border-radius: 4px 10px 10px 4px;
}

.nav-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    opacity: 0.7;
    margin: 1.5rem 0 0.5rem 0.75rem;
    font-weight: 700;
}

.sidebar-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--border);
    background-color: var(--card-2);
}

/* Main Content Area */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* El margen se maneja via modificadores de layout */
}

/* Header Admin */
.app-header {
    height: var(--header-h);
    background-color: rgba(11, 13, 18, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

html[data-bs-theme="light"] .app-header {
    background-color: rgba(246, 248, 251, 0.8);
}

.app-content {
    padding: 2rem;
}

/* =====================================
  PUBLIC HEADER & FOOTER
===================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    width: 100%;
}

.site-header.scrolled {
    background-color: rgba(11, 13, 18, 0.9);
    backdrop-filter: blur(12px);
    border-color: var(--border);
}

html[data-bs-theme="light"] .site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-transparent:not(.scrolled) {
    background-color: transparent;
    border-color: transparent;
}

/* Nav Links Color Logic - DYNAMIC */

/* DARK MODE (Default): Transparent Header over Dark Hero -> WHITE Text */
html[data-bs-theme="dark"] .header-transparent:not(.scrolled) .brand,
html[data-bs-theme="dark"] .header-transparent:not(.scrolled) .nav-link {
    color: #fff;
}

html[data-bs-theme="dark"] .header-transparent:not(.scrolled) .nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

html[data-bs-theme="dark"] .header-transparent:not(.scrolled) .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

html[data-bs-theme="dark"] .header-transparent:not(.scrolled) .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* LIGHT MODE: Transparent Header over Light Hero -> DARK Text */
html[data-bs-theme="light"] .header-transparent:not(.scrolled) .brand {
    color: #0f172a;
    /* Dark Text for Brand */
}

html[data-bs-theme="light"] .header-transparent:not(.scrolled) .nav-link {
    color: #475569;
    /* Slate-600 */
}

html[data-bs-theme="light"] .header-transparent:not(.scrolled) .nav-link:hover,
html[data-bs-theme="light"] .header-transparent:not(.scrolled) .nav-link.active {
    color: #0f172a;
    /* Slate-900 */
    background: rgba(0, 0, 0, 0.05);
}

/* Login Button in Light Transparent Mode */
html[data-bs-theme="light"] .header-transparent:not(.scrolled) .btn-outline-light {
    border-color: #cbd5e1;
    color: #475569;
    /* Grey button */
}

html[data-bs-theme="light"] .header-transparent:not(.scrolled) .btn-outline-light:hover {
    border-color: #94a3b8;
    color: #0f172a;
    background: #f1f5f9;
}

html[data-bs-theme="light"] .header-transparent:not(.scrolled) .theme-toggle {
    color: #475569;
    border-color: #cbd5e1;
}

/* SCROLLED STATE (Solid Background) */
/* Light Mode Scrolled */
html[data-bs-theme="light"] .site-header.scrolled .main-nav .nav-link {
    color: #64748b;
}

html[data-bs-theme="light"] .site-header.scrolled .main-nav .nav-link:hover {
    color: #0f172a;
}

html[data-bs-theme="light"] .site-header.scrolled .btn-outline-light {
    color: #475569;
    border-color: #cbd5e1;
}

html[data-bs-theme="light"] .site-header.scrolled .btn-outline-light:hover {
    color: #0f172a;
    border-color: #94a3b8;
    background: #f1f5f9;
}

html[data-bs-theme="light"] .site-header.scrolled .theme-toggle {
    color: #475569;
    border-color: #cbd5e1;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: inherit;
}

.brand-logo.logo-header {
    width: auto;
    height: var(--header-logo-h);
}

@media (min-width: 992px) {
    .brand-logo.logo-header {
        height: var(--header-logo-h-lg);
    }
}

.brand-logo.logo-footer {
    width: auto;
    height: var(--footer-logo-h);
}

@media (min-width: 992px) {
    .brand-logo.logo-footer {
        height: var(--footer-logo-h-lg);
    }
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-grow: 1;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.footer-pro {
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, var(--overlay-bg));
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px
}

.dot-rojo {
    background: #dc2626
}

.dot-verde {
    background: #059669
}

.dot-amarillo {
    background: #ca8a04
}

.dot-azul {
    background: #2563eb
}


/* =====================================
  ADMIN / PUBLIC SWITCHING
===================================== */
/* Admin Layout */
.layout-admin .app-sidebar {
    transform: translateX(0);
}

.layout-admin .app-main {
    margin-left: var(--sidebar-width);
}

/* --- PUBLIC LAYOUT --- */
.layout-public .app-sidebar {
    display: none;
}

.layout-public .app-main {
    margin-left: 0;
    display: block;
    /* Important for full-bleed sections */
}

/* Fix Hamburger Visibility on Transparent Header */
/* DARK MODE: White (contrast against dark hero) */
html[data-bs-theme="dark"] .header-transparent:not(.scrolled) .hamburger {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* LIGHT MODE: Black (contrast against light bg) */
html[data-bs-theme="light"] .header-transparent:not(.scrolled) .hamburger {
    color: #000 !important;
    /* Force Black */
    text-shadow: none;
}

/* Missing Layout Utilities */
.stack-4 {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stack-8 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stack-16 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


/* =====================================
   SIDEBAR COLLAPSED STATE (Desktop)
===================================== */
@media (min-width: 992px) {
    .app-main {
        transition: margin-left 0.3s ease;
    }

    body.sidebar-collapsed .app-sidebar {
        transform: translateX(-100%);
    }

    body.sidebar-collapsed .app-main {
        margin-left: 0;
    }
}

.layout-public .app-header {
    left: 0;
    width: 100%;
    display: none;
    /* Hide admin header in public */
}

.layout-public .app-content {
    padding: 0;
    /* Full width for Hero */
}

/* En public, el header es parte del main or managed separately. 
   We will rely on .site-header inside app-main or separate logic. */

/* Responsive Actions */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    /* Add padding for easier clicking */
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background-color: currentColor;
    /* Vital: inherits #fff or #000 */
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

@media (max-width: 991.98px) {
    .layout-admin .app-sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .layout-admin .app-sidebar.show {
        transform: translateX(0);
    }

    .layout-admin .app-main {
        margin-left: 0;
    }

    .hamburger {
        display: block;
    }
}


/* =====================================
  COMPONENTS (Cards, Tables, Forms)
===================================== */
.card,
.card-glass {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
}

.card-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text);
}

.table th {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    background-color: var(--card-2);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.table tbody tr:hover {
    background-color: var(--overlay-bg-hover);
}

/* Forms */
.form-control,
.form-select {
    width: 100%;
    padding: 0.6rem 1rem;
    background-color: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .15);
}

/* Logos display toggle */
.logo-light,
.logo-dark {
    display: none !important;
}

html[data-bs-theme="light"] .logo-light {
    display: inline-block !important;
}

html[data-bs-theme="dark"] .logo-dark {
    display: inline-block !important;
}


/* =====================================
  HERO & FULL BLEED (RESTORED)
===================================== */
.hero {
    position: relative;
    padding: clamp(3rem, 6vw, 6rem) 0;
    color: var(--text);
    /* Use theme color by default */
}

/* HERO TEXT COLORS - Default to Theme vars */
.hero .eyebrow {
    color: var(--primary);
    /* or theme muted */
    opacity: 0.9;
}

.hero .hero-title {
    color: var(--text);
}

.hero .lead,
.hero .text-hero-muted {
    color: var(--text-muted);
    opacity: 0.95;
    font-weight: 500;
}

/* Forces White ONLY when using a Cover Image (Dark Overlay) */
.hero.hero-cover {
    color: #fff;
}

.hero.hero-cover .eyebrow,
.hero.hero-cover .hero-title,
.hero.hero-cover .lead,
.hero.hero-cover .text-hero-muted {
    color: #fff !important;
}

.hero.hero-cover .btn-outline-secondary {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

.hero.hero-cover .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #fff !important;
}

/* Announcement inside Full Bleed (if applicable top) or generic text */
.announcement strong,
.announcement span {
    color: var(--text);
}

/* Default for announcement unless in Hero */

/* COUNTDOWN & KPIs FORCED WHITE (inside Hero) */
.countdown .cd-lead,
.hero .strip-stats .value,
.hero .strip-stats .label {
    color: #fff !important;
}

.countdown .cd-box,
.hero .strip-stats .kpi {
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(0, 0, 0, 0.3) !important;
    /* Semi-transparent dark bg for readability */
    color: #fff !important;
}

.countdown .cd-value,
.countdown .cd-label {
    color: #fff !important;
}

.hero-title {
    line-height: 1.05;
}

.text-hero-muted {
    color: var(--text);
    /* Restore theme-based text color */
    opacity: .85;
}

.btn-hero {
    padding: .7rem 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    border: 0;
    border-radius: 12px;
    transition: transform .2s ease, filter .2s ease;
}

.btn-hero:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
}

/* Hero Cover */
.hero-cover {
    position: relative;
    isolation: isolate;
}

.hero.hero-cover.hero-gradient {
    background-image: none !important;
    background-color: transparent;
}

.hero-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--hero-cover);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(1.05);
}

.hero-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1200px 600px at -10% -10%, rgba(124, 58, 237, .35), transparent 60%),
        radial-gradient(1000px 800px at 110% -10%, rgba(6, 182, 212, .28), transparent 60%),
        linear-gradient(180deg, rgba(0, 0, 0, .40), rgba(0, 0, 0, .60));
}

@media (min-width: 992px) {
    .hero--tall {
        min-height: calc(85svh - var(--header-h));
        display: flex;
        align-items: center;
    }
}

/* Decorativos del hero */
.shape-blur {
    position: absolute;
    filter: blur(45px);
    pointer-events: none;
    opacity: .55
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(closest-side, rgba(124, 58, 237, .6), transparent);
    top: -40px;
    left: -60px;
}

.shape-2 {
    width: 320px;
    height: 320px;
    background: radial-gradient(closest-side, rgba(6, 182, 212, .55), transparent);
    bottom: -60px;
    right: -40px;
}

/* =====================================
  SECTIONS / CARDS / MEDIA
===================================== */
.section-alt {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--overlay-bg)
}

.card-glass {
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    background: var(--overlay-bg-hover)
}

.feature-tile {
    height: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--overlay-bg)
}

.feature-tile .ft-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: .6rem;
    border-radius: 12px;
    background: rgba(124, 58, 237, .18);
    font-size: 1.1rem
}

.event-highlight {
    border: 1px solid var(--border);
    border-radius: 16px;
    position: relative;
    overflow: hidden
}

.event-highlight::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(124, 58, 237, .12), rgba(6, 182, 212, .12));
    opacity: .5;
    mix-blend-mode: overlay;
}

.event-card {
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px
}

.event-meta {
    font-size: .85rem;
    color: var(--text-muted)
}

/* Hover lift */
.card,
.card-glass,
.feature-tile,
.event-card,
.card-event,
.testimonial {
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease
}

.card:hover,
.card-glass:hover,
.feature-tile:hover,
.event-card:hover,
.card-event:hover,
.testimonial:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .22)
}

/* Chips / Announcement */
.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .25rem .55rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card-2);
    color: var(--text-muted);
    font-size: .8rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: .25rem .6rem;
    border-radius: 999px;
    font-weight: 600
}

.chip-gradient {
    color: #fff;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    box-shadow: 0 10px 24px rgba(124, 58, 237, .28)
}

.announcement {
    padding: .6rem .9rem;
    background: var(--overlay-bg);
    border: 1px solid var(--border)
}

/* Stats strip */
.strip-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem
}

.strip-stats .kpi {
    min-width: 140px;
    padding: .7rem .9rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--overlay-bg)
}

.strip-stats .value {
    font-weight: 800
}

.strip-stats .label {
    font-size: .85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em
}

/* Divisor ondulado */
.divider-wave {
    line-height: 0
}

.divider-wave svg {
    width: 100%;
    height: 64px;
    display: block
}

.divider-wave .wave {
    fill: rgba(124, 58, 237, .1)
}

/* Testimonios */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 6px 16px rgba(124, 58, 237, .25)
}

/* CTA Banner */
.cta-banner {
    border-top: 1px solid var(--border);
    background:
        radial-gradient(1000px 500px at 15% 30%, rgba(124, 58, 237, .20), transparent 60%),
        radial-gradient(900px 600px at 85% 70%, rgba(6, 182, 212, .18), transparent 60%);
    border-bottom: 1px solid var(--border);
}

/* =====================================
  GALERÍA / CARRUSEL
===================================== */
.gallery-carousel {
    --gallery-h: 62vh;
    --gallery-h-min: 420px;
    position: relative;
}

.gallery-carousel .carousel-item picture,
.gallery-carousel .carousel-item img {
    display: block;
    width: 100%;
}

.gallery-carousel .gallery-img {
    height: var(--gallery-h);
    min-height: var(--gallery-h-min);
    object-fit: cover;
}

/* Indicadores: puntitos, sin números */
.gallery-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    text-indent: -9999px;
}

/* Controles un poco más anchos */
.gallery-carousel .carousel-control-prev,
.gallery-carousel .carousel-control-next {
    width: 8%;
}

/* Móvil: menos alto */
@media (max-width: 991.98px) {
    .gallery-carousel {
        --gallery-h: 48vh;
        --gallery-h-min: 280px;
    }
}

/* ===== Versos dentro de "Lo que amamos" ===== */
.feature-tile .verse {
    margin-top: .6rem;
    padding: .6rem .7rem;
    border: 1px solid var(--border);
    background: var(--overlay-bg);
    border-radius: 12px;
    font-size: .9rem;
    color: var(--text);
    border-left: 3px solid rgba(124, 58, 237, .35);
}

.feature-tile .verse i {
    opacity: .8;
    margin-right: .35rem;
}

.feature-tile .verse .ref {
    display: block;
    margin-top: .25rem;
    font-size: .72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* =====================================
  TABLAS / FORMULARIOS (admin)
===================================== */
.table {
    color: var(--text)
}

.table thead th {
    background: var(--card-2);
    border-bottom: 1px solid var(--border) !important
}

.table tbody tr {
    border-color: var(--border)
}

.table-hover tbody tr:hover {
    background: rgba(124, 58, 237, .06)
}

.form-control,
.form-select {
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px
}

.form-control::placeholder {
    color: var(--text-muted)
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(124, 58, 237, .15)
}

/* =====================================
  COUNTDOWN
===================================== */
.countdown {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    padding: .5rem 0
}

.countdown .cd-lead {
    font-weight: 800
}

.cd-box {
    min-width: 72px;
    text-align: center;
    padding: .45rem .55rem;
    border: 1px solid var(--border);
    background: var(--overlay-bg);
    border-radius: 12px
}

.cd-value {
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1
}

.cd-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted)
}

/* =====================================
  ANIMACIONES / HOVERS
===================================== */
.hover-rise {
    transition: transform .18s ease, box-shadow .18s ease
}

.hover-rise:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18)
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .6s ease, transform .6s ease
}

.reveal.is-in {
    opacity: 1;
    transform: none
}

/* =====================================
  FOOTER
===================================== */
.footer-pro {
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, var(--overlay-bg))
}

.footer-pro .btn.btn-outline-secondary {
    border-color: var(--border)
}

.footer-pro .btn.btn-outline-secondary:hover {
    background: var(--card-2)
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px
}

.dot-rojo {
    background: #dc2626
}

.dot-verde {
    background: #059669
}

.dot-amarillo {
    background: #ca8a04
}

.dot-azul {
    background: #2563eb
}

/* =====================================
  FULL-BLEED (bandas a ancho completo)
===================================== */
.announcement {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.full-bleed {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
}

.full-bleed>.container-xxl {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* =====================================
  GLOBAL DARK MODE FIXES
  (Override Bootstrap utilities to adapt to premium dark theme)
===================================== */
html[data-bs-theme="dark"] .bg-white {
    background-color: var(--card) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
}

html[data-bs-theme="dark"] .text-dark {
    color: var(--text) !important;
}

html[data-bs-theme="dark"] .btn-warning.text-dark,
html[data-bs-theme="dark"] .badge.bg-warning.text-dark {
    color: #1a1a1a !important;
}

html[data-bs-theme="dark"] .bg-light {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}