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

:root {
    --primary: #3c67f5;
    --primary-hover: #2950cf;
    --primary-light: rgba(60, 103, 245, 0.1);
    --secondary: #0f172a;
    --bg-color: #f8fafc;
    --surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4, h5, h6 { 
    color: var(--secondary); 
    font-weight: 700; 
    line-height: 1.2;
}

h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-hover); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--primary); color: var(--surface);
    border: none; border-radius: var(--radius-md); 
    font-weight: 600; font-size: 1rem;
    cursor: pointer; text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.btn:hover { 
    background: var(--primary-hover); 
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn:active { transform: translateY(0); }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary-light);
    color: var(--primary-hover);
    border-color: var(--primary-hover);
}
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #dc2626; }
.btn-block { display: flex; width: 100%; }

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
    color: var(--secondary);
}

/* Beautiful Card Titles */
.admin-content .card > h3:first-child,
.admin-content .form-section > h3:first-child {
    background: #172554;
    color: #ffffff !important;
    padding: 1.2rem 1.5rem;
    margin: -24px -24px 24px -24px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    font-size: 1.15rem;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

/* Exclude dashboard stat cards which use .text-muted */
.admin-content .card > h3.text-muted:first-child {
    background: transparent;
    color: var(--text-muted) !important;
    padding: 0;
    margin: 0 0 0.5rem 0;
    border-radius: 0;
    font-size: 0.9rem;
    box-shadow: none;
}
.card:hover {
    box-shadow: var(--shadow-lg);
}

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-label {
    display: block; margin-bottom: 0.5rem;
    font-weight: 500; color: var(--secondary);
    font-size: 0.95rem;
}
.form-control {
    width: 100%; padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-main);
    font-family: inherit; font-size: 1rem;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Tables */
.table-responsive { overflow-x: auto; width: 100%; border-radius: var(--radius-lg); }
.table { 
    width: 100%; 
    border-collapse: separate; 
    border-spacing: 0;
    margin-bottom: 0;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.table th, .table td { 
    padding: 1.25rem 1.5rem; 
    text-align: left; 
    border-bottom: 1px solid #f1f5f9; 
    vertical-align: middle;
}
.table th { 
    background-color: #f8fafc; 
    color: #64748b; 
    font-weight: 700; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 0.1em;
}
.table td {
    color: #334155;
    font-size: 0.95rem;
    font-weight: 500;
}
.table tbody tr {
    transition: all 0.2s ease;
}
.table tbody tr:hover { 
    background-color: #f8fafc; 
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    position: relative;
    z-index: 10;
}
.table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge {
    display: inline-block; padding: 0.25rem 0.75rem;
    border-radius: 9999px; font-size: 0.85rem; font-weight: 600;
}
.badge-success { background: #d1fae5; color: #047857; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-warning { background: #fef3c7; color: #b45309; }

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; }

/* Layouts */
.grid { display: grid; gap: 1.5rem; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 768px) {
    .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Admin Dashboard Structure */
.admin-layout {
    display: flex; min-height: 100vh;
}
.admin-sidebar {
    width: 260px; background: #172554; color: #ffffff;
    padding: 2rem 1.5rem; flex-shrink: 0;
    display: flex; flex-direction: column;
}
.sidebar-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem;
}
.sidebar-header a { display: block; }
.mobile-menu-btn {
    display: none; background: none; border: none; color: white; cursor: pointer; padding: 5px;
}
.sidebar-content {
    display: flex; flex-direction: column; flex: 1;
}
.admin-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.admin-nav-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem; color: #cbd5e1;
    border-radius: var(--radius-md); font-weight: 500;
}
.admin-nav-link:hover, .admin-nav-link.active {
    background: rgba(255, 255, 255, 0.1); color: var(--white);
}
.admin-content {
    flex: 1; padding: 2rem 3rem; background: var(--bg-color);
    overflow-y: auto;
}
.admin-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2.5rem;
    background: #172554;
    padding: 1.5rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.2), 0 4px 6px -2px rgba(30, 58, 138, 0.1);
    color: white;
}
.admin-header h1, .admin-header h2 {
    color: white !important;
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}
.admin-header .btn {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}
.admin-header .btn:hover {
    background: rgba(255,255,255,0.25);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        padding: 1rem 1.25rem;
        flex-direction: column;
    }
    .sidebar-header {
        margin-bottom: 0;
        width: 100%;
    }
    .mobile-menu-btn {
        display: block;
    }
    .sidebar-content {
        display: none;
        width: 100%;
        margin-top: 1.5rem;
    }
    .sidebar-content.show {
        display: flex;
    }
    .admin-nav {
        flex-direction: column;
        width: 100%;
        margin-top: 0;
        gap: 0.5rem;
    }
    .admin-nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        flex: none;
        justify-content: flex-start;
        text-align: left;
        width: 100%;
    }
    .sidebar-footer {
        margin-top: 2rem !important;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .sidebar-footer p {
        margin-bottom: 0 !important;
    }
    .sidebar-footer .btn {
        width: 100% !important;
    }
    .admin-content {
        padding: 1rem;
    }
    
    .admin-header {
        padding: 1rem 1.25rem;
        margin-bottom: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .checkout-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
@media (min-width: 769px) {
    .checkout-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 2.5rem;
        align-items: start;
    }
}

/* Landing Page Hero */
.blue-gradient-bg {
    background-color: #11215c;
    background-image: linear-gradient(-45deg, #11215c, #3c67f5, #172e7a, #233e9d);
    background-size: 400% 400%;
    -webkit-animation: heroBackgroundFlow 15s ease-in-out infinite;
    animation: heroBackgroundFlow 15s ease-in-out infinite;
    width: 100%;
}

@keyframes heroBackgroundFlow {
    0%   { background-position: 0% 0%; }
    25%  { background-position: 100% 50%; }
    50%  { background-position: 100% 100%; }
    75%  { background-position: 0% 50%; }
    100% { background-position: 0% 0%; }
}

.hero-wrapper {
    background-color: #11215c;
    background-image: linear-gradient(-45deg, #11215c, #3c67f5, #172e7a, #233e9d);
    background-size: 400% 400%;
    -webkit-animation: heroBackgroundFlow 15s ease-in-out infinite;
    animation: heroBackgroundFlow 15s ease-in-out infinite;
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px;
}

.hero-content {
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px;
}
.hero {
    text-align: center;
    padding: 80px 20px 120px;
    color: #ffffff;
}
.hero h1 { color: #ffffff; }
.hero p { color: rgba(255, 255, 255, 0.9) !important; }

/* Tickets Video Background */
.tickets-video-section {
    position: relative;
    overflow: hidden;
    background-color: var(--primary);
    margin-top: -4rem;
    padding-top: 4rem;
}
.tickets-video-section .bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 0;
}
.tickets-video-section .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Azul corporativo con 85% de opacidad para que el video se note suave de fondo */
    background: rgba(60, 103, 245, 0.85); 
    z-index: 1;
}

/* Premium Ticket Design */
.tickets-container-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.tickets-container-flex > .ticket-3d-wrapper {
    flex: 1 1 350px;
    max-width: 400px;
}
/* 3D Premium Tickets */
.ticket-3d-wrapper {
    perspective: 1000px;
    padding: 1rem;
}
.ticket-3d-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    box-shadow: 0 30px 50px -10px rgba(0, 0, 0, 0.3), inset 0 2px 3px rgba(255, 255, 255, 0.3);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
    transform-style: preserve-3d;
}
.ticket-3d-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 20px 40px 60px rgba(0, 0, 0, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.5);
}

