/**
 * IIEMS - Sistema de Diseño Moderno (UI/UX Pro Max & Impeccable)
 * Instituto Integral de Educación Media Superior
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Paleta Institucional Principal */
    --iiems-wine-900: #2d051a;
    --iiems-wine-800: #45002e;
    --iiems-wine-700: #5c083e;
    --iiems-wine-600: #741150;
    --iiems-wine-500: #931d67;
    --iiems-wine-100: #fbf0f6;
    --iiems-wine-50:  #fdf7fa;

    /* Acento Dorado / Ámbar Prestigio */
    --iiems-gold-700: #9e7310;
    --iiems-gold-600: #b8860b;
    --iiems-gold-500: #d4af37;
    --iiems-gold-400: #e2c45f;
    --iiems-gold-100: #faf4df;
    --iiems-gold-50:  #fdfaf0;

    /* Tonos Neutros & Superficies */
    --iiems-dark: #0f172a;
    --iiems-slate-800: #1e293b;
    --iiems-slate-700: #334155;
    --iiems-slate-600: #475569;
    --iiems-slate-500: #64748b;
    --iiems-slate-400: #94a3b8;
    --iiems-slate-200: #e2e8f0;
    --iiems-slate-100: #f1f5f9;
    --iiems-slate-50:  #f8fafc;
    --iiems-white: #ffffff;

    /* Estados y Acentos */
    --iiems-emerald: #10b981;
    --iiems-emerald-light: #ecfdf5;
    --iiems-blue: #2563eb;
    --iiems-blue-light: #eff6ff;

    /* Tipografía */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Sombras y Elevaciones */
    --shadow-subtle: 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-card: 0 10px 25px -5px rgba(69, 0, 46, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 20px 35px -10px rgba(69, 0, 46, 0.16), 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-dropdown: 0 20px 30px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 10px 25px -5px rgba(212, 175, 55, 0.35);

    /* Radios y Bordes */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --border-glass: 1px solid rgba(255, 255, 255, 0.2);
    --border-card: 1px solid rgba(226, 232, 240, 0.8);
}

/* ==========================================================================
   Configuración Base & Reset
   ========================================================================== */
body {
    font-family: var(--font-body);
    color: var(--iiems-slate-700);
    background-color: var(--iiems-slate-50);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .heading-font {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--iiems-wine-900);
    letter-spacing: -0.02em;
}

a {
    color: var(--iiems-wine-800);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: var(--iiems-gold-600);
}

/* ==========================================================================
   Header & Navbar Superior (Glassmorphism)
   ========================================================================== */
.header-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(69, 0, 46, 0.08);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 10px 0;
}

.header-modern.scrolled {
    padding: 6px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.navbar-brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.navbar-brand-logo:hover {
    transform: scale(1.03);
}

.nav-link-modern {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--iiems-slate-700) !important;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link-modern:hover {
    color: var(--iiems-wine-800) !important;
    background-color: var(--iiems-wine-50);
}

.nav-link-modern.active {
    color: var(--iiems-wine-800) !important;
    background-color: var(--iiems-wine-100);
    font-weight: 700;
}

.btn-iiems-cta {
    background: linear-gradient(135deg, var(--iiems-wine-800) 0%, var(--iiems-wine-600) 100%);
    color: var(--iiems-white) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 9px 20px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 14px rgba(69, 0, 46, 0.25);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-iiems-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(69, 0, 46, 0.35);
    color: var(--iiems-gold-400) !important;
}

.btn-iiems-cta:active {
    transform: scale(0.98);
}

.badge-visitor {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--iiems-slate-100);
    color: var(--iiems-slate-600);
    border: 1px solid var(--iiems-slate-200);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-full);
}

.badge-visitor .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--iiems-emerald);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   Hero Section Moderno
   ========================================================================== */
.hero-iiems {
    position: relative;
    padding: 140px 0 90px 0;
    background: linear-gradient(135deg, rgba(45, 5, 26, 0.95) 0%, rgba(69, 0, 46, 0.88) 60%, rgba(116, 17, 80, 0.82) 100%), url('../img/fondo1.jpg') center/cover no-repeat;
    color: var(--iiems-white);
    overflow: hidden;
}

