body { font-family: sans-serif; margin: 0; padding: 0; min-height: 100vh; }
#info-container { max-width: 800px; margin: 0 auto; } /* Centrado horizontalmente */
.oculto-por-modal { display: none !important; }
#login-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 2000;
}
#login-frame {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 350px; height: 340px;
    border: none;
    background: #fff;
    box-shadow: 0 2px 12px #0003;
    border-radius: 10px;
}

/* Header Dulcería (similar a asientos pero con nombre propio) */
.header-dulceria {
    width: 100%;
    background: #004A8C;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 0 24px;
    box-sizing: border-box;
}
.header-dulceria .volver-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-right: 16px;
}
.header-dulceria .volver-btn svg {
    margin-right: 6px;
    font-size: 1.4em;
}
.header-dulceria .titulo-header {
    flex: 1;
    text-align: center;
    font-size: 1.45em;
    font-weight: bold;
    letter-spacing: 0.01em;
    font-family: "Montserrat", sans-serif;
}
.header-dulceria .acciones-header {
    display: flex;
    align-items: center;
    gap: 18px;
}
.header-dulceria .socio-display {
    font-size: 1.3em;
    border: 1px solid #fff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    background: rgba(255,255,255,0.08);
}
.header-dulceria .cerrar-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6em;
    cursor: pointer;
    margin-left: 10px;
    line-height: 1;
}
.espacio-header-dulceria { height: 60px; }

