/* ================================================================
   Club del Pudín — Hoja de Estilos Global
   Landing:  Cereza #C8102E | Crema #FDF6E3
   Admin:    Morado #6B21A8 | Violeta #7C3AED | Lila #EDE9FE
   ================================================================ */

/* ─── Google Fonts Import (en HTML) ─────────────────────────────── */
/* Playfair Display (headings) + Inter (body) */

/* ─── Variables CSS ──────────────────────────────────────────────── */
:root {
    /* Landing palette */
    --cherry:        #C8102E;
    --cherry-dark:   #9B0D22;
    --cherry-light:  #F7E0E4;
    --cherry-pale:   #FDF0F2;
    --cream:         #FDF6E3;
    --cream-dark:    #F5E6C8;
    --cream-medium:  #EDD6A4;
    --brown:         #5C3317;
    --brown-light:   #8B5E3C;

    /* Admin / Purple palette */
    --purple:        #7C3AED;
    --purple-dark:   #5B21B6;
    --purple-deeper: #4C1D95;
    --purple-light:  #EDE9FE;
    --purple-pale:   #F5F3FF;
    --purple-mid:    #C4B5FD;
    --purple-muted:  rgba(124,58,237,0.12);

    /* Shared */
    --text:          #1A1A1A;
    --text-soft:     #4B4B4B;
    --text-light:    #4B4B4B;
    --gray:          #6B7280;
    --gray-light:    #E5E7EB;
    --white:         #FFFFFF;
    --shadow-sm:     0 4px 12px rgba(0,0,0,0.08);
    --shadow-md:     0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg:     0 20px 60px rgba(0,0,0,0.15);
    --radius:        16px;
    --radius-sm:     10px;
    --radius-lg:     24px;
    --transition:    all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--cream);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ─── Typography ─────────────────────────────────────────────────── */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.25; }

.text-cherry  { color: var(--cherry); }
.text-brown   { color: var(--brown); }
.text-cream   { color: var(--cream); }
.text-center  { text-align: center; }

/* ─── Layout ─────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* ─── NAV ────────────────────────────────────────────────────────── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(253, 246, 227, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cream-dark);
    padding: 0 20px;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--cherry);
}

.nav-logo span { font-size: 28px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cherry);
    transition: width 0.25s;
}

.nav-links a:hover { color: var(--cherry); }
.nav-links a:hover::after { width: 100%; }

/* ─── HERO / VIDEO Section ───────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--cherry) 0%, var(--cherry-dark) 50%, #6B0F1A 100%);
    padding: 64px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '🍮';
    position: absolute;
    font-size: 300px;
    opacity: 0.05;
    top: -60px;
    right: -60px;
    pointer-events: none;
    line-height: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.hero-section h1 {
    font-size: clamp(36px, 6vw, 64px);
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.hero-section p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* Video Embed */
.video-wrapper {
    max-width: 680px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.4);
    border: 3px solid rgba(255,255,255,0.2);
    aspect-ratio: 16 / 9;
    background: rgba(0,0,0,0.3);
}

.video-wrapper iframe,
.video-wrapper video {
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.video-placeholder:hover { background: rgba(255,255,255,0.05); }
.video-placeholder .play-icon { font-size: 56px; }
.video-placeholder p { font-size: 15px; opacity: 0.8; }

/* Scroll indicator */
.scroll-hint {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    font-size: 13px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ─── CARRUSEL (SwiperJS) ────────────────────────────────────────── */
.carousel-section {
    background: var(--white);
    padding: 64px 0;
    overflow: hidden;
}

.carousel-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 0 20px;
}

.carousel-header h2 { font-size: 36px; color: var(--brown); margin-bottom: 10px; }
.carousel-header p  { color: var(--gray); font-size: 16px; }

.swiper {
    width: 100%;
    padding: 16px 0 48px !important;
}

.swiper-slide {
    width: 320px !important;
}

.slide-card {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    background: var(--cream-dark);
}

.slide-card:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.slide-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.slide-card:hover img { transform: scale(1.06); }

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: white;
    font-size: 14px;
    font-weight: 500;
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition);
}

.slide-card:hover .slide-overlay { transform: translateY(0); opacity: 1; }

.swiper-pagination-bullet { background: var(--cherry) !important; }
.swiper-button-next, .swiper-button-prev {
    color: var(--cherry) !important;
}

/* Placeholder cuando no hay fotos */
.no-photos-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.no-photos-placeholder span { font-size: 60px; display: block; margin-bottom: 16px; }

/* ─── FORMULARIO DE REGISTRO ─────────────────────────────────────── */
.form-section {
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
    padding: 80px 20px;
}

.form-section .container { max-width: 600px; }

.form-header { text-align: center; margin-bottom: 48px; }
.form-header h2 { font-size: 38px; color: var(--cherry); margin-bottom: 10px; }
.form-header p  { color: var(--text-light); font-size: 16px; }

/* Loyalty Steps */
.loyalty-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
}

.loyalty-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
}

.loyalty-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: var(--cream-medium);
    z-index: 0;
}

