@charset "UTF-8";

/* ==========================================
   1. TIPOGRAFÍAS Y MEDIA QUERIES (RESPONSIVE)
   ========================================== */
@media (max-width: 1200px) {
    h1 { font-size: 2.3em; }
    h2 { font-size: 1.7em; }
}

@media (max-width: 600px) {
    .fuente { font-size: 0.6em; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.9em; }
}

@media (max-width: 320px) {
    h1 { font-size: 1.6em; }
    h2 { font-size: 1.4em; }
}

/* ==========================================
   2. ESTRUCTURA Y FONDO GENERAL (CORRECCIÓN iOS)
   ========================================== */
body {
    margin: 0;
    padding: 0;
    background-color: #eef2f5;
}

/* Capa fija de fondo independiente para evitar tirones en Safari / Brave iOS */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;

    background-image: url("../img/background.jpg"); 
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

/* Contenedor lateral derecho (Index) */
.contenido_der {
    /*background: rgba(255, 255, 255, 0.85) !important;*/
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    color: #000000 !important;
    box-sizing: border-box;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.footer {
    background-color: #000000;
    color: #ffffff;
}

/* ==========================================
   3. CABECERA Y ENCABEZADOS
   ========================================== */
.cabecera-container {
    padding-top: 65px;
    margin-bottom: 10px;
}

.titulo-principal {
    font-size: 2.3em;
    font-weight: 800;
    color: #b8d2ff;
    margin-bottom: 8px;
}

.bloque-telefono {
    margin: 10px 0;
}

.btn-telefono {
    display: inline-block;
    background-color: #3182ce;
    color: #ffffff !important;
    font-size: 1.25em;
    font-weight: bold;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
    transition: all 0.2s ease-in-out;
}

.btn-telefono:hover {
    background-color: #2b6cb0;
    transform: translateY(-2px);
}

.bloque-redes-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 10px 0 15px 0;
    font-weight: bold;
    color: #b8d2ff;
}

.img-instagram {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    margin-left: 4px;
}

.link-menu-precios {
    color: #b8dbff !important;
    text-decoration: none !important;
    font-size: 1.1em;
}

.bloque-hace-pedido {
    margin-top: 25px;
    margin-bottom: 15px;
}

.bloque-hace-pedido h2 {
    font-size: 1.8em;
    font-weight: 900;
    color: #b8d2ff;
    margin: 0;
}

.bloque-hace-pedido h3 {
    font-size: 1.2em;
    font-weight: bold;
    color: #e53e3e;
    margin-top: 4px;
}

/* ==========================================
   4. PRODUCTOS (PIZZAS Y PRECIOS)
   ========================================== */
#pizza, 
#precio, 
#precioDigi, 
#pizzaPromoRandom, 
#cantPromoRandom {
    font-family: Georgia, 'Times New Roman', serif !important;
    font-style: normal !important;
}

#pizza {
    font-size: 2.1em;
    color: #e63946 !important;
    font-weight: bold;
    margin: 6px 0;
}

#precio {
    font-size: 2.4em;
    color: #1d3557;
    font-weight: bold;
}

#precioDigi {
    font-size: 1.3em;
    color: #457b9d;
    font-weight: 600;
}

#descripcion {
    font-size: 1.05em;
    color: #4a5568;
    font-style: italic;
    margin: 8px 0 12px 0;
}

/* Tarjeta vertical estándar (.item) */
.item {
    text-align: center;
    background: rgba(255, 255, 255, 0.85) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 20px 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-sizing: border-box;
}

.product-holder {
    position: relative;
    display: inline-block;
}

.item .img {
    width: 100%;
    height: auto;
}

.imgSinStock {
    position: absolute;
    top: 0%;
    width: 85%;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

.hrProductos {
    display: none;
}

.item .btn {
    border-radius: 25px !important;
    font-weight: bold !important;
    padding: 8px 20px !important;
    font-size: 1em !important;
}

/* ==========================================
   5. TABLA DE HORARIOS
   ========================================== */
.tabla-horarios-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    margin: 15px 0;
}