.dulceria-layout {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 60px);
    height: auto;
}
.info-funcion-dulceria-col {
    width: 250px;
    background: #F6F6F6;
    border-right: 1px solid #e0e4ea;
    padding: 32px 10px 24px 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
.dulceria-col {
    flex: 1;
    padding: 32px 32px 24px 32px;
    box-sizing: border-box;
    min-width: 0;
    background: #E7ECF0;
    display: flex;
    flex-direction: column;
}
@media (max-width: 900px) {
    .dulceria-layout { flex-direction: column; }
    .info-funcion-dulceria-col { width: 100%; border-right: none; border-bottom: 1px solid #e0e4ea; min-height: auto; }
    .dulceria-col { padding: 24px 8px; }
}

/* --- Info función/cine card estilos (copiados de asientos/entradas) --- */
.info-funcion-card {
    width: 100%;
    max-width: 220px;
    padding: 0 24px 12px 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    height: auto;
}
.info-funcion-card .portada-circular {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
    background: #eee;
    align-self: center;
}
.info-funcion-card .titulo-pelicula,
.info-funcion-card .formato-linea,
.info-funcion-card .cine-nombre,
.info-funcion-card .info-lista,
.info-funcion-card .info-lista li {
    text-align: left !important;
    align-items: flex-start;
    justify-content: flex-start;
}
.info-funcion-card .titulo-pelicula {
    color: #004A8C;
    font-family: "Montserrat", sans-serif;
    font-size: 1.5em;
    font-weight: 900;
    line-height: 28px;
    margin: 0 0 0.5em;
    text-align: left;
    width: 100%;
}
.info-funcion-card .formato-linea {
    font-size: 1em;
    margin-bottom: 0.7em;
    color: #222;
    text-align: left;
    width: 100%;
}
.info-funcion-card .clasificacion {
    color: #d32f2f;
    font-weight: bold;
    margin-right: 0.3em;
}
.info-funcion-card .cine-nombre {
    color: #092058;
    font-family: "Montserrat", sans-serif;
    font-size: 1.125em;
    font-weight: 900;
    margin-bottom: 0.7em;
    text-align: left;
    width: 100%;
}
.info-funcion-card .info-lista {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
.info-funcion-card .info-lista li {
    display: flex;
    align-items: center;
    font-size: 1em;
    margin-bottom: 0.4em;
    color: #222;
    text-align: left;
    padding-left: 0;
}
.info-funcion-card .info-lista li .icono {
    margin-right: 0.7em;
    font-size: 1.1em;
    width: 1.5em;
    min-width: 1.5em;
    text-align: left;
    color: #004A8C;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}
.info-funcion-card hr {
    width: 100%;
    border: none;
    border-top: 1px solid #e0e4ea;
    margin: 1.2em 0 0.5em 0;
}
/* --- Fin info-funcion-card --- */

/* Barra de progreso de pasos (igual que asientos.css) */
.progreso-pasos {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2em;
    margin-top: 0.5em;
    gap: 0;
    user-select: none;
}
.progreso-pasos .paso {
    display: flex;
    align-items: center;
    opacity: 0.35;
}
.progreso-pasos .paso.activo {
    opacity: 1;
}
.progreso-pasos .icono {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f4f7fa;
    border: 2px solid #004A8C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45em;
    color: #004A8C;
    box-sizing: border-box;
    transition: border 0.2s;
}
.progreso-pasos .paso:not(.activo) .icono {
    border: 2px solid #b0b8c1;
    color: #b0b8c1;
    background: #f4f7fa;
}
.progreso-pasos .linea {
    width: 48px;
    height: 2px;
    background: #b0b8c1;
    margin: 0 2px;
    display: inline-block;
}
.progreso-pasos .paso.activo ~ .paso .linea {
    background: #b0b8c1;
}
.progreso-pasos .paso.activo .linea {
    background: #004A8C;
}
@media (max-width: 900px) {
    .progreso-pasos { margin-bottom: 1.2em; }
    .progreso-pasos .linea { width: 28px; }
    .progreso-pasos .icono { width: 32px; height: 32px; font-size: 1.1em; }
}

/* Estilos para la barra de categorías de dulcería */
.dulceria-categorias-barra {
    margin-bottom: 24px;
}
.dulceria-categoria-btn {
    outline: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
}
.dulceria-categoria-btn .fa-solid,
.dulceria-categoria-btn .fa-regular {
    font-size: 1.5em; /* reducido */
    margin-bottom: 5px;
    margin-top: 8px; /* margen superior agregado */
    color: #004395 !important;
    transition: color 0.2s;
}
.dulceria-categoria-btn.activa .fa-solid,
.dulceria-categoria-btn.activa .fa-regular {
    color: #004395 !important;
}
.dulceria-categoria-btn .dulceria-categoria-underline {
    background: #004395;
}
.dulceria-categoria-btn:hover .fa-solid,
.dulceria-categoria-btn:hover .fa-regular {
    color: #004395 !important;
}
.dulceria-categoria-btn:hover::after,
.dulceria-categoria-btn.activa::after {
    content: '';
    display: block;
    height: 3px;
    width: 32px;
    background: #004395;
    margin-top: 8px;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -5px;
    
}
.dulceria-categoria-btn span {
    display: block;
}
@media (max-width: 900px) {
    .dulceria-categorias-barra {
        gap: 12px;
        margin-bottom: 12px;
    }
    .dulceria-categoria-btn .fa-solid,
    .dulceria-categoria-btn .fa-regular {
        font-size: 1em; /* también más pequeño en móvil */
    }
}

/* Estilos Grid Productos */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}
@media (max-width: 768px) {
    .productos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .productos-grid { grid-template-columns: 1fr; }
}

/* Card Producto */
.producto-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    justify-content: space-between;
    box-sizing: border-box;
}
.producto-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.producto-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin: 0 auto 16px auto;
    display: block;
}
.producto-info {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.producto-titulo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.3;
}
.producto-desc {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.4;
}
.producto-precio-row {
    width: 100%;
    border-top: 1px solid #eee;
    padding-top: 12px;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.producto-precio-label {
    font-size: 0.95em;
    color: #555;
}
.producto-precio-valor {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25em;
    color: #333;
}
.btn-agregar-producto {
    width: 100%;
    background: #004A8C;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}
.btn-agregar-producto:hover {
    background: #003366;
}
.etiqueta-socio {
    font-size: 0.85em;
    color: #d32f2f;
    font-weight: bold;
    margin-bottom: 8px;
}
.puntos-info {
    font-size: 0.85em;
    color: #004A8C;
    margin-bottom: 8px;
}

/* Controles cantidad */
.producto-contador-container {
    width: 100%;
    margin: 10px 0 16px 0;
    text-align: center;
}
.producto-contador {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}
.btn-count {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #004A8C;
    background: #fff;
    color: #004A8C;
    font-weight: bold;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-count:hover { background: #f0f8ff; }
.count-display {
    font-weight: bold;
    font-size: 1.2em;
    width: 30px;
    text-align: center;
}
.max-msg { font-size: 0.8em; color: #777; margin-top: 4px; }
.acciones-botones {
    display: flex;
    gap: 10px;
    width: 100%;
}
.btn-aceptar, .btn-cancelar {
    flex: 1;
    padding: 10px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}
.btn-aceptar { background: #004A8C; color: #fff; }
.btn-cancelar { background: #e0e0e0; color: #333; }
.btn-aceptar:hover { background: #003366; }
.btn-cancelar:hover { background: #d0d0d0; }

/* Estilos Carrito (Orden) */
#orden-dulceria {
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
    padding-top: 24px;
}
.orden-titulo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5em;
    color: #000;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.orden-titulo i {
    font-size: 0.8em;
    border: 2px solid #000;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.orden-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.orden-items-container {
    flex: 1;
    background: #F4F6F8;
    border-radius: 8px;
    padding: 20px;
    min-height: 100px;
}
.orden-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95em;
    color: #000;
}
.orden-item:last-child { border-bottom: none; }
.orden-item-nombre { flex: 1; text-align: left; }
.orden-item-precio { margin: 0 20px; }
.orden-item-delete {
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.1em;
}
.orden-item-delete:hover { color: #d32f2f; }

.orden-botones-container {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.btn-orden-completada {
    background: #D70242;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    width: 100%;
}
.btn-orden-completada:hover { background: #b00236; }
.btn-orden-completada:disabled { background: #ccc; cursor: not-allowed; }

.btn-cancelar-orden {
    background: #fff;
    color: #004A8C;
    border: 1px solid #004A8C;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    width: 100%;
}
.btn-cancelar-orden:hover { background: #f0f8ff; }

@media (max-width: 768px) {
    .orden-layout { flex-direction: column; }
    .orden-botones-container { width: 100%; }
}
