/* =====================================================
   UNIVIBE — style.css
   Versión 2.0 — Optimizado y completo
   ===================================================== */

/* ===== IMPORTAR FUENTE ===== */
/* Plus Jakarta Sans se importa desde index.php vía Google Fonts */

/* ===== VARIABLES GLOBALES ===== */
:root {
    /* Colores */
    --primary:        #0d1f4d;
    --primary-dark:   #09153a;
    --primary-light:  #1a3170;
    --secondary:      #3478ff;
    --secondary-dark: #2a62cc;
    --secondary-light:#5a96ff;
    --accent:         #00c9a7;

    /* Neutros */
    --light:          #f4f7fc;
    --dark:           #10131c;
    --white:          #ffffff;
    --gray-100:       #f8f9fa;
    --gray-200:       #e9ecef;
    --gray-300:       #dee2e6;
    --gray-500:       #adb5bd;
    --gray-700:       #495057;
    --gray-900:       #212529;

    /* Texto */
    --text-light:     #1d1d1d;
    --text-muted:     #6c757d;
    --text-dark:      #e9ecef;

    /* Sombras */
    --shadow-sm:  0 2px 4px rgba(0,0,0,.06);
    --shadow-md:  0 8px 24px rgba(0,0,0,.10);
    --shadow-lg:  0 20px 48px rgba(0,0,0,.15);
    --shadow-xl:  0 32px 64px rgba(0,0,0,.20);

    /* Bordes */
    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  22px;
    --radius-xl:  32px;

    /* Transición */
    --transition: all 0.3s ease;
}

/* ===== RESET Y BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    background: var(--light);
    color: var(--text-light);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.2s ease;
    padding-top: 80px;
}

body.dark {
    background: var(--dark);
    color: var(--text-dark);
}

img { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 0 5%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: rgba(13,31,77,.97);
    backdrop-filter: blur(14px);
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,.2);
    transition: var(--transition);
}

header.scrolled {
    height: 68px;
    background: rgba(9,21,58,.99);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
}

.logo h2 { font-size: 1.3rem; margin: 0; }
.logo small { font-size: 0.7rem; opacity: .75; display: block; margin-top: -2px; }

/* Nav */
nav {
    display: flex;
    gap: 0.2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: rgba(255,255,255,.85);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

nav a:hover {
    color: var(--white);
    background: rgba(255,255,255,.1);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.search-wrapper { position: relative; }

#searchInput {
    padding: 9px 16px;
    border: none;
    border-radius: 40px;
    background: rgba(255,255,255,.14);
    color: white;
    width: 190px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
}

#searchInput::placeholder { color: rgba(255,255,255,.6); }
#searchInput:focus {
    outline: none;
    background: rgba(255,255,255,.22);
    width: 230px;
    box-shadow: 0 0 0 2px rgba(52,120,255,.5);
}

body.dark #searchInput { background: rgba(0,0,0,.4); }

/* Resultados buscador */
#searchResults {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-height: 380px;
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    display: none;
    border: 1px solid var(--gray-200);
}

body.dark #searchResults { background: #1e1e2a; border-color: #333; }

#searchResults ul { margin: 0; padding: 0.5rem; }
#searchResults li {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: default;
    font-size: 0.9rem;
    transition: background 0.15s;
}
#searchResults li:hover { background: var(--gray-100); }
body.dark #searchResults li:hover { background: #2a2a35; }
#searchResults li strong { color: var(--secondary); display: block; margin-bottom: 2px; }
#searchResults li small { color: var(--text-muted); }

#themeToggle {
    background: rgba(255,255,255,.14);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#themeToggle:hover { background: rgba(255,255,255,.25); transform: scale(1.05); }

/* Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.14);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== BOTONES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.8rem;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover { background: var(--secondary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: white; }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: white; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ===== HERO ===== */
.hero {
    min-height: 88vh;
    background: linear-gradient(135deg, rgba(13,31,77,.88), rgba(52,120,255,.65)),
                url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?q=80&w=2070') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0 0 48px 48px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(52,120,255,.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 820px;
    padding: 2rem;
    color: white;
    animation: fadeUp 0.8s ease-out both;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.25);
    padding: 0.45rem 1.2rem;
    border-radius: 40px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 1.5rem;
    color: white;
}

.hero h1 { margin-bottom: 1rem; }

.hero p {
    font-size: clamp(1rem, 3vw, 1.15rem);
    opacity: .9;
    margin-bottom: 2rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== STATS ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
    border-radius: var(--radius-xl);
    margin: 3rem 5%;
    overflow: hidden;
}

.stats div {
    padding: 2.5rem 1rem;
    border-right: 1px solid rgba(255,255,255,.1);
}
.stats div:last-child { border-right: none; }