.tabla-horarios {
    margin-bottom: 0;
    background-color: rgba(255, 255, 255, 0.85) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.tabla-horarios th {
    background-color: rgba(72, 117, 155, 0.9);
    color: #ffffff;
    font-weight: 600;
    border: none !important;
}

.tabla-horarios td {
    text-align: center;
    vertical-align: middle !important;
    padding: 10px 8px !important;
}

tr.dia-activo td {
    background-color: rgba(191, 188, 243, 0.85) !important;
    color: #155724 !important;
    font-weight: bold;
}

.texto-cerrado {
    color: #dc3545;
    font-weight: bold;
}

/* ==========================================
   6. TARJETAS HORIZONTALES Y LAYOUT FLEX
   ========================================== */
.fantasma {
    padding-top: 80px;
}

.items {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    justify-content: center;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 16px;
    /*background: rgba(255, 255, 255, 0.85) !important;*/
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    /*border: 1px solid rgba(255, 255, 255, 0.7);*/
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.items .item:first-child {
    flex: 0 0 auto;
}

.items .item:nth-child(2) {
    flex: 1;
    padding-left: 15px;
}

.catalogo-container {
    padding-top: 75px;
    padding-bottom: 40px;
}

.flex-row-grid {
    display: flex;
    flex-wrap: wrap;
}

.col-grid-item {
    display: flex;
    margin-bottom: 15px;
}

.producto-card-horizontal {
    background: rgba(255, 255, 255, 0.85) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 10px;
    gap: 12px;
}

.producto-imagen-wrapper {
    position: relative;
    width: 125px;
    height: 125px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background-color: rgba(247, 250, 252, 0.5);
}

.img-producto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-sinstock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 10;
}

.producto-contenido {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    text-align: left;
}

.precio-efectivo {
    font-size: 1.5em !important;
    color: #1d3557;
    font-weight: bold;
    line-height: 1.1;
    font-family: Georgia, 'Times New Roman', serif !important;
}

.precio-digital {
    font-size: 1em !important;
    color: #457b9d;
    font-weight: 600;
    margin-top: 1px;
    font-family: Georgia, 'Times New Roman', serif !important;
}

.label-precio {
    font-size: 0.75em;
    font-weight: normal;
    color: #718096;
}

.producto-titulo {
    font-size: 1.5em !important;
    color: #e63946 !important;
    font-weight: bold;
    margin: 3px 0 !important;
    font-family: Georgia, 'Times New Roman', serif !important;
}

.producto-descripcion {
    font-size: 0.88em !important;
    color: #4a5568 !important;
    font-style: italic !important;
    margin: 2px 0 8px 0 !important;
    line-height: 1.2;
}

.btn-agregar-carrito {
    width: 100%;
    border-radius: 20px !important;
    font-weight: bold !important;
    font-size: 0.9em !important;
    padding: 6px 12px !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.btn-disponible {
    background-color: #25d366 !important;
    color: #ffffff !important;
}

.btn-sinstock {
    background-color: #cbd5e0 !important;
    color: #718096 !important;
    cursor: not-allowed;
}

@media (min-width: 768px) {
    .producto-imagen-wrapper {
        width: 150px;
        height: 150px;
    }
    .producto-titulo {
        font-size: 1.7em !important;
    }
    .precio-efectivo {
        font-size: 1.7em !important;
    }
}

@media (min-width: 1200px) {
    .items {
        width: 50%;
        margin-right: 25%;
        margin-left: 25%;
    }
}

/* ==========================================
   7. SECCIÓN NOTICIAS Y AVISOS
   ========================================== */
.noticias-card {
    /*background: rgba(255, 255, 255, 0.85) !important;*/
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 20px;
    margin: 15px auto;
    max-width: 420px;
    /*border: 1px solid rgba(255, 255, 255, 0.7);*/
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.noticias-alerta {
    background-color: rgba(254, 226, 226, 0.9);
    border: 1px solid #fca5a5;
    border-radius: 14px;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.alerta-badge {
    display: inline-block;
    background-color: #dc2626;
    color: #ffffff;
    font-size: 0.75em;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.alerta-titulo {
    color: #991b1b !important;
    font-size: 1.5em !important;
    font-weight: 900 !important;
    margin: 4px 0 0 0 !important;
    letter-spacing: 1px;
}

.noticias-divider {
    border: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 15px 0;
}

.noticias-envio {
    padding: 5px 0;
}

.envio-titulo {
    font-size: 1.3em !important;
    font-weight: 800 !important;
    color: #1d3557 !important;
    margin: 0 0 4px 0 !important;
}

.envio-icono {
    font-size: 1.1em;
}

.envio-zona {
    font-size: 0.95em;
    color: #4a5568;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.envio-zona small {
    font-size: 0.85em;
    color: #718096;
    font-style: italic;
}

.envio-precio-box {
    display: inline-block;
    background-color: #1d3557;
    color: #ffffff;
    padding: 8px 22px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(29, 53, 87, 0.25);
}

.envio-precio {
    font-size: 1.5em;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-family: Georgia, 'Times New Roman', serif !important;
}