.ticket-3d-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: translateZ(-1px);
    pointer-events: none;
}
.ticket-3d-card:hover::before {
    opacity: 1;
}

.ticket-3d-content {
    transform: translateZ(30px);
    text-align: center;
}
.ticket-3d-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
    letter-spacing: 1px;
}
.ticket-3d-price {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff !important;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex; justify-content: center; align-items: baseline; gap: 5px;
}
.ticket-3d-price span {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.8;
}
.ticket-3d-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.6;
}

/* Button */
.ticket-3d-btn {
    transform: translateZ(40px);
    background: #ffffff;
    color: var(--primary) !important;
    border-radius: 50px;
    padding: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    margin-top: 2rem;
}
.ticket-3d-btn:hover {
    transform: translateZ(50px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    background: #f8fafc;
}

/* VIP Card overrides */
.ticket-3d-card.is-vip {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(217, 119, 6, 0.1) 100%);
    border: 1px solid rgba(251, 191, 36, 0.5);
    box-shadow: 0 30px 50px -10px rgba(217, 119, 6, 0.3), inset 0 2px 3px rgba(255, 255, 255, 0.4);
}
.ticket-3d-card.is-vip:hover {
    box-shadow: 20px 40px 60px rgba(217, 119, 6, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.6);
}
.ticket-3d-card.is-vip .ticket-3d-title, 
.ticket-3d-card.is-vip .ticket-3d-price {
    background: linear-gradient(to bottom right, #fde68a, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}
.ticket-3d-card.is-vip .ticket-3d-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #ffffff !important;
}

.ticket-3d-card.is-vip .ticket-3d-btn:hover {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
}
.ticket-3d-ribbon {
    position: absolute;
    top: 28px;
    right: -45px;
    width: 200px;
    text-align: center;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: white;
    padding: 8px 0;
    font-weight: 900;
    font-size: 1rem;
    transform: rotate(45deg) translateZ(20px);
    box-shadow: 0 5px 15px rgba(217, 119, 6, 0.4);
    letter-spacing: 4px;
}

/* Checkout */
.checkout-container { max-width: 800px; padding-top: 40px; padding-bottom: 60px; }
.theme-blue {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}
.theme-blue h1, .theme-blue h2, .theme-blue h3, .theme-blue h4, .theme-blue h5, .theme-blue h6 {
    color: #ffffff !important;
}
.theme-blue .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}
@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes floatLogo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}
.hero-logo-animated {
    animation: fadeInScale 1s ease-out forwards, floatLogo 4s ease-in-out infinite;
    animation-delay: 0s, 1s;
}

