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

body {
    font-family: 'Inter', sans-serif;
    background: 
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
        url('fondo.jpg') center/cover no-repeat fixed,
        linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #C084FC 100%);
    min-height: 100vh;
    color: #e2e8f0;
    line-height: 1.6;
}

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

/* Hero Section - Halloween Theme */
.hero {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(168, 85, 247, 0.9));
    border-radius: 16px;
    border: 3px solid #FACC15;
    text-align: center;
    color: white;
    margin-bottom: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.3);
}

/* Cartel arriba del título */
.hero::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: 180px;
    background: url('cartel.png') center/contain no-repeat;
    z-index: 3;
    border-radius: 8px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(250,204,21,0.4)"/><circle cx="80" cy="80" r="1.5" fill="rgba(250,204,21,0.3)"/><circle cx="50" cy="10" r="1" fill="rgba(250,204,21,0.5)"/><circle cx="10" cy="80" r="1.5" fill="rgba(250,204,21,0.3)"/><circle cx="90" cy="30" r="1" fill="rgba(250,204,21,0.4)"/></svg>');
    animation: float 20s linear infinite;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 190px; /* Espacio para el cartel arriba */
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 12px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    letter-spacing: -0.02em;
    color: #FACC15;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 20px;
    opacity: 0.95;
    font-weight: 500;
}

/* Contador de tiempo límite */
.deadline-warning {
    background: rgba(239, 68, 68, 0.3);
    border: 2px solid #ef4444;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 15px auto;
    text-align: center;
    animation: pulse-warning 2s infinite;
    max-width: 350px;
    width: auto;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
}

.deadline-warning.expired {
    background: rgba(107, 114, 126, 0.3);
    border-color: #6b7280;
    animation: none;
}

.deadline-warning h3 {
    color: #ef4444;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.deadline-warning.expired h3 {
    color: #6b7280;
}

.deadline-time {
    font-size: 1.4rem;
    font-weight: 900;
    color: #FACC15;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    margin: 6px 0;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.deadline-warning.expired .deadline-time {
    color: #6b7280;
}

@keyframes pulse-warning {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
    }
    50% { 
        transform: scale(1.03); 
        box-shadow: 0 12px 32px rgba(239, 68, 68, 0.4);
    }
}

/* Aviso de entrada */
.ticket-warning {
    background: rgba(250, 204, 21, 0.2);
    border: 2px solid #FACC15;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 15px auto;
    text-align: center;
    max-width: 350px;
    width: auto;
}

.ticket-warning h4 {
    color: #FACC15;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.ticket-warning p {
    color: #e2e8f0;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.event-details {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(250, 204, 21, 0.2);
    backdrop-filter: blur(15px);
    padding: 16px 24px;
    border-radius: 12px;
    border: 2px solid rgba(250, 204, 21, 0.4);
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.detail-item svg {
    color: #FACC15;
    filter: drop-shadow(0 0 6px rgba(250,204,21,0.7));
}

/* Main Content */
.main-content {
    display: grid;
    gap: 32px;
}

.registration-section,
.stats-section,
.attendees-section {
    background: rgba(139, 92, 246, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 40px;
    border: 2px solid rgba(250, 204, 21, 0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.registration-section h2,
.stats-section h2,
.attendees-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: #FACC15;
    text-align: center;
    text-shadow: 0 3px 6px rgba(0,0,0,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form Styles */
.registration-form {
    max-width: 700px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #e2e8f0;
    font-size: 1.05rem;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(250, 204, 21, 0.4);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: rgba(139, 92, 246, 0.2);
    color: #e2e8f0;
    backdrop-filter: blur(10px);
}

.form-group input:focus {
    outline: none;
    border-color: #FACC15;
    background: rgba(250, 204, 21, 0.1);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.3);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: rgba(226, 232, 240, 0.6);
}

/* Input Container */
.input-container {
    position: relative;
}

/* Validation Indicator */
.validation-indicator {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.validation-indicator.show {
    display: flex;
}

.validation-indicator.validating {
    color: #FF6B35;
}

.validation-indicator.validating svg {
    animation: spin 1s linear infinite;
}

.validation-indicator.valid {
    color: #10b981;
}

.validation-indicator.invalid {
    color: #ef4444;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.option-card {
    border: 2px solid rgba(250, 204, 21, 0.4);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s;
    background: rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
}

.option-card:hover {
    border-color: #FACC15;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(250, 204, 21, 0.3);
}

.option-card.selected {
    border-color: #FACC15;
    background: rgba(250, 204, 21, 0.1);
}

.option-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.option-header svg {
    color: #FACC15;
    filter: drop-shadow(0 0 6px rgba(250,204,21,0.5));
}

.option-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e2e8f0;
}

/* Custom Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #e2e8f0;
    transition: all 0.2s;
}

.checkbox-label:hover {
    color: #FACC15;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(250, 204, 21, 0.6);
    border-radius: 6px;
    margin-right: 16px;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
    background: rgba(139, 92, 246, 0.3);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #FACC15;
    border-color: #FACC15;
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.6);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid #8B5CF6;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Sub Options */
.sub-options {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,107,53,0.2);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sub-options h4 {
    color: #FACC15;
    font-weight: 600;
    margin-bottom: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #94a3b8;
    transition: all 0.2s;
    padding: 8px 12px;
    border-radius: 8px;
}

.radio-label:hover {
    color: #e2e8f0;
    background: rgba(250, 204, 21, 0.05);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(250, 204, 21, 0.5);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + .radio-mark {
    border-color: #FACC15;
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.4);
}

.radio-label input[type="radio"]:checked + .radio-mark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #FACC15;
}

/* Info List for costume details */
.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 6px;
    padding-left: 0;
}

/* Imagen del disfraz */
.costume-preview {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #FACC15;
    margin: 12px auto 16px;
    display: block;
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
    transition: all 0.3s;
}

.costume-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(250, 204, 21, 0.5);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #FACC15 0%, #EAB308 100%);
    color: #8B5CF6;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(250, 204, 21, 0.4);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(250, 204, 21, 0.6);
}

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

.submit-btn:disabled {
    background: #374151;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Privacy Notice */
.privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(250, 204, 21, 0.4);
    border-radius: 12px;
    font-size: 0.9rem;
    color: #e2e8f0;
    font-weight: 500;
}

.privacy-notice svg {
    color: #FACC15;
    flex-shrink: 0;
    margin-top: 2px;
}

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

.stat-card {
    text-align: center;
    padding: 32px 24px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(255,107,53,0.3);
    border-radius: 16px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: #1976D2;
    box-shadow: 0 12px 32px rgba(25, 118, 210, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 12px;
    color: #FACC15;
    text-shadow: 0 3px 6px rgba(0,0,0,0.8);
}

.stat-label {
    font-size: 1rem;
    color: #e2e8f0;
    font-weight: 600;
}

/* Attendees List */
.attendees-list {
    display: grid;
    gap: 20px;
}

.attendee-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255,107,53,0.2);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.attendee-card:hover {
    transform: translateX(4px);
    border-color: #1976D2;
    box-shadow: 0 8px 24px rgba(25, 118, 210, 0.1);
}

.attendee-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.attendee-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8B5CF6, #FACC15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    border: 2px solid #FACC15;
}

