/* ============================================= */
/* ESTILOS GENERALES Y VARIABLES */
/* ============================================= */
:root {
    --primary-color: #e63946;
    --primary-dark: #d7d7dd;
    --light-color: #d7d7dd;
    --dark-color: #333;
    --gray-color: #666;
    --success-color: #4CAF50;
    --error-color: #ff6b6b;
    --valid-color: #51cf66;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

/* QUITAMOS TODOS LOS MAX-WIDTH QUE ROMPEN EL GRID */
.container, .main-wrapper, main {
    width: 100% !important;
    max-width: none !important;
    padding: 0;
    margin: 0;
    margin-right: auto;
    text-align: center;
}

header {
    background: var(--primary-color);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}
:root {
            --overlay-color: rgba(0, 0, 0, 0.5); /* Color y opacidad del overlay (configurable) */
            --text-color: white; /* Color del texto */
            --font-family: Arial, sans-serif; /* Tipo de fuente */
            --font-size-h1: 4em; /* Tamaño de fuente para el título */
             --font-size-h2: 1em; /* Tamaño de fuente para el título */
            --font-size-p: 1.5em; /* Tamaño de fuente para el párrafo */
            --text-align: center; /* Alineación del texto */
        }

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.0rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 30px;
    
}

.cart-icon {
    background: none;
    border: none;
    color: white;
    font-size: 2.2rem;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s;
    margin-right: 30px;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Contenedor principal para la imagen y el texto */
.contenedor-imagen {
    position: relative; /* Permite posicionar el texto de manera absoluta dentro del contenedor */
    width: 1180px; /* Cambia este valor para ajustar el tamaño de la imagen (ej: 800px, 50%, etc.) */
    height: auto; /* Mantiene la proporción de la imagen */
    margin: 0 auto; /* Centra el contenedor */
    overflow: hidden; /* Oculta cualquier desbordamiento */
}

.adlam-display-regular {
    font-family: "ADLaM Display", system-ui;
    font-weight: 400;
    font-style: normal;
  }
  
/* GRID PERFECTO - EL ORIGINAL QUE FUNCIONABA EN TU PÁGINA */
.pizza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 20px;
}

/* Tablet - 2 columnas */
@media (max-width: 1200px) {
    .pizza-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
        padding: 40px 30px;
    }
}

/* Móvil - 1 columna */
@media (max-width: 600px) {
    .pizza-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
}

/* ============================================= */
/* TARJETAS - NORMALES Y MITAD Y MITAD */
/* ============================================= */
.pizza-card, .half-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pizza-card:hover, .half-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.pizza-card img, .half-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.pizza-card > div, .half-card > div {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pizza-card h3, .half-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.8em;
    text-align: center;
}

.half-card p {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    color: var(--gray-color);
    text-align: center;
}

.half-select {
    width: 100%;
    padding: 18px;
    margin: 12px 0;
    border: 2px solid #ddd;
    border-radius: 16px;
    font-size: 1.2em;
    background: white;
}



.pizza-card button, .add-half-btn {
    margin-top: auto !important;
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 28px;
    font-size: 1.6em;
    font-weight: bold;
    border: none;
    border-radius: 18px;
    cursor: pointer;
}

.pizza-card button:hover, .add-half-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    font-size: 1.0em;
    font-weight: bold;
}

.qty-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    font-size: 1.0em;
    cursor: pointer;
}

.minus { background: #ff4444; color: white; }
.plus { background: #4CAF50; color: white; }

.qty-display {
    min-width: 20px;
    text-align: center;
    font-size: 1.4em;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    padding: 18px;
    border-radius: 12px;
    margin: 12px 0;
    color: black;
}

.cart-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4em;
}

.trash { background: none; border: none; font-size: 1.8em; color: red; }

.totales {
    margin: 25px 0;
    font-size: 1.5em;
    text-align: right;
}

.totales label { font-size: 0.9em; display: block; margin: 10px 0; }
/* === BOTONES + Y - PERFECTAMENTE CENTRADOS === */


.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* === MODAL DEL CARRITO MEJORADO === */
#cartModal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: white;
    color: black;
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.cart-items-list { margin: 20px 0; }
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    padding: 18px;
    border-radius: 12px;
    margin: 12px 0;
    font-size: 1.1em;
}

.trash {
    background: #ff4444;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 50px;
    font-size: 1em;
    cursor: pointer;
}

.totales {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 15px;
    margin: 25px 0;
    text-align: right;
    font-size: 1.4em;
}

.totales div { margin: 8px 0; }
.gran-total { font-size: 2em !important; color: #e63946; margin-top: 15px; }

.form-cliente input {
    width: 100%;
    padding: 16px;
    margin: 12px 0;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 1.1em;
}

.botones-pago button {
    width: 100%;
    padding: 18px;
    margin: 10px 0;
    border: none;
    border-radius: 12px;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
}

.btn-bold { background: black; color: white; }
.btn-cash { background: #4CAF50; color: white; }
/* BOTÓN CERRAR MÁS GRANDE Y VISTOSO */
.btn-cerrar {
    width: 100% !important;
    background: #ff4444 !important;
    color: white !important;
    padding: 22px !important;
    margin: 20px 0 10px 0 !important;
    border: none !important;
    border-radius: 15px !important;
    font-size: 1.6em !important;
    font-weight: bold !important;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 68, 68, 0.4);
    transition: all 0.3s;
}

.btn-cerrar:hover {
    background: #ff2222 !important;
    transform: scale(1.05);
}
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 60px 0;
    margin-top: 100px;
}
/* TARJETAS MÁS COMPACTAS Y ELEGANTES SIN PRECIO */
.pizza-card > div, .half-card > div {
    padding: 18px !important;   /* antes era 25px */
}