/* Stats Section */
.theme-blue .stats-title {
    color: var(--primary) !important;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 3rem;
}
.stats-section {
    position: relative;
    z-index: 10;
    margin-top: -20px;
    padding-bottom: 2rem;
}

.stats-card {
    background: #ffffff;
    padding: 4rem 2rem;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    width: 96%;
    max-width: 1400px;
    margin: 0 auto;
}
.form-section { 
    background: var(--surface); 
    padding: 24px; 
    border-radius: var(--radius-lg); 
    margin-bottom: 24px; 
    box-shadow: var(--shadow-md); 
    border: 1px solid var(--border-color);
}
.form-section h1, .form-section h2, .form-section h3, .form-section h4, .form-section h5, .form-section h6,
.card-header {
    color: var(--primary) !important;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    gap: 2rem;
}
.stat-item {
    text-align: center;
    flex: 1 1 200px;
    max-width: 250px;
}
.stat-number {
    color: var(--primary) !important;
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.stat-label {
    color: var(--primary) !important;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    opacity: 0.85;
}
@media (max-width: 768px) {
    .theme-blue .stats-title { font-size: 1.8rem; }
    .stat-number { font-size: 3.5rem; }
    .stats-grid { flex-direction: column; align-items: center; }
}

/* Video Section */
.video-section-wrapper {
    background: #ffffff;
    padding: 6rem 0;
    margin-top: -5rem;
    border-radius: 60px 60px 0 0;
    box-shadow: 0 -20px 50px rgba(0,0,0,0.15);
    position: relative;
    z-index: 10;
}
.video-header {
    text-align: center;
    margin-bottom: 5rem;
}
.video-subtitle-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.05);
}
.theme-blue .video-main-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #1e293b !important;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}
.video-main-title span {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.video-lead-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}
.video-lead-text strong {
    color: var(--text-main);
    font-weight: 700;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}
.video-card {
    background: #000;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    padding-top: 177.77%; /* 16:9 Aspect Ratio for vertical (9:16) */
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
    border: 8px solid #ffffff;
}
.video-card:hover {
    transform: translateY(-20px) scale(1.02) rotate(2deg);
    box-shadow: 0 40px 60px -15px rgba(0,0,0,0.3);
    z-index: 2;
}
.video-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 22px;
}
@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(1, 1fr);
        max-width: 400px;
        margin: 0 auto;
        gap: 2rem;
    }
}

/* Sponsors Section */
.sponsors-section {
    padding: 4rem 0 6rem;
    background-color: #11215c;
    background-image: linear-gradient(-45deg, #11215c, #3c67f5, #172e7a, #233e9d);
    background-size: 400% 400%;
    -webkit-animation: heroBackgroundFlow 15s ease-in-out infinite;
    animation: heroBackgroundFlow 15s ease-in-out infinite;
    position: relative;
    z-index: 10;
}
.sponsors-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 3rem;
}
.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}
.sponsor-item {
    background: var(--surface);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 120px;
}
.sponsor-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.sponsor-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}
.sponsor-item:hover .sponsor-logo {
    filter: grayscale(0%);
    opacity: 1;
}


