/* Variables y Reset */
:root {
    --primary-pink: #e91e63;
    --light-pink: hsl(339, 81%, 85%);
    --dark-pink: #c2185b;
    --soft-pink: #fce4ec;
    --white: #ffffff;
    --off-white: #fafafa;
    --text-dark: #333333;
    --text-gray: #666666;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-pink);
}

.ribbon-icon {
    font-size: 2rem;
    color: var(--primary-pink);
}

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

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-pink);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.admin-link {
    background: var(--soft-pink);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--primary-pink) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-pink);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--soft-pink) 0%, var(--white) 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.ribbon-symbol {
    font-size: 4rem;
    color: var(--primary-pink);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero h1 {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-pink);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
    background: var(--dark-pink);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-pink);
    border: 2px solid var(--primary-pink);
}

.btn-secondary:hover {
    background: var(--soft-pink);
    transform: translateY(-2px);
}

/* Botón DONAR - Estilo rosa claro */
.btn-donar {
    background: linear-gradient(135deg, #ff80ab 0%, #ff4081 100%);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-donar:hover {
    background: linear-gradient(135deg, #ff4081 0%, #f50057 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 64, 129, 0.5);
}

.btn-donar:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-donar i {
    font-size: 1.1rem;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* Sections General */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-top: 15px;
}

.section-header i {
    font-size: 2.5rem;
    color: var(--primary-pink);
}

.heart-icon {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Story Section */
.story-section {
    background: var(--white);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.story-image {
    position: relative;
}

.image-placeholder {
    background: var(--soft-pink);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: var(--primary-pink);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 3px dashed var(--light-pink);
}

.image-placeholder i {
    font-size: 5rem;
    margin-bottom: 15px;
}

.story-content h3 {
    font-size: 2rem;
    color: var(--primary-pink);
    margin-bottom: 20px;
}

.story-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-card {
    background: var(--off-white);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--light-pink);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-pink);
    margin-bottom: 10px;
}

.info-card h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.info-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* Info Card con PDF - Clickable */
.info-card[data-pdf] {
    cursor: pointer !important;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.info-card[data-pdf]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.05) 0%, rgba(233, 30, 99, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card[data-pdf]:hover::before {
    opacity: 1;
}

.info-card[data-pdf]:hover {
    transform: translateY(-5px);
    border-color: var(--primary-pink);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.15);
}

.pdf-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 14px;
    background: var(--soft-pink);
    color: var(--primary-pink);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.info-card[data-pdf] * {
    pointer-events: none;
}

.info-card[data-pdf]:hover .pdf-indicator {
    background: var(--primary-pink);
    color: white;
}

.pdf-indicator i {
    font-size: 0.9rem;
    margin: 0;
}

/* Raffle Section */
.raffle-section {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--dark-pink) 100%);
    color: var(--white);
}

.section-header.light h2,
.section-header.light p {
    color: var(--white);
}

.raffle-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.prize-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.prize-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.prize-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.prize-amount {
    font-size: 4rem;
    font-weight: 700;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.raffle-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--radius);
}

