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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a2e;
    color: #fff;
    overflow: hidden;
}

#app {
    width: 100vw;
    height: 100vh;
    position: relative;
}

.screen {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
}

.screen.active {
    display: flex;
}

/* ===== PANTALLA DE INICIO ===== */
.inicio-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.inicio-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inicio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.8), rgba(139, 0, 0, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 80px;
    font-weight: 900;
    letter-spacing: 10px;
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.inicio-overlay h1 {
    font-size: 36px;
    font-weight: 300;
    text-align: center;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, #dc2626, #7f1d1d);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.logo-small {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 4px;
}

.header h2 {
    font-size: 28px;
    font-weight: 600;
}

/* ===== CONTENT ===== */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    background: #16213e;
}

/* ===== FOOTER ===== */
.footer {
    background: #0f1624;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

/* ===== BOTONES ===== */
.btn-primary, .btn-secondary {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: scale(1.05);
}

.btn-primary:disabled {
    background: #555;
    cursor: not-allowed;
    transform: scale(1);
}

.btn-secondary {
    background: #374151;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

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

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

/* ===== PELÍCULAS ===== */
.peliculas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.pelicula-card {
    background: #1f2937;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.pelicula-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.4);
}

.pelicula-poster {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.pelicula-info {
    padding: 20px;
}

.pelicula-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.pelicula-info .genero {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 8px;
}

.pelicula-info .duracion {
    color: #dc2626;
    font-weight: 600;
}

/* ===== HORARIOS ===== */
#horarios-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dia-horarios {
    background: #1f2937;
    border-radius: 12px;
    padding: 20px;
}

.dia-horarios h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #dc2626;
}

.horarios-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.horario-card {
    background: #374151;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.horario-card:hover {
    background: #4b5563;
    border-color: #dc2626;
    transform: scale(1.05);
}

.horario-card .hora {
    font-size: 28px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 8px;
}

.horario-card .sala {
    font-size: 16px;
    color: #9ca3af;
}

.horario-card .formato {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: #dc2626;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== BUTACAS ===== */
.funcion-info {
    background: #1f2937;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 16px;
}

.pantalla-cine {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    padding: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 20px;
    border-radius: 8px 8px 50% 50%;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.mapa-butacas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 30px;
}

.fila-butacas {
    display: flex;
    gap: 10px;
    align-items: center;
}

.fila-letra {
    width: 30px;
    text-align: center;
    font-weight: 700;
    color: #dc2626;
}

.butaca {
    width: 45px;
    height: 45px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid transparent;
}

.butaca.disponible {
    background: #4ade80;
}

.butaca.disponible:hover {
    background: #22c55e;
    transform: scale(1.1);
}

.butaca.ocupada {
    background: #6b7280;
    cursor: not-allowed;
}

.butaca.seleccionada {
    background: #dc2626;
    border-color: #fff;
    transform: scale(1.1);
}

.leyenda {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding: 20px;
    background: #1f2937;
    border-radius: 8px;
}

.leyenda-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.butaca-mini {
    width: 30px;
    height: 30px;
    border-radius: 6px 6px 0 0;
}

.butacas-seleccionadas {
    background: #1f2937;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

#butacas-list {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.butaca-tag {
    background: #dc2626;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* ===== TARIFAS ===== */
.tarifas-info {
    background: #1f2937;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 18px;
}

.tarifas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tarifa-card {
    background: #1f2937;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.tarifa-card:hover {
    border-color: #dc2626;
}

.tarifa-card h4 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #dc2626;
}

.tarifa-card .precio {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.tarifa-card .descripcion {
    color: #9ca3af;
    margin-bottom: 20px;
    font-size: 14px;
}

.cantidad-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.btn-cantidad {
    width: 40px;
    height: 40px;
    border: none;
    background: #dc2626;
    color: white;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cantidad:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

.btn-cantidad:disabled {
    background: #555;
    cursor: not-allowed;
    transform: scale(1);
}

.cantidad-display {
    font-size: 32px;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
}

.tarifas-summary {
    background: #1f2937;
    padding: 25px;
    border-radius: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #374151;
    font-size: 18px;
}

.summary-row.total {
    border-bottom: none;
    font-size: 24px;
    font-weight: 700;
    color: #dc2626;
    padding-top: 20px;
}

/* ===== CONFITERÍA ===== */
.confiteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.producto-card {
    background: #1f2937;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.producto-card:hover {
    border-color: #dc2626;
}

.producto-card .emoji {
    font-size: 60px;
    text-align: center;
    margin-bottom: 15px;
}

.producto-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
    text-align: center;
}

.producto-card .precio {
    font-size: 24px;
    font-weight: 700;
    color: #dc2626;
    text-align: center;
    margin-bottom: 20px;
}

.confiteria-summary {
    background: #1f2937;
    padding: 25px;
    border-radius: 12px;
}

/* ===== FACTURACIÓN ===== */
.facturacion-form {
    max-width: 600px;
    margin: 0 auto;
}

.tipo-comprobante {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    justify-content: center;
}

.tipo-comprobante label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 20px;
}

.tipo-comprobante input[type="radio"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.radio-label {
    padding: 12px 30px;
    background: #374151;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tipo-comprobante input[type="radio"]:checked + .radio-label {
    background: #dc2626;
}

.form-comprobante {
    display: none;
}

.form-comprobante.active {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #374151;
    border-radius: 8px;
    background: #1f2937;
    color: white;
}

.form-group input:focus {
    outline: none;
    border-color: #dc2626;
}

/* ===== PAGO ===== */
.pago-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.resumen-compra {
    background: #1f2937;
    padding: 30px;
    border-radius: 12px;
}

.resumen-compra h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #dc2626;
}

#resumen-detalle {
    margin-bottom: 20px;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #374151;
}

.total-final {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 28px;
    font-weight: 700;
    color: #dc2626;
    border-top: 3px solid #dc2626;
    margin-top: 20px;
}

.pinpad-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pinpad {
    background: #1f2937;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
}

.pinpad-screen {
    background: #0f1624;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
    min-height: 120px;
}

#pinpad-mensaje {
    font-size: 18px;
    margin-bottom: 15px;
}