/* ═══════════════════════════════════════════════════════════════
   ADMIN UI — Refinamiento de botones y transiciones (jul-2026)
   Capa aplicada al final del archivo: solo afecta al panel admin
   (.admin-layout) y al modal de edición de asistentes.
   ═══════════════════════════════════════════════════════════════ */

/* ── Botones: presión táctil, foco accesible y hover contenido ── */
.admin-layout .btn {
    gap: 0.45rem;
    border-radius: 10px;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
                box-shadow 0.18s ease, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
}
.admin-layout .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.22);
}
.admin-layout .btn:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.18);
}
.admin-layout .btn:focus-visible,
.admin-layout button:focus-visible,
.admin-layout a.btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}
.admin-layout .btn:disabled,
.admin-layout .btn[disabled] {
    opacity: 0.55;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* Botones pequeños de acciones en tablas (Editar, PDF, Reenviar, Ver…) */
.admin-layout .table .btn,
.admin-layout .table button,
.admin-layout .tabla-mini .btn-mini {
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.admin-layout .table .btn:hover,
.admin-layout .table button:hover,
.admin-layout .tabla-mini .btn-mini:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.15);
}
.admin-layout .table .btn:active,
.admin-layout .table button:active,
.admin-layout .tabla-mini .btn-mini:active {
    transform: scale(0.95);
}

/* ── Sidebar: indicador activo y deslizamiento suave ── */
.admin-layout .admin-nav-link {
    position: relative;
    border-radius: 10px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, padding-left 0.2s ease;
}
.admin-layout .admin-nav-link:hover {
    transform: translateX(3px);
}
.admin-layout .admin-nav-link.active::before {
    content: '';
    position: absolute;
    left: -2px; top: 20%; bottom: 20%;
    width: 4px;
    border-radius: 4px;
    background: #38bdf8;
    animation: crecerBarra 0.25s ease both;
}
@keyframes crecerBarra {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

/* ── Entrada de página: el contenido aparece con un desliz suave ── */
@keyframes adminEntrada {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.admin-layout .admin-content > * {
    animation: adminEntrada 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.admin-layout .admin-content > *:nth-child(2) { animation-delay: 0.05s; }
.admin-layout .admin-content > *:nth-child(3) { animation-delay: 0.1s; }
.admin-layout .admin-content > *:nth-child(4) { animation-delay: 0.15s; }
.admin-layout .admin-content > *:nth-child(5) { animation-delay: 0.2s; }
.admin-layout .admin-content > *:nth-child(n+6) { animation-delay: 0.25s; }

/* ── Tarjetas: elevación sutil (sin saltos) ── */
.admin-layout .card:hover {
    transform: translateY(-2px);
}

/* ── Tablas: hover de fila con transición ── */
.admin-layout .table tbody tr {
    transition: background-color 0.15s ease;
}
.admin-layout .table tbody tr:hover {
    background: #f1f5ff;
}

/* ── Formularios: anillo de foco consistente ── */
.admin-layout input[type="text"]:focus,
.admin-layout input[type="email"]:focus,
.admin-layout input[type="number"]:focus,
.admin-layout input[type="password"]:focus,
.admin-layout select:focus,
.admin-layout textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

/* ── Modal de edición de asistentes: aparición animada ── */
#modalEdicion {
    animation: adminFundido 0.2s ease both;
}
#modalEdicion > div {
    animation: modalPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes adminFundido {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.94) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Corrección: números de las tarjetas de estadísticas
      (no deben heredar el estilo de "título oscuro" de .card > h3) ── */
.admin-content .card > h3.stat-num:first-child {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ── Scrollbar sobria en el panel ── */
.admin-layout ::-webkit-scrollbar { width: 9px; height: 9px; }
.admin-layout ::-webkit-scrollbar-track { background: transparent; }
.admin-layout ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
.admin-layout ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Accesibilidad: respetar la preferencia de menos movimiento ── */
@media (prefers-reduced-motion: reduce) {
    .admin-layout *,
    #modalEdicion,
    #modalEdicion > div {
        animation: none !important;
        transition: none !important;
    }
}