.hero-iiems::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(147, 29, 103, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--iiems-gold-400);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--iiems-white);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-title span {
    background: linear-gradient(90deg, #ffffff 0%, var(--iiems-gold-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin-bottom: 35px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--iiems-gold-500) 0%, var(--iiems-gold-600) 100%);
    color: var(--iiems-dark) !important;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-gold);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(212, 175, 55, 0.5);
    color: var(--iiems-dark) !important;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--iiems-white) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 30px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Tarjetas flotantes del Hero */
.hero-card-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 24px;
    color: var(--iiems-white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Barra de Características & Propuesta de Valor (Key Highlights)
   ========================================================================== */
.features-bar {
    position: relative;
    z-index: 10;
    margin-top: -45px;
    margin-bottom: 60px;
}

.feature-card {
    background: var(--iiems-white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-card);
    border: var(--border-card);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(69, 0, 46, 0.2);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--iiems-wine-50);
    color: var(--iiems-wine-800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--iiems-wine-800);
    color: var(--iiems-gold-400);
    transform: scale(1.08);
}

.feature-card h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--iiems-slate-500);
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   Títulos de Sección & Encabezados
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px auto;
}

.section-tag {
    display: inline-block;
    color: var(--iiems-gold-600);
    background: var(--iiems-gold-50);
    border: 1px solid var(--iiems-gold-100);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--iiems-wine-900);
    margin-bottom: 14px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--iiems-slate-600);
}

/* ==========================================================================
   Tarjetas Institucionales (Misión, Visión, Valores)
   ========================================================================== */
.pillar-card {
    background: var(--iiems-white);
    border-radius: var(--radius-lg);
    border: var(--border-card);
    padding: 32px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.pillar-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--iiems-wine-800), var(--iiems-gold-500));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.pillar-card:hover::after {
    opacity: 1;
}

.pillar-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--iiems-wine-100), var(--iiems-gold-50));
    color: var(--iiems-wine-800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.pillar-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--iiems-wine-900);
}

.pillar-card p {
    font-size: 0.95rem;
    color: var(--iiems-slate-600);
    margin-bottom: 0;
    flex-grow: 1;
}

/* ==========================================================================
   Biblioteca Digital: Buscador & Tarjetas de Libros
   ========================================================================== */
.library-search-wrapper {
    background: var(--iiems-white);
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: var(--border-card);
    margin-bottom: 36px;
}

.search-input-group {
    position: relative;
}

.search-input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--iiems-slate-400);
    font-size: 1.2rem;
}

.search-input-modern {
    width: 100%;
    padding: 16px 20px 16px 52px;
    border-radius: var(--radius-full);
    border: 2px solid var(--iiems-slate-200);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.2s ease;
    background-color: var(--iiems-slate-50);
}

.search-input-modern:focus {
    outline: none;
    border-color: var(--iiems-wine-600);
    background-color: var(--iiems-white);
    box-shadow: 0 0 0 4px rgba(69, 0, 46, 0.1);
}

.category-pills-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.filter-pill {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--iiems-slate-100);
    color: var(--iiems-slate-600);
    border: 1px solid var(--iiems-slate-200);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover, .filter-pill.active {
    background: var(--iiems-wine-800);
    color: var(--iiems-white);
    border-color: var(--iiems-wine-800);
}

.book-card {
    background: var(--iiems-white);
    border-radius: var(--radius-lg);
    border: var(--border-card);
    padding: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-subtle);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(69, 0, 46, 0.25);
}

.book-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--iiems-wine-50);
    color: var(--iiems-wine-800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.book-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--iiems-wine-900);
    margin-bottom: 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author {
    font-size: 0.85rem;
    color: var(--iiems-slate-500);
    margin-bottom: 16px;
}

/* ==========================================================================
   Planes y Programas: Pestañas Semestrales
   ========================================================================== */
.semester-nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--iiems-white);
    padding: 8px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-subtle);
    border: var(--border-card);
    margin-bottom: 30px;
    justify-content: center;
}

.semester-pill-btn {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--iiems-slate-600);
    transition: all 0.2s ease;
    cursor: pointer;
}

.semester-pill-btn:hover {
    color: var(--iiems-wine-800);
    background: var(--iiems-wine-50);
}