.step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--cream-medium);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.step-dot.active {
    border-color: var(--cherry);
    background: var(--cherry);
}

.step-dot.completed { border-color: var(--cherry); background: var(--cherry-light); }

.loyalty-step span {
    font-size: 11px;
    color: var(--gray);
    font-weight: 500;
    text-align: center;
}

/* Form Card */
.form-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cherry), var(--cherry-dark));
}

.form-group { margin-bottom: 22px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--brown);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    background: var(--cream-pale);
    transition: var(--transition);
    outline: none;
    color: var(--text);
}

.form-control:focus {
    border-color: var(--cherry);
    background: white;
    box-shadow: 0 0 0 4px rgba(200,16,46,0.1);
}

.form-control::placeholder { color: var(--gray); }

/* Phone input with flag */
.phone-wrapper {
    display: flex;
    gap: 8px;
}

.phone-prefix {
    padding: 14px 12px;
    background: var(--cream-dark);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-light);
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Code input - grande y vistoso */
.code-input {
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: 8px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    color: var(--cherry) !important;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--cherry), var(--cherry-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 17px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.04em;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.btn-submit:hover::before { opacity: 1; }

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(200,16,46,0.4);
}

.btn-submit:active { transform: translateY(0); }

.btn-submit.loading { opacity: 0.7; cursor: wait; }

/* ─── RESPONSE MESSAGES ──────────────────────────────────────────── */
.response-box {
    display: none;
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-top: 16px;
    text-align: center;
    animation: fadeInUp 0.4s ease;
}

.response-box.show { display: block; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.response-box.success {
    background: linear-gradient(135deg, #DCFCE7, #D1FAE5);
    border: 1px solid #6EE7B7;
    color: #065F46;
}

.response-box.error {
    background: linear-gradient(135deg, var(--cherry-light), #FEE2E6);
    border: 1px solid #FECDD3;
    color: var(--cherry-dark);
}

.response-box.warning {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    color: #92400E;
}

.response-box .response-icon { font-size: 36px; display: block; margin-bottom: 10px; }
.response-box .response-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; font-family: 'Playfair Display', serif; }
.response-box p { font-size: 14px; line-height: 1.6; }

/* ─── CUPÓN DE PREMIO ────────────────────────────────────────────── */
.coupon-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.coupon-overlay.show { display: flex; }

.coupon-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
    border: 3px dashed var(--cherry);
    animation: zoomIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.coupon-card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, var(--cherry), var(--cream), var(--cherry));
    border-radius: var(--radius-lg);
    z-index: -1;
    animation: shimmer 3s infinite linear;
    background-size: 200% 200%;
}

@keyframes shimmer {
    0%   { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.coupon-emoji { font-size: 80px; display: block; margin-bottom: 16px; }
.coupon-card h2 { font-size: 32px; color: var(--cherry); margin-bottom: 10px; }
.coupon-card p  { color: var(--text-light); font-size: 15px; margin-bottom: 24px; }

.coupon-code-box {
    background: var(--cherry-light);
    border: 2px dashed var(--cherry);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 24px;
}

.coupon-code-box span { font-size: 13px; color: var(--gray); display: block; margin-bottom: 4px; }
.coupon-code-box strong { font-size: 28px; color: var(--cherry); font-family: 'Playfair Display', serif; letter-spacing: 4px; }

.btn-print {
    background: var(--cream-dark);
    color: var(--brown);
    border: 2px solid var(--cream-medium);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    margin-right: 8px;
}

.btn-close-coupon {
    background: var(--cherry);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.btn-close-coupon:hover, .btn-print:hover { transform: translateY(-1px); }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.site-footer {
    background: var(--brown);
    color: rgba(255,255,255,0.75);
    text-align: center;
    padding: 32px 20px;
    font-size: 14px;
}

.site-footer strong { color: white; }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--cream); }

/* ─── ADMIN PANEL ────────────────────────────────────────────────── */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--purple-pale);
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--purple-deeper) 0%, var(--purple-dark) 50%, var(--purple) 100%);
    color: white;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(76,29,149,0.25);
}

.sidebar-logo {
    padding: 28px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo span { font-size: 28px; }

.sidebar-menu {
    padding: 16px 0;
    flex: 1;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 24px;
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255,255,255,0.15);
    color: white;
    border-left-color: var(--purple-mid);
}

.sidebar-menu a .icon { font-size: 18px; width: 24px; text-align: center; }

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-footer a {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.admin-topbar {
    background: white;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-topbar h1 {
    font-size: 22px;
    color: var(--text);
    font-family: 'Playfair Display', serif;
}

.admin-content { padding: 32px; }

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--purple);
    transition: var(--transition);
}

.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card:nth-child(2) { border-left-color: #F59E0B; }
.stat-card:nth-child(3) { border-left-color: #10B981; }
.stat-card:nth-child(4) { border-left-color: var(--purple-mid); }

.stat-label { font-size: 12px; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.stat-value { font-size: 36px; font-weight: 700; color: var(--text); font-family: 'Playfair Display', serif; }
.stat-icon { font-size: 28px; float: right; margin-top: -4px; }

/* Data Table */
.data-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 24px;
}

.data-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.data-card-header h3 { font-size: 17px; color: var(--text); font-family: 'Playfair Display', serif; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    padding: 12px 16px;
    background: var(--cream);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray);
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-light);
    font-size: 14px;
    color: var(--text);
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--cream-pale); }