.detail-item i {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.detail-item p {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.price-highlight {
    color: #ffeb3b;
    font-size: 1.5rem !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Purchase Section */
.purchase-section {
    background: var(--off-white);
}

/* Steps Container */
.step-container {
    animation: fadeIn 0.4s ease;
}

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

/* Number Search */
.number-search {
    max-width: 500px;
    margin: 0 auto 30px;
    text-align: center;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--light-pink);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-pink);
}

.search-hint {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Numbers Grid */
.numbers-grid-container {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.grid-header h3 {
    color: var(--primary-pink);
}

.legend {
    display: flex;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.legend-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-item.available .dot { background: var(--light-pink); }
.legend-item.sold .dot { background: var(--text-gray); opacity: 0.5; }
.legend-item.selected .dot { background: var(--primary-pink); }

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    max-height: 350px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: var(--radius-sm);
}


.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.pagination button {
    padding: 8px 14px;
    border: 1px solid var(--light-pink);
    background: var(--white);
    color: var(--primary-pink);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.pagination button:hover:not(:disabled) {
    background: var(--soft-pink);
}

.pagination button.active {
    background: var(--primary-pink);
    color: var(--white);
    border-color: var(--primary-pink);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Selection Summary - MEJORADO */
.selection-summary {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-pink);
    position: sticky;
    bottom: 20px;
    z-index: 100;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--soft-pink);
}

.summary-header h3 {
    color: var(--primary-pink);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.btn-clear {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-clear:hover {
    background: var(--danger);
    color: var(--white);
}

.selected-numbers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    max-height: 120px;
    overflow-y: auto;
    padding: 10px;
    background: var(--off-white);
    border-radius: var(--radius-sm);
}

.selected-number-tag {
    background: var(--primary-pink);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    animation: popIn 0.3s ease;
}

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

.selected-number-tag button {
    background: rgba(255,255,255,0.3);
    border: none;
    color: var(--white);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.selected-number-tag button:hover {
    background: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

.summary-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 15px;
    border-top: 2px solid var(--soft-pink);
}

.price-breakdown {
    flex: 1;
    min-width: 200px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.breakdown-row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px dashed var(--light-pink);
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 700;
}

.breakdown-row.total strong {
    color: var(--primary-pink);
    font-size: 1.5rem;
}

/* PASO 2: Formulario de Pago */
.payment-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--primary-pink);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.btn-back:hover {
    transform: translateX(-5px);
}

.form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow-lg);
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--soft-pink);
}

.form-header h3 {
    color: var(--primary-pink);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Resumen de compra en formulario */
.purchase-summary-box {
    background: linear-gradient(135deg, var(--soft-pink) 0%, var(--white) 100%);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid var(--light-pink);
}

.purchase-summary-box h4 {
    color: var(--primary-pink);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--light-pink);
}

.summary-number-tag {
    background: var(--white);
    color: var(--primary-pink);
    padding: 6px 14px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--light-pink);
}

.summary-calculation {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.calc-row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid var(--primary-pink);
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 700;
}

.calc-row.total strong {
    color: var(--primary-pink);
    font-size: 1.4rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
}