.stats h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.stats p { font-size: 0.9rem; opacity: .85; margin: 0; }

/* ===== SECCIONES ===== */
section {
    padding: 5rem 5%;
    scroll-margin-top: 90px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    position: relative;
}

body.dark .section-title { color: white; }

.section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    margin: 0.75rem auto 0;
    border-radius: 4px;
}

/* ===== CARRUSEL ===== */
.section-carousel { padding-bottom: 3rem; }

.carousel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.slide {
    display: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    min-height: 280px;
    align-items: center;
    justify-content: center;
}

.slide.active {
    display: flex;
    animation: fadeIn 0.5s ease both;
}

.slide-inner {
    max-width: 640px;
    text-align: center;
    color: white;
    padding: 3rem 2rem;
}

.slide-tag {
    display: inline-block;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.3);
    padding: 0.3rem 0.9rem;
    border-radius: 40px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: .05em;
}

.slide-inner h3 { font-size: 1.6rem; margin-bottom: 0.75rem; }
.slide-inner p  { opacity: .88; margin-bottom: 1.5rem; }

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--primary-dark);
}

.carousel-btn {
    background: rgba(255,255,255,.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-btn:hover { background: var(--secondary); }

.carousel-dots { display: flex; gap: 8px; }
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.dot.active { background: white; transform: scale(1.2); }

/* ===== TARJETAS ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

body.dark .card { background: #1b1f2a; color: var(--text-dark); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-icon { font-size: 2.2rem; margin-bottom: 0.4rem; }
.card h3 { margin-bottom: 0.25rem; }
.card p { color: var(--text-muted); font-size: 0.92rem; flex: 1; }
body.dark .card p { color: var(--gray-500); }

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

body.dark .card-footer { border-color: #333; }
.card-duration { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }

/* Tooltip */
.tooltip { cursor: help; }

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e1e2e;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    white-space: normal;
    max-width: 240px;
    text-align: center;
    z-index: 10;
    box-shadow: var(--shadow-md);
    pointer-events: none;
    line-height: 1.4;
}

/* ===== SECCIÓN AGENDA ===== */
.section-agenda {
    background: linear-gradient(135deg, rgba(13,31,77,.04), rgba(52,120,255,.06));
    border-radius: var(--radius-xl);
    margin: 0 2%;
}

body.dark .section-agenda { background: rgba(255,255,255,.02); }

.agenda-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.agenda-info h2 { color: var(--primary); margin-bottom: 1rem; }
body.dark .agenda-info h2 { color: white; }

.agenda-info p { color: var(--text-muted); margin-bottom: 1.5rem; }
body.dark .agenda-info p { color: var(--gray-500); }

.agenda-features { display: flex; flex-direction: column; gap: 0.75rem; }
.agenda-features li { font-weight: 500; font-size: 0.95rem; }

/* ===== FORMULARIO ===== */
.glass-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body.dark .glass-form { background: #1b1f2a; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-700);
}

body.dark label { color: var(--gray-300); }

input, textarea, select {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-light);
    width: 100%;
}

body.dark input, body.dark textarea, body.dark select {
    background: #2a2a35;
    border-color: #444;
    color: var(--text-dark);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52,120,255,.18);
}

textarea { resize: vertical; min-height: 120px; }

/* ===== ACORDEÓN ===== */
.accordion-group { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.8rem; }