.semester-pill-btn.active {
    background: var(--iiems-wine-800);
    color: var(--iiems-white);
    box-shadow: 0 4px 12px rgba(69, 0, 46, 0.25);
}

.subject-item-card {
    background: var(--iiems-white);
    border-radius: var(--radius-md);
    border: var(--border-card);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.subject-item-card:hover {
    transform: translateX(4px);
    border-color: var(--iiems-wine-500);
    box-shadow: var(--shadow-subtle);
}

.subject-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.subject-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--iiems-wine-50);
    color: var(--iiems-wine-800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.subject-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--iiems-slate-800);
    font-size: 1rem;
    margin: 0;
}

/* ==========================================================================
   Formulario Wizard de Informes (Admisiones)
   ========================================================================== */
.wizard-modern-container {
    background: var(--iiems-white);
    border-radius: var(--radius-xl);
    border: var(--border-card);
    box-shadow: var(--shadow-card);
    padding: 40px;
    margin: 40px auto;
    max-width: 800px;
}

.wizard-steps-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 36px;
}

.wizard-steps-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--iiems-slate-200);
    transform: translateY(-50%);
    z-index: 1;
}

.wizard-step-node {
    position: relative;
    z-index: 2;
    background: var(--iiems-white);
    border: 3px solid var(--iiems-slate-200);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--iiems-slate-500);
    transition: all 0.3s ease;
}

.wizard-step-node.active {
    border-color: var(--iiems-wine-800);
    background: var(--iiems-wine-800);
    color: var(--iiems-white);
    box-shadow: 0 0 0 5px rgba(69, 0, 46, 0.15);
}

.wizard-step-node.completed {
    border-color: var(--iiems-emerald);
    background: var(--iiems-emerald);
    color: var(--iiems-white);
}

.form-label-modern {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--iiems-slate-700);
    margin-bottom: 6px;
}

.form-control-modern {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--iiems-slate-200);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: var(--iiems-slate-50);
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--iiems-wine-700);
    background-color: var(--iiems-white);
    box-shadow: 0 0 0 3px rgba(69, 0, 46, 0.12);
}

/* ==========================================================================
   Footer Institucional Moderno
   ========================================================================== */
.footer-modern {
    background: linear-gradient(180deg, var(--iiems-wine-900) 0%, #1a0210 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px 0;
    margin-top: 80px;
    position: relative;
    border-top: 3px solid var(--iiems-gold-500);
}

.footer-modern h5 {
    color: var(--iiems-white);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 10px;
}

.footer-modern h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--iiems-gold-400);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--iiems-gold-400);
    transform: translateX(4px);
}

.social-pill-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--iiems-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-right: 8px;
    transition: all 0.2s ease;
}

.social-pill-btn:hover {
    background: var(--iiems-gold-500);
    color: var(--iiems-dark);
    transform: translateY(-3px);
}

/* ==========================================================================
   Botón Flotante de WhatsApp & Conversión Móvil
   ========================================================================== */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    background: #25d366;
    color: #ffffff !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: bounceWhatsApp 3s infinite;
}

.whatsapp-floating-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
    color: #ffffff !important;
}

.whatsapp-floating-btn .tooltip-text {
    position: absolute;
    right: 70px;
    background: var(--iiems-dark);
    color: var(--iiems-white);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-shadow: var(--shadow-dropdown);
}

.whatsapp-floating-btn:hover .tooltip-text {
    opacity: 1;
}

@keyframes bounceWhatsApp {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* ==========================================================================
   Ajustes Responsivos para Móviles y Tablets
   ========================================================================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.4rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .features-bar {
        margin-top: 20px;
    }
    .footer-modern {
        padding: 60px 0 20px 0;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .wizard-modern-container {
        padding: 24px 16px;
    }
    .whatsapp-floating-btn {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
        font-size: 1.7rem;
    }
}

/* ==========================================================================
   GALERÍA PRÉMIUM & VISOR LIGHTBOX CINEMA (UI/UX Pro Max)
   ========================================================================== */
.gallery-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-subtle);
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-filter-btn {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    background: transparent;
    color: var(--iiems-slate-600);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gallery-filter-btn:hover {
    color: var(--iiems-wine-800);
    background: var(--iiems-wine-50);
}

.gallery-filter-btn.active {
    background: var(--iiems-wine-800);
    color: var(--iiems-white);
    box-shadow: 0 4px 14px rgba(69, 0, 46, 0.25);
}

.gallery-filter-btn .badge-count {
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
}

.gallery-filter-btn.active .badge-count {
    background: rgba(255, 255, 255, 0.25);
    color: var(--iiems-white);
}

/* Tarjetas de Galería */
.gallery-card-modern {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0f172a;
    box-shadow: var(--shadow-card);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    height: 240px;
    border: 1px solid rgba(226, 232, 240, 0.7);
}

.gallery-card-modern.card-featured {
    height: 240px;
}

.gallery-card-modern:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 35px -10px rgba(69, 0, 46, 0.25);
    border-color: rgba(212, 175, 55, 0.6);
}