#pinpad-monto {
    font-size: 32px;
    font-weight: 700;
    color: #dc2626;
}

.pinpad-animation {
    margin-bottom: 30px;
    text-align: center;
}

.card-slot {
    width: 80%;
    height: 60px;
    background: #374151;
    margin: 0 auto 20px;
    border-radius: 8px;
    border: 2px dashed #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-slot::before {
    content: "💳";
    font-size: 32px;
}

.contactless {
    position: relative;
    margin: 0 auto;
    width: 80px;
    height: 80px;
}

.wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid #dc2626;
    border-radius: 50%;
    opacity: 0;
    animation: wave-animation 2s infinite;
}

.wave:nth-child(2) {
    animation-delay: 0.5s;
}

.wave:nth-child(3) {
    animation-delay: 1s;
}

@keyframes wave-animation {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.btn-pagar {
    width: 100%;
    padding: 20px;
    font-size: 20px;
}

/* ===== CONFIRMACIÓN ===== */
.confirmacion-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    background: linear-gradient(135deg, #16213e, #0f1624);
}

.success-icon {
    width: 150px;
    height: 150px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: white;
    animation: success-pop 0.5s ease;
}

@keyframes success-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.confirmacion-container h1 {
    font-size: 48px;
}

.codigo-compra {
    background: #1f2937;
    padding: 30px 50px;
    border-radius: 12px;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 5px;
    border: 3px dashed #dc2626;
}

.mensaje-confirmacion {
    text-align: center;
    font-size: 20px;
    color: #9ca3af;
}

/* ===== LOADING ===== */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 9999;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #374151;
    border-top-color: #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .pago-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 50px;
    }
    
    .inicio-overlay h1 {
        font-size: 24px;
    }
    
    .peliculas-grid,
    .tarifas-grid,
    .confiteria-grid {
        grid-template-columns: 1fr;
    }
}