.attendee-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.attendee-name {
    font-weight: 700;
    color: #e2e8f0;
    font-size: 1.1rem;
}

.attendee-phone {
    color: #94a3b8;
    font-size: 0.9rem;
}

.attendee-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag.budget {
    background: rgba(25, 118, 210, 0.2);
    color: #1976D2;
    border: 1px solid rgba(25, 118, 210, 0.3);
}

.tag.costume {
    background: rgba(255, 107, 53, 0.2);
    color: #FF6B35;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.tag.transport {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Notification */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 20px 28px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 1000;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    backdrop-filter: blur(20px);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* No attendees state */
.no-attendees {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.no-attendees p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s ease-in-out infinite;
}

/* Admin Link - Oculto */
.admin-link {
    display: none;
}

/* Estilos responsive para contador */
@media (max-width: 768px) {
    .costume-preview {
        width: 100px;
        height: 130px;
        margin: 10px auto 12px;
    }
    
    .deadline-warning {
        margin: 10px auto;
        padding: 10px 16px;
        max-width: 280px;
        width: 90%;
    }
    
    .deadline-warning h3 {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .deadline-time {
        font-size: 1.2rem;
        letter-spacing: 1px;
        margin: 4px 0;
    }
    
    .ticket-warning {
        margin: 10px auto;
        padding: 8px 12px;
        max-width: 280px;
        width: 90%;
    }
    
    .ticket-warning h4 {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .ticket-warning p {
        font-size: 0.75rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .hero {
        padding: 40px 24px;
    }
    
    .hero::after {
        width: 280px;
        height: 140px;
        top: 10px;
    }
    
    .hero-content {
        padding-top: 160px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .event-details {
        gap: 16px;
    }
    
    .detail-item {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .registration-section,
    .stats-section,
    .attendees-section {
        padding: 28px 20px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .attendee-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .attendee-tags {
        align-self: flex-end;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .costume-preview {
        width: 90px;
        height: 120px;
        margin: 8px auto 10px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero::after {
        width: 180px;
        height: 80px;
        top: 15px;
    }
    
    .hero-content {
        padding-top: 110px;
    }
    
    .deadline-warning {
        max-width: 260px;
        padding: 8px 12px;
        margin: 8px auto;
        width: 85%;
    }
    
    .deadline-warning h3 {
        font-size: 0.75rem;
    }
    
    .deadline-time {
        font-size: 1.1rem;
        margin: 3px 0;
    }
    
    .ticket-warning {
        max-width: 260px;
        padding: 6px 10px;
        margin: 8px auto;
        width: 85%;
    }
    
    .ticket-warning h4 {
        font-size: 0.75rem;
    }
    
    .ticket-warning p {
        font-size: 0.7rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .event-details {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 360px) {
    .costume-preview {
        width: 80px;
        height: 100px;
        margin: 6px auto 8px;
    }
    
    .hero::after {
        width: 160px;
        height: 70px;
        top: 20px;
    }
    
    .hero-content {
        padding-top: 100px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .deadline-warning {
        max-width: 240px;
        width: 80%;
        padding: 6px 10px;
        margin: 6px auto;
    }
    
    .ticket-warning {
        max-width: 240px;
        width: 80%;
        padding: 5px 8px;
        margin: 6px auto;
    }
}

/* Halloween special effects */
.skull-icon {
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.6));
}

.zombie-text {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Pulsing effect for important elements */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(25, 118, 210, 0.3); }
    50% { box-shadow: 0 0 30px rgba(25, 118, 210, 0.6); }
}

.submit-btn:hover {
    animation: pulse-glow 2s infinite;
}
