/* Primero define la fuente personalizada */
@font-face {
    font-family: 'Alberdi'; /* Nombre que le darás a tu fuente */
    src: url('dk.woff2') format('woff2'),
         url('dk.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
/* =========================
   Fuente principal
========================= */
@font-face {
  font-family: 'Alberdini';
  src: url('rrbb.woff2') format('woff2'),
       url('rrbb.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Arial', sans-serif;
    }
    
    html {
        scroll-behavior: smooth;
        overflow-x: hidden;
    }
    
    body {
        overflow-x: hidden;
        background: #f5f5f5;
    }

    /* Menú de navegación mejorado */
    .nav-menu {
        position: fixed;
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10000000;
        background-color: rgba(255, 255, 255, 0.98);
        border-radius: 25px;
        padding: 10px 25px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(8px);
        display: inline-block;
        transition: all 0.3s ease;
    }

    .nav-menu ul {
        list-style: none;
        display: flex;
        gap: 20px;
        margin: 0;
    }

    .nav-menu a {
        text-decoration: none;
        color: #333;
        font-size: 15px;
        font-weight: 600;
        padding: 8px 15px;
        border-radius: 20px;
        transition: all 0.3s ease;
    }

    .nav-menu a:hover {
        background-color: #cc0000;
        color: white;
        transform: translateY(-2px);
    }

    /* Sección Home - Estilo mejorado */


    /* Ajustes para el logo */
.floating-logo {
    width: min(90%, 600px);
    max-height: 200px;
    object-fit: contain;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.3));
    margin: 0 0 20px 0; /* Reducimos margen inferior */
    transform: translateY(-30%); /* Subimos el logo */
}
    #home {
        background-color: #f0e6d0;
        position: relative;
        overflow: hidden;
    }

    #home::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: 
            radial-gradient(circle at center, 
                rgba(255, 255, 255, 0.15) 1px, 
                transparent 2px);
        background-size: 30px 30px;
        z-index: 1;
        pointer-events: none;
    }

    .video-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
        opacity: 0.95;
        mix-blend-mode: soft-light;
    }


.home-content p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    line-height: 1.6;
    font-weight: 500;
    font-family: 'Alberdi', cursive; /* Nueva fuente */
    font-weight: 700; /* Negrita */
   text-align: center;    /* Centra el texto dentro del contenedor */
color: #d73728;
}



    /* Modifica el h1 original */
    .home-content h1 {
        display: none; /* Oculta el texto original */
    }

.home-content p {
    font-size: 0.8rem;
    max-width: 700px;
    margin: 0 auto;
    padding: 15px 25px; /* Reducimos padding vertical */
    background: rgba(240, 230, 208, 0.4);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    line-height: 1.6;
    font-weight: 500;
}

    /* Secciones generales */
    .section {
        min-height: 100vh;
        width: 100%;
        position: relative;
        padding: 100px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Sección Nosotros */
    #nosotros {
        background-color: #005DAB;
        color: white;
        flex-direction: column;
    }

    .gallery-container {
        width: 100%;
        max-width: 800px;
        height: 400px;
        position: relative;
        margin-bottom: 40px;
    }

    .gallery-slide {
        position: absolute;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        border-radius: 15px;
    }

    .gallery-slide.active {
        opacity: 1;
    }

    .nosotros-text {
        max-width: 800px;
        padding: 0 20px;
        text-align: center;
    }

    .nosotros-text h2 {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }

    .nosotros-text p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    /* Sección Carta */
    #carta {
        background-color: #FDB740 ;
        padding: 80px 20px;
    }

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

    .menu-container h2 {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 50px;
        color: #333;
    }

    .menu-section {
        margin-bottom: 50px;
    }

    .menu-category {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

    .menu-item {
        display: flex;
        margin-bottom: 30px;
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }

    .menu-item:hover {
        transform: translateY(-5px);
    }

    .menu-item-img {
        width: 200px;
        height: 150px;
        background-size: cover;
        background-position: center;
        flex-shrink: 0;
    }

    .menu-item-content {
        padding: 20px;
        flex-grow: 1;
    }

    .menu-item-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .menu-item h4 {
        font-size: 1.2rem;
        color: #333;
    }

    .menu-item-price {
        font-size: 1.1rem;
        font-weight: bold;
        color: #FF0000;
    }

    .menu-item p {
        color: #555;
        line-height: 1.5;
        font-size: 0.95rem;
    }

    /* Sección Ubicación */
    #ubicacion {
        background-color: #58a6cf;
        flex-direction: column;
        padding: 80px 20px;
    }

    .map-container {
        width: 100%;
        max-width: 800px;
        height: 400px;
        margin-bottom: 40px;
    }

    .map-container iframe {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 15px;
    }

    .contact-info {
        max-width: 800px;
        width: 100%;
        padding: 30px;
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 15px;
        text-align: center;
    }

    .contact-info h2 {
        font-size: 2rem;
        margin-bottom: 30px;
        color: #333;
    }

    .contact-info h3 {
        font-size: 1.4rem;
        margin: 20px 0 10px;
        color: #333;
    }

    .contact-info p, .contact-info a {
        font-size: 1rem;
        color: #555;
        margin-bottom: 15px;
        text-decoration: none;
    }

/* Sección Tienda (compacta) */
#tienda {
  background-color: #d73728;
  padding: 32px 16px;              /* antes 80px 20px */
}