.gallery-img-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card-modern:hover .gallery-img-thumb {
    transform: scale(1.08);
}

@media (max-width: 767.98px) {
    .gallery-card-modern {
        height: 180px;
        border-radius: var(--radius-md);
    }
    .gallery-card-title {
        font-size: 0.85rem;
        margin-bottom: 2px;
    }
    .gallery-badge-pill {
        top: 8px;
        left: 8px;
        font-size: 0.68rem;
        padding: 3px 8px;
    }
    .gallery-card-overlay {
        padding: 10px;
    }
}

@media (max-width: 420px) {
    .gallery-card-modern {
        height: 160px;
    }
}

.gallery-badge-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: var(--iiems-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.gallery-badge-pill.badge-video {
    background: rgba(220, 38, 38, 0.85);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(15, 23, 42, 0.88) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: all 0.3s ease;
}

.gallery-card-modern:hover .gallery-card-overlay {
    background: linear-gradient(180deg, rgba(69, 0, 46, 0.2) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.gallery-card-title {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--iiems-gold-400);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card-modern:hover .gallery-card-action {
    opacity: 1;
    transform: translateY(0);
}

/* Play button center for video cards */
.video-play-center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.9);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.3);
    z-index: 3;
    transition: all 0.3s ease;
}

.gallery-card-modern:hover .video-play-center-btn {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.4);
    background: #e11d48;
}

/* ==========================================================================
   MODAL LIGHTBOX CINEMA MODERNO (Overlay a Pantalla Completa)
   ========================================================================== */
.iiems-lightbox-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 15, 29, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.iiems-lightbox-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-top-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(15, 23, 42, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.lightbox-info-group {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    max-width: 65vw;
}

.lightbox-counter-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--iiems-gold-400);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.lightbox-caption-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lightbox-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lightbox-action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.lightbox-action-btn:hover {
    background: var(--iiems-gold-500);
    color: var(--iiems-dark);
    transform: scale(1.08);
}

.lightbox-action-btn.btn-close-lightbox {
    background: rgba(239, 68, 68, 0.85);
    border-color: rgba(239, 68, 68, 0.9);
}

.lightbox-action-btn.btn-close-lightbox:hover {
    background: #dc2626;
    color: #ffffff;
}

/* Stage de visualización */
.lightbox-stage {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    overflow: hidden;
    user-select: none;
}

.lightbox-media-container {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-main-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.lightbox-main-video {
    max-width: 88vw;
    max-height: 78vh;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    outline: none;
}

/* Botones de navegación laterales */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

.lightbox-nav-btn:hover {
    background: var(--iiems-gold-500);
    color: var(--iiems-dark);
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.lightbox-nav-btn.btn-prev {
    left: 24px;
}

.lightbox-nav-btn.btn-next {
    right: 24px;
}

@media (max-width: 767.98px) {
    .lightbox-top-toolbar {
        padding: 10px 14px;
    }
    .lightbox-info-group {
        max-width: calc(100vw - 75px);
        gap: 8px;
    }
    .lightbox-counter-pill {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    .lightbox-caption-title {
        font-size: 0.88rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .lightbox-action-btn {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
    .lightbox-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
        background: rgba(15, 23, 42, 0.85);
    }
    .lightbox-nav-btn.btn-prev { left: 8px; }
    .lightbox-nav-btn.btn-next { right: 8px; }
    .gallery-filter-bar { border-radius: var(--radius-lg); }
    .gallery-card-modern {
        height: auto !important;
        aspect-ratio: 16 / 10 !important;
        min-height: 180px;
    }
}