.form-section h4 {
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

/* Payment Info Display */
.payment-info-display {
    margin-top: 20px;
    animation: fadeIn 0.3s ease;
}

.payment-method-card {
    background: #f8f9fa;
    border-radius: var(--radius);
    padding: 20px;
    border-left: 4px solid var(--primary-pink);
}

.payment-method-card h5 {
    color: var(--primary-pink);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95rem;
}

.payment-detail-row:last-child {
    border-bottom: none;
}

.payment-detail-row .label {
    color: var(--text-gray);
    font-weight: 500;
}

.payment-detail-row .value {
    color: var(--text-dark);
    font-weight: 600;
    text-align: right;
}

/* Form Notice */
.form-notice {
    background: #e3f2fd;
    border-radius: var(--radius-sm);
    padding: 20px;
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    border-left: 4px solid #2196f3;
}

.form-notice i {
    color: #2196f3;
    font-size: 1.5rem;
    margin-top: 3px;
}

.form-notice p {
    color: #1565c0;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* Form Actions */
.form-actions {
    text-align: center;
}

.btn-confirm {
    padding: 18px 50px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--dark-pink) 100%);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.btn-confirm:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.5);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--light-pink);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    color: #aaa;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-pink);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #777;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    max-width: 500px;
    width: 100%;
    animation: modalPop 0.4s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes modalPop {
    from { 
        opacity: 0; 
        transform: scale(0.8) translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.modal-icon {
    font-size: 5rem;
    color: var(--success);
    margin-bottom: 20px;
    animation: iconPop 0.5s ease 0.2s both;
}

@keyframes iconPop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.modal h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.modal > p {
    color: var(--text-gray);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

/* Confirmation Details */
.confirmation-details {
    background: var(--soft-pink);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 25px 0;
    text-align: left;
}

.confirmation-details h4 {
    color: var(--primary-pink);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.confirmation-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.confirmation-number-tag {
    background: var(--white);
    color: var(--primary-pink);
    padding: 5px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.confirmation-total {
    border-top: 2px solid var(--light-pink);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.confirmation-total span:last-child {
    color: var(--primary-pink);
    font-size: 1.4rem;
}

/* Responsive */
@media (max-width: 968px) {
    .story-grid {
        grid-template-columns: 1fr;
    }
    
    .raffle-info {
        grid-template-columns: 1fr;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .legend {
        flex-direction: column;
        gap: 8px;
    }
    
    .numbers-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        max-height: 300px;
    }
    
    .summary-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
    
    .form-card {
        padding: 25px;
    }
    
    .btn-confirm {
        width: 100%;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .selection-summary {
        padding: 20px;
    }
    
    .selected-numbers-list {
        max-height: 100px;
    }
    
    .price-breakdown {
        width: 100%;
    }
}



/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-contenido {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.cerrar {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.cerrar:hover {
    color: #000;
}

.datos-banco {
    background-color: #c26d95;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.datos-banco p {
    margin: 10px 0;
    font-size: 16px;
}

.btn-copiar {
    background-color: #27ae60;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.mensaje {
    color: #27ae60;
    font-size: 14px;
    margin-top: 10px;
}
/* MENÚ RESPONSIVE - NUEVO */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-pink);
    cursor: pointer;
    z-index: 1000;
    padding: 10px;
    position: relative;
}

.nav-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-pink);
    cursor: pointer;
    z-index: 1002;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    /* Ocultar hamburguesa cuando el menú está abierto */
    body.menu-open .menu-toggle {
        display: none !important;
    }
    
    .nav-close {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        margin: 0;
    }
    
    .nav.active {
        right: 0;
        z-index: 1001;
    }
    
    .nav a {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        width: 100%;
        display: block;
    }
    
    .nav a::after {
        display: none;
    }
    
    .admin-link {
        margin-top: 20px;
        text-align: center;
    }
}





/* MENÚ RESPONSIVE - CORREGIDO */

.menu-toggle {
    display: none; /* Oculto en desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-pink);
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.nav-close {
    display: none; /* Oculto por defecto */
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-pink);
    cursor: pointer;
    z-index: 1002;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* MÓVIL */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .nav-close {
        display: flex !important; /* Importante: flex para centrar el icono */
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%; /* Fuera de pantalla */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        margin: 0;
        display: flex;
        overflow-y: auto;
    }
    
    .nav.active {
        right: 0 !important;
    }
    
    /* Cuando el menú está abierto, ocultar hamburguesa */
    body.menu-open .menu-toggle {
        display: none !important;
    }
    
    .nav a {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        width: 100%;
        display: block;
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 500;
    }
    
    .admin-link {
        margin-top: 20px;
        text-align: center;
        background: var(--soft-pink);
        padding: 12px;
        border-radius: 20px;
        color: var(--primary-pink) !important;
    }
}



/* =====================================================
   SISTEMA DE NÚMEROS - 4 ESTADOS VISUALES
   ===================================================== */

/* Contenedor principal */
.numbers-grid-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 2px solid #fce4ec;
    padding-bottom: 15px;
}

.grid-header h3 {
    color: #e91e63;
    margin: 0;
    font-size: 1.3rem;
}

/* Leyenda de estados */
.legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-weight: 500;
}

.legend-item .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid transparent;
}

.legend-item.available .dot { background: #fce4ec; border-color: #f8bbd0; }
.legend-item.selected .dot { background: #e91e63; }
.legend-item.reserved .dot { background: #ff9800; }
.legend-item.sold .dot { background: #999; }

/* Grid de números */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* Celda base - Estado DISPONIBLE (por defecto) */
.number-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fce4ec; /* Rosa muy claro */
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    position: relative;
    user-select: none;
}

/* Hover disponible */
.number-cell:hover:not(.selected):not(.reserved):not(.sold) {
    background: #f8bbd0;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.2);
    z-index: 5;
}

/* Estado SELECCIONADO (por el usuario actual) */
.number-cell.selected {
    background: #e91e63 !important; /* Rosa fuerte */
    color: white !important;
    border-color: #c2185b !important;
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.5);
    z-index: 10;
    font-weight: 700;
}

/* Estado RESERVADO (apartado por otro, pendiente de pago) */
.number-cell.reserved {
    background: #fff3e0 !important; /* Amarillo claro */
    color: #e65100 !important;
    border-color: #ff9800 !important;
    cursor: not-allowed;
    opacity: 0.9;
}

.number-cell.reserved::after {
    content: '⏳';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.65rem;
}

/* Estado VENDIDO (pagado y validado) */
.number-cell.sold {
    background: #e0e0e0 !important; /* Gris */
    color: #999 !important;
    border-color: #bbb !important;
    cursor: not-allowed;
    opacity: 0.6;
    text-decoration: line-through;
}

.number-cell.sold::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.65rem;
    color: #666;
    text-decoration: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .numbers-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 6px;
        max-height: 350px;
    }
    
    .number-cell {
        font-size: 0.75rem;
    }
    
    .grid-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 8px 14px;
    border: 1px solid #e91e63;
    background: white;
    color: #e91e63;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.pagination button:hover:not(:disabled) {
    background: #fce4ec;
}

.pagination button.active {
    background: #e91e63;
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #ccc;
    color: #999;
}