.pizza-card h3, .half-card h3 {
    font-size: 1.6em !important;  /* un poco más pequeño */
    margin-bottom: 10px !important;
}

.quantity-controls {
    margin: 18px 0 !important;   /* reduce espacio */
}

/* Mitad y mitad un toque más compacto */
.half-card p {
    margin: 8px 0 12px 0;
    font-size: 1em;
}

.half-select {
    padding: 14px;
    margin: 8px 0;
}
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

       . body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f5f5f5;
        }
                   /*HERO SECTION*/

   .hero-section {
            background: linear-gradient(135deg, #ff0000, #cc0000); /* Rojo más intenso */
            color: rgb(255, 255, 255);
            text-align: center;
            padding: 40px 10px;
            margin-bottom: 30px;
            border-bottom: 4px solid rgb(255, 255, 255);
            position: relative;
            overflow: hidden;
            font-family: 'Arial', sans-serif; /* Fuente más moderna */
            font-weight: bolder;
        }
        .hero-container { 
            max-width: 100%; /* Aumentar el ancho para el aside */
            margin: 0 auto; 
            padding: 0 20px;
        }
        .hero-highlight h1 {
            font-size: 4.5em;
            margin-bottom: 10px;
            line-height: .9;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

          .hero-big {
            font-size: 2.5em;
            line-height: 1.1;
            margin-top: 10px;
        }

        .portions {
            font-size: 2.6em;
            color: #ffcc00; /* Amarillo para destacar */
            font-weight: bold;
            display: block;
            margin-top: 5px;
            text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
        }
 /* Nuevo contenedor Flexbox para el contenido principal y el aside */
        .hero-content-wrapper {
            display: flex;
            gap: 30px; /* Espacio entre los elementos */
            text-align: left;
        }


        /* Contenido principal */
        .hero-main-content {
            flex: 3; /* Ocupa 3/4 del espacio en escritorio */
            min-width: 0; /* Necesario para el flexbox */
            text-align: center; /* Centrar el contenido dentro de su columna */
        }

.hero-instructions {
            flex: 1; /* Ocupa 1/4 del espacio en escritorio */
            background-color: rgba(255, 255, 255, 0.95); /* Fondo blanco semi-transparente */
            color: #333; /* Texto oscuro */
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
            align-self: flex-start; /* Alineación superior */
            min-width: 250px;
        }

        .hero-instructions h2 {
            font-size: 1.8em;
            color: #ff0000; /* Rojo de la pizzería */
            margin-top: 0;
            margin-bottom: 20px;
            border-bottom: 2px solid #ff0000;
            padding-bottom: 10px;
            text-align: center;
        }

        .hero-instructions ol {
            list-style: none;
            padding: 0;
            counter-reset: instruction-counter;
        }

        .hero-instructions li {
            counter-increment: instruction-counter;
            margin-bottom: 15px;
            padding-left: 40px;
            position: relative;
            font-size: 1.1em;
            line-height: 1.4;
            font-weight: bold;
        }

        .hero-instructions li::before {
            content: counter(instruction-counter);
            position: absolute;
            left: 0;
            top: 0;
            background-color: #ff0000;
            color: white;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.1em;
            font-weight: bold;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }
        
        .hero-contact {
            margin: 40px 0;
        }
        .hero-contact p {
            font-size: 1.2em;
            margin-bottom: 15px;
        }
        .btn-whatsapp {
            display: inline-flex;
            align-items: center;
            background: #25d366; /* Verde WhatsApp */
            color: white;
            padding: 18px 30px;
            font-size: 1.5em;
            border-radius: 50px;
            text-decoration: none;
            font-weight: bold;
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
            transition: all 0.3s;
        }
        .btn-whatsapp:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
        }
        .btn-whatsapp i { 
            margin-right: 10px; 
            font-size: 1.2em; 
        }


        /* Responsive */
        @media (max-width: 1024px) {
            .hero-content-wrapper {
                flex-direction: column; /* Apilar en pantallas más pequeñas */
                text-align: center;
            }
            .hero-main-content {
                order: 2; /* Mover el contenido principal abajo */
            }
            .hero-instructions {
                order: 1; /* Mover las instrucciones arriba */
                flex: none;
                width: 100%;
                max-width: 500px; /* Limitar el ancho del aside en móvil */
                margin: 0 auto 30px auto;
                align-self: center;
            }
            .hero-highlight h1 { 
                font-size: 3.5em; 
            }
            .hero-big { 
                font-size: 2em; 
            }
            .hero-text, .hero-menu { 
                font-size: 1.3em; 
            }
            .btn-whatsapp { 
                font-size: 1.3em; 
                padding: 15px 25px; 
            }
        }

        @media (max-width: 768px) {
            .hero-highlight h1 { 
                font-size: 2.8em; 
            }
            .hero-big { 
                font-size: 1.6em; 
            }
            .hero-text, .hero-menu { 
                font-size: 1.2em; 
            }
            .btn-whatsapp { 
                font-size: 1.2em; 
                padding: 12px 20px; 
            }
        }