.store-container {
  width: 100%;
  max-width: 1200px;
  background-color: white;
  border-radius: 15px;
  padding: 18px;                   /* antes 30px */
  margin: 0 auto;                  /* centra el bloque por si faltaba */
}

.store-container h2 {
  text-align: center;
  font-size: 2rem;                 /* antes 2.5rem */
  margin-bottom: 14px;             /* antes 30px */
  color: #333;
}
#tienda.section { min-height: auto; display: block; }

/* Opcional: compactar un poco el widget de reseñas dentro de Tienda */
#tienda .gmw-container { padding: 12px; border-radius: 12px; }
#tienda .gmw-header { margin-bottom: 6px; }
#tienda .gmw-grid { gap: 8px; }

/* Responsive: aún más compacto en móviles */
@media (max-width: 768px) {
  #tienda { padding: 24px 12px; }
  .store-container { padding: 14px; }
  .store-container h2 { font-size: 1.6rem; margin-bottom: 10px; }
}

    /* Responsive Design */
    @media (max-width: 768px) {
        .nav-menu {
            top: 20px;
            padding: 8px 15px;
        }
        
        .nav-menu ul {
            gap: 10px;
        }
        
        .nav-menu a {
            font-size: 14px;
            padding: 6px 12px;
        }

        .home-content {
            padding-top: 100px;
        }

        .home-content h1 {
            font-size: 2.8rem;
            margin-bottom: 20px;
        }

        .home-content p {
            font-size: 1.1rem;
            padding: 15px;
        }

        .gallery-container {
            height: 300px;
        }

        .menu-item {
            flex-direction: column;
        }

        .menu-item-img {
            width: 100%;
            height: 200px;
        }
    }

    @media (max-width: 480px) {
        .nav-menu {
            width: 90%;
            padding: 6px 10px;
        }
        
        .nav-menu a {
            font-size: 12px;
            padding: 5px 8px;
        }

        .home-content h1 {
            font-size: 2.2rem;
        }

        .home-content p {
            font-size: 1rem;
        }

        .section {
            padding: 60px 15px;
        }

        .menu-item-img {
            height: 150px;
        }
    }
        /* Nuevos estilos para la tienda */
    .pizza-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        padding: 20px;
    }

    .pizza-item {
        background: white;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
        cursor: pointer;
    }

    .pizza-item:hover {
        transform: translateY(-5px);
    }

    .pizza-item img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .pizza-item h3 {
        padding: 15px;
        color: #333;
        font-size: 1.2rem;
        margin: 0;
    }

    .pizza-item p {
        padding: 0 15px 15px;
        color: #cc0000;
        font-weight: bold;
        margin: 0;
    }

    /* Carrito flotante */
    .cart-container {
        position: fixed;
        bottom: 30px;
        right: 30px;
        z-index: 1000;
        display: none;
    }

    .cart-button {
        background: #cc0000;
        color: white;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        position: relative;
    }

    .cart-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #fff;
        color: #cc0000;
        width: 25px;
        height: 25px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
        border: 2px solid #cc0000;
    }

    /* Modal del carrito */
    .cart-modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
        max-width: 400px;
        width: 90%;
        display: none;
        z-index: 1001;
    }

    .cart-modal h3 {
        margin: 0 0 20px;
        color: #333;
    }

    .cart-items {
        max-height: 300px;
        overflow-y: auto;
        margin-bottom: 20px;
    }

    .cart-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .cart-total {
        font-weight: bold;
        text-align: right;
        margin: 20px 0;
    }

    .send-order {
        background: #25D366;
        color: white;
        border: none;
        padding: 12px 20px;
        border-radius: 5px;
        cursor: pointer;
        width: 100%;
        font-size: 16px;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        display: none;
    }
          /* Nuevos estilos para el carrito */
        .input-group {
            margin-bottom: 20px;
        }
        
        #customerName {
            width: 100%;
            padding: 12px;
            border: 2px solid #ddd;
            border-radius: 25px;
            font-size: 16px;
            margin-bottom: 15px;
        }
        
        .cart-actions {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }
        
        .clear-cart {
            background: #e74c3c;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 5px;
            cursor: pointer;
            flex: 1;
            font-size: 16px;
            transition: all 0.3s ease;
        }
        
        .clear-cart:hover {
            background: #c0392b;
        }
        
        .send-order {
            background: #25D366;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 5px;
            cursor: pointer;
            flex: 1;
            font-size: 16px;
            transition: all 0.3s ease;
        }
        
        .send-order:hover {
            background: #128C7E;
        }

/* Habilitar overlay cuando esté activo */
.overlay.active { display: block; }

/* Modal de subproductos: oculto por defecto y centrado al activarse */
.subproduct-modal {
  display: none;               /* evita que salga "descolgado" */
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: min(92vw, 480px);
  max-height: 80vh;
  overflow: auto;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  z-index: 1002;
}
.subproduct-modal.active { display: block; }

.subproduct-modal h3 {
  font-family: 'Alberdi', cursive;
  color: #333;
  margin-bottom: 16px;
}
.subproduct-modal select {
  width: 100%;
  padding: 10px;
  margin: 6px 0 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
}
.subproduct-modal button {
  background: #cc0000;
  color: #fff;
  border: 0;
  padding: 10px 16px;
  border-radius: 24px;
  cursor: pointer;
  margin: 4px;
  font-size: 16px;
}
.subproduct-modal button:hover { background:#b30000; }