.accordion {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

body.dark .accordion { background: #1b1f2a; border-color: #333; }

.accordion-btn {
    width: 100%;
    padding: 1.2rem 1.4rem;
    background: transparent;
    color: var(--primary);
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

body.dark .accordion-btn { color: var(--text-dark); }

.accordion-btn:hover { background: var(--gray-100); }
body.dark .accordion-btn:hover { background: rgba(255,255,255,.05); }

.accordion-btn::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--secondary);
}

.accordion-btn[aria-expanded="true"] { background: var(--secondary); color: white; }
.accordion-btn[aria-expanded="true"]::after { content: '−'; color: white; }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-content p {
    padding: 1rem 1.4rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

body.dark .accordion-content p { color: var(--gray-500); }

/* ===== REDES SOCIALES ===== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.social-card {
    text-decoration: none;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: white;
}

.social-icon { font-size: 1.6rem; font-weight: 700; }

.social-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.twitter      { background: #000000; }
.facebook     { background: #1877f2; }
.instagram    { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.tiktok       { background: #010101; }
.youtube      { background: #ff0000; }
.whatsapp-card{ background: #25d366; }


.social-icon {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video */
.video-section { text-align: center; }
.video-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16/9;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 62px;
    height: 62px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    transition: 0.3s ease;
    z-index: 999;
}

/* Hover */
.whatsapp:hover {
    transform: scale(1.1);
    background: #20ba5a;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

/* Ícono */
.whatsapp i {
    line-height: 1;
}

.whatsapp:hover { transform: scale(1.1); background: #20b859; box-shadow: 0 6px 28px rgba(37,211,102,.6); }

/* ===== FOOTER ===== */
footer {
    background: var(--primary);
    color: rgba(255,255,255,.85);
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding: 4rem 5%;
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.footer-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
}

.footer-brand strong { color: white; font-size: 1.1rem; display: block; margin-bottom: 0.4rem; }
.footer-brand p { font-size: 0.85rem; opacity: .75; margin: 0; line-height: 1.6; }

.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links strong { color: white; font-size: 0.9rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 0.3rem; }
.footer-links a { text-decoration: none; font-size: 0.88rem; opacity: .75; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 1; }

.footer-contact { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-contact strong { color: white; font-size: 0.9rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 0.3rem; }
.footer-contact p { font-size: 0.88rem; opacity: .75; margin: 0; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 5%;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: 0.83rem;
    opacity: .65;
}

.footer-admin {
    text-decoration: none;
    color: rgba(255,255,255,.5);
    transition: color 0.2s;
    font-size: 0.78rem;
}

.footer-admin:hover { color: white; }

/* ===== ADMIN PANEL ===== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--primary);
    color: white;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.admin-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-sidebar-header img { width: 36px; border-radius: 8px; }
.admin-sidebar-header span { font-weight: 700; font-size: 1.1rem; }

.admin-nav { display: flex; flex-direction: column; padding: 1rem 0; flex: 1; }

.admin-nav a {
    text-decoration: none;
    color: rgba(255,255,255,.75);
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition);
}

.admin-nav a:hover { background: rgba(255,255,255,.08); color: white; }
.admin-nav a.active { background: var(--secondary); color: white; }

.admin-nav-bottom { padding: 1rem; border-top: 1px solid rgba(255,255,255,.1); }
.admin-nav-bottom a {
    text-decoration: none;
    color: rgba(255,255,255,.6);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 0.5rem;
    transition: color 0.2s;
}
.admin-nav-bottom a:hover { color: white; }

.admin-main {
    flex: 1;
    background: var(--gray-100);
    min-height: 100vh;
    overflow-x: auto;
}

body.dark .admin-main { background: #13151e; }

.admin-topbar {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 10;
}

body.dark .admin-topbar { background: #1b1f2a; }

.admin-topbar h1 { font-size: 1.2rem; font-weight: 700; }

.admin-content { padding: 2rem; }

/* Tarjeta admin */
.admin-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

body.dark .admin-card { background: #1b1f2a; }

/* Tabla admin */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.admin-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.admin-table th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }

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

body.dark .admin-table td { border-color: #2a2a35; color: var(--text-dark); }

.admin-table tr:hover td { background: var(--gray-100); }
body.dark .admin-table tr:hover td { background: rgba(255,255,255,.03); }

/* Badge de estado */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 40px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-pendiente  { background: #fff3cd; color: #856404; }
.status-confirmada { background: #d1e7dd; color: #0a3622; }
.status-cancelada  { background: #f8d7da; color: #842029; }
.status-completada { background: #cfe2ff; color: #084298; }

/* Paginación */
.pagination {
    display: flex;
    gap: 0.4rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.pagination a {
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--gray-200);
    color: var(--gray-700);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--gray-300);
}

.pagination a:hover { background: var(--secondary); color: white; border-color: var(--secondary); }
.pagination a.active { background: var(--secondary); color: white; border-color: var(--secondary); }

/* Login admin */
.admin-login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.admin-login-box {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-xl);
}

.admin-login-box .login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-login-box .login-header img { width: 56px; margin: 0 auto 1rem; border-radius: 14px; }
.admin-login-box .login-header h1 { font-size: 1.5rem; color: var(--primary); }
.admin-login-box .login-header p  { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

.alert-error {
    background: #f8d7da;
    color: #842029;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid #f5c2c7;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.fade-in { animation: fadeUp 0.7s ease-out both; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .agenda-wrapper { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    body { padding-top: 70px; }

    header { height: 70px; padding: 0 4%; }

    /* Menú móvil */
    nav#mainNav {
        position: fixed;
        top: 70px; left: 0;
        width: 100%;
        background: rgba(9,21,58,.98);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        transform: translateY(-120%);
        transition: transform 0.35s ease;
        pointer-events: none;
        z-index: 999;
    }

    nav#mainNav.open {
        transform: translateY(0);
        pointer-events: auto;
    }

    nav a { padding: 0.9rem 5%; font-size: 1rem; border-radius: 0; }

    .menu-toggle { display: flex; }

    #searchInput { width: 130px; }
    #searchInput:focus { width: 160px; }

    #searchResults { width: 90vw; right: auto; left: 0; top: calc(100% + 8px); }

    section { padding: 3.5rem 4%; }

    .hero { min-height: 80vh; border-radius: 0 0 32px 32px; }

    .stats { grid-template-columns: 1fr 1fr; border-radius: var(--radius-xl); margin: 2rem 4%; }
    .stats div { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
    .stats div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }
    .stats div:last-child, .stats div:nth-last-child(2):nth-child(odd) { border-bottom: none; }

    .cards { grid-template-columns: 1fr; }

    .form-row { grid-template-columns: 1fr; }

    .social-grid { grid-template-columns: repeat(3, 1fr); }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 4%; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

    /* Admin sidebar móvil */
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; min-height: auto; }
    .admin-nav { flex-direction: row; padding: 0; overflow-x: auto; }
    .admin-nav a { white-space: nowrap; padding: 0.8rem 1rem; font-size: 0.85rem; }
    .admin-nav-bottom { display: none; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }

    .stats { grid-template-columns: 1fr 1fr; }

    .social-grid { grid-template-columns: repeat(2, 1fr); }

    .glass-form { padding: 1.5rem; }

    .card { padding: 1.4rem; }
}

/* ===== MENSAJES DEL SISTEMA ===== */

.message-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        linear-gradient(
            135deg,
            rgba(13,31,77,.96),
            rgba(52,120,255,.82)
        );
}

.message-card {
    width: 100%;
    max-width: 520px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem 2.2rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: fadeUp .45s ease;
    position: relative;
    overflow: hidden;
}

.message-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(52,120,255,.08),
            transparent 40%
        );
    pointer-events: none;
}

.message-icon {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.8rem;
    font-weight: bold;
}

.message-card h1 {
    font-size: 1.9rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.message-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* SUCCESS */
.message-success .message-icon {
    background: rgba(0,201,167,.14);
    color: var(--accent);
}

/* ERROR */
.message-error .message-icon {
    background: rgba(220,53,69,.12);
    color: #dc3545;
}

/* WARNING */
.message-warning .message-icon {
    background: rgba(255,193,7,.15);
    color: #d39e00;
}

/* INFO */
.message-info .message-icon {
    background: rgba(52,120,255,.12);
    color: var(--secondary);
}

.message-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
/* ===== FIX PANEL ADMIN ===== */

.admin-layout {
    margin-top: -80px;
}





/* ===== MENSAJE ENVIADO CONTACTO ===== */

.success-page{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:linear-gradient(135deg,#081b4b,#2563eb);
    padding:20px;
}

.success-container{
    width:100%;
    max-width:520px;
    background:#fff;
    padding:50px 40px;
    border-radius:24px;
    text-align:center;
    box-shadow:0 20px 50px rgba(0,0,0,.15);
    animation:fadeSuccess .5s ease;
}

.success-icon{
    width:95px;
    height:95px;
    margin:0 auto 25px;
    border-radius:50%;
    background:#22c55e;
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:48px;
    font-weight:bold;
    box-shadow:0 10px 25px rgba(34,197,94,.3);
}

.success-badge{
    display:inline-block;
    background:#dbeafe;
    color:#2563eb;
    padding:8px 16px;
    border-radius:30px;
    font-size:13px;
    font-weight:700;
    letter-spacing:1px;
    margin-bottom:20px;
}

.success-container h1{
    color:#081b4b;
    font-size:34px;
    margin-bottom:15px;
}

.success-container p{
    color:#555;
    font-size:17px;
    line-height:1.7;
    margin-bottom:30px;
}

.success-info{
    margin:30px 0;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.info-item{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    padding:14px 18px;
    border-radius:14px;
    color:#334155;
    font-size:15px;
    font-weight:500;
}

.success-btn{
    display:inline-block;
    padding:14px 32px;
    background:#2563eb;
    color:#fff;
    text-decoration:none;
    border-radius:14px;
    font-weight:600;
    transition:.3s ease;
}

.success-btn:hover{
    background:#1746a2;
    transform:translateY(-3px);
}

@keyframes fadeSuccess{
    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}


/* ===== BOTÓN VOLVER AL SITIO — LOGIN ADMIN ===== */
.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: .55rem 1.25rem;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 500;
    font-family: inherit;
    color: #185FA5;
    text-decoration: none;
    background: #E6F1FB;
    border: 1px solid #B5D4F4;
    transition: var(--transition);
}

.btn-volver i { font-size: 15px; }

.btn-volver:hover {
    background: #B5D4F4;
    color: #0C447C;
}