/* Points Badge */
.points-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.points-badge.low  { background: #FEF3C7; color: #92400E; }
.points-badge.high { background: #D1FAE5; color: #065F46; }
.points-badge.won  { background: var(--purple-light); color: var(--purple-dark); }

/* Buttons Admin */
.btn-admin {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-admin.primary {
    background: var(--purple);
    color: white;
}

.btn-admin.primary:hover { background: var(--purple-dark); }

.btn-admin.danger {
    background: #FEE2E6;
    color: var(--cherry-dark);
}

.btn-admin.danger:hover { background: #FCA5A5; }

.btn-admin.success {
    background: #D1FAE5;
    color: #065F46;
}

.btn-admin.success:hover { background: #6EE7B7; }

.btn-admin.neutral {
    background: var(--gray-light);
    color: var(--text-light);
}

.btn-admin.neutral:hover { background: #D1D5DB; }

/* Admin Forms */
.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.admin-form-group { margin-bottom: 20px; }
.admin-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
}

.admin-form-group .form-control { background: var(--cream); }

/* Código generator */
.code-generator-box {
    background: var(--cream-pale);
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.generated-codes-list {
    background: var(--brown);
    color: var(--cream);
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    padding: 24px;
    border-radius: var(--radius-sm);
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 16px;
}

.code-pill {
    background: rgba(253,246,227,0.15);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 16px;
    border: 1px solid rgba(253,246,227,0.2);
}

/* Upload zone */
.upload-zone {
    border: 3px dashed var(--cream-medium);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--cream-pale);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--purple);
    background: var(--purple-pale);
}

.upload-zone .upload-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.upload-zone p { color: var(--gray); font-size: 15px; }
.upload-zone p strong { color: var(--purple); }

/* Alert Admin */
.admin-alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-alert.success { background: #DCFCE7; color: #166534; border: 1px solid #86EFAC; }
.admin-alert.error   { background: #FEE2E6; color: #9B1C1C; border: 1px solid #FCA5A5; }
.admin-alert.info    { background: #DBEAFE; color: #1E40AF; border: 1px solid #93C5FD; }

/* ─── LOGIN ADMIN ────────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--purple-deeper) 0%, var(--purple-dark) 50%, var(--purple) 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '🍮';
    position: absolute;
    font-size: 320px;
    opacity: 0.04;
    top: -80px;
    right: -80px;
    pointer-events: none;
    line-height: 1;
}

.login-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 40px 100px rgba(76,29,149,0.45);
    position: relative;
    z-index: 1;
}

.login-card .logo {
    text-align: center;
    margin-bottom: 36px;
}

.login-card .logo span { font-size: 60px; display: block; margin-bottom: 12px; }
.login-card .logo h1 { font-size: 26px; color: var(--purple-dark); }
.login-card .logo p  { color: var(--gray); font-size: 14px; }

/* ─── PRINT STYLE (Cupón) ────────────────────────────────────────── */
@media print {
    body > *:not(.coupon-overlay) { display: none; }
    .coupon-overlay { position: static; background: none; backdrop-filter: none; }
    .btn-print, .btn-close-coupon { display: none; }
    .coupon-card { box-shadow: none; border: 3px dashed black; }
}

/* ─── HAMBURGER BUTTON ───────────────────────────────────────────── */
.btn-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    flex-direction: column;
    gap: 5px;
    transition: background 0.2s;
    margin-right: 12px;
    flex-shrink: 0;
}
.btn-hamburger:hover { background: rgba(0,0,0,0.06); }
.btn-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--purple-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}
/* Animación X cuando está abierto */
.btn-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-hamburger.open span:nth-child(2) { opacity: 0; }
.btn-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay oscuro detrás del sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.visible { display: block; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Layout: solo main visible por defecto */
    .admin-layout {
        flex-direction: column;
    }

    /* Sidebar se convierte en drawer lateral */
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 260px;
        height: 100%;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: none;
    }
    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(76,29,149,0.4);
    }

    /* Main ocupa todo el ancho */
    .admin-main { width: 100%; }

    /* Topbar ajustada para móvil */
    .admin-topbar {
        padding: 0 16px;
        height: 56px;
        gap: 8px;
    }
    .admin-topbar h1 { font-size: 16px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* Mostrar botón hamburguesa */
    .btn-hamburger { display: flex; }

    /* Contenido con menos padding */
    .admin-content { padding: 16px; }

    /* Form grids */
    .admin-form-grid { grid-template-columns: 1fr; }

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

    /* Ocultar nav del sitio público */
    .nav-links { display: none; }
    .hero-section h1 { font-size: 32px; }
    .form-card { padding: 24px 20px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .loyalty-steps { gap: 0; }
    .links-grid { grid-template-columns: 1fr; }
    .admin-topbar h1 { font-size: 14px; }
}
