/* PALETA DE COLORES COMPLEMENTARIOS GASTRONÓMICOS */
:root {
    --bg-principal: #16121e;       
    --bg-card: #211b2d;            
    --texto-claro: #f5f5f7;        
    --texto-mutado: #b0a8ba;       
    --acento-albahaca: #81c784;    
    --borde-complemento: #3a2f55;  
}

* {
    box-sizing: border-box;
}

body { 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    margin: 0; 
    padding: 15px; 
    background-color: var(--bg-principal); 
    color: var(--texto-claro); 
    line-height: 1.5;
}

/* CABECERA ESTILIZADA */
header { 
    text-align: center; 
    padding: 35px 0 25px 0; 
    border-bottom: 1px solid var(--borde-complemento); 
}

header h1 {
    margin: 0 0 8px 0;
    font-size: 2.2em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--texto-claro);
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

header p {
    margin: 5px 0;
    font-size: 0.9em;
    color: var(--texto-mutado);
    letter-spacing: 0.5px;
}

/* CARTEL DE DELIVERY DESTACADO */
.banner-delivery {
    background-color: var(--borde-complemento);
    color: var(--acento-albahaca);
    padding: 11px;
    border-radius: 8px;
    margin: 18px auto 5px auto;
    max-width: 90%;
    font-size: 0.9em;
    font-weight: bold;
    border: 1px dashed var(--acento-albahaca);
}

/* BOTÓN DESPLEGABLE (ACORDEÓN) */
.boton-categoria {
    background-color: var(--bg-card);
    color: var(--acento-albahaca);
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid var(--borde-complemento);
    border-radius: 8px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.boton-categoria:active {
    background-color: var(--borde-complemento);
}

.boton-categoria::after {
    content: '▼';
    font-size: 0.8em;
    color: var(--texto-mutado);
    transition: transform 0.2s ease;
}

.boton-categoria.activo::after {
    content: '▲';
    color: var(--acento-albahaca);
}

/* CONTENEDOR OCULTO */
.contenido-categoria {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out; 
    padding: 0 5px;
}

.item { 
    background: var(--bg-card); 
    padding: 16px; 
    margin: 15px 0; 
    border-radius: 8px; 
    border-left: 4px solid var(--acento-albahaca); 
}

.item-linea { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    font-weight: bold; 
    font-size: 1.1em;
    flex-wrap: wrap;
    gap: 6px;
}

.precio {
    color: var(--acento-albahaca); 
    text-align: right;
}

.descripcion { 
    font-size: 0.9em; 
    color: var(--texto-mutado); 
    margin: 8px 0 0 0; 
}

.variantes { 
    font-size: 0.85em; 
    color: var(--texto-claro); 
    margin-top: 10px; 
    padding-top: 8px;
    border-top: 1px dashed var(--borde-complemento);
}

.variante-linea {
    margin-bottom: 4px;
}

/* ---------------------- */
/* CARRUSEL POR CATEGORÍAS */
/* ---------------------- */
.titulo-carrusel {
    margin: 25px 0 12px 0;
    color: var(--acento-albahaca);
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px dashed var(--borde-complemento);
    padding-top: 15px;
}

.carrusel-contenedor {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.carrusel-contenedor img {
    height: 160px;
    width: auto;
    border-radius: 10px;
    object-fit: cover;
    scroll-snap-align: start;
    border: 2px solid var(--borde-complemento);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Barra de desplazamiento más fina */
.carrusel-contenedor::-webkit-scrollbar {
    height: 6px;
}
.carrusel-contenedor::-webkit-scrollbar-thumb {
    background: var(--borde-complemento);
    border-radius: 3px;
}
.carrusel-contenedor::-webkit-scrollbar-track {
    background: var(--bg-card);
}

/* ---------------------- */
/* 🎠 CARRUSEL COCINA DE AUTOR - CORREGIDO */
/* ---------------------- */
.carrusel-autor {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin: 25px 0;
    border: 1px solid var(--borde-complemento);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    background: var(--bg-card);
}

.carrusel-contenedor-autor {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Ocultar barra de desplazamiento */
.carrusel-contenedor-autor::-webkit-scrollbar {
    display: none;
}

.diapositiva {
    min-width: 100%;
    scroll-snap-align: start;
    position: relative;
    height: 220px;
}

.diapositiva img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 👈 ESTA ES LA CLAVE: muestra la imagen completa sin recortar */
  background-color: var(--bg-card); /* Fondo del mismo color que la tarjeta si sobra espacio */
  opacity: 0.55; /* Mantenemos la visibilidad que te gustó */
}

/* Fondo más oscuro y texto más nítido */
.texto-sobre-imagen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: rgba(22, 18, 30, 0.75); /* Fondo semitransparente más fuerte */
}

.texto-sobre-imagen h2 {
    color: var(--acento-albahaca);
    margin: 0 0 12px;
    font-size: 1.3em;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7); /* Sombra para que no se mezcle */
}

.texto-sobre-imagen p {
    color: var(--texto-claro);
    font-style: italic;
    margin: 0;
    line-height: 1.6;
    font-size: 1em;
    max-width: 92%;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8); /* Más nitidez */
}

/* Puntos de navegación más visibles */
.puntos-navegacion {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
}

.punto {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--texto-mutado);
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.punto.activo {
    background: var(--acento-albahaca);
    transform: scale(1.3);
}

/* SECCIÓN DE CONTACTO Y UBICACIÓN */
.seccion-contacto {
    margin-top: 40px;
    padding: 20px 10px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--borde-complemento);
    text-align: center;
}

.seccion-contacto h3 {
    margin: 0 0 15px 0;
    color: var(--acento-albahaca);
    font-size: 1.2em;
    text-transform: uppercase;
}

.enlace-contacto {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-principal);
    color: var(--texto-claro);
    text-decoration: none;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95em;
    border: 1px solid var(--borde-complemento);
    transition: background-color 0.2s;
}

.enlace-contacto:active {
    background-color: var(--borde-complemento);
    color: var(--acento-albahaca);
}

.icono-contacto {
    margin-right: 10px;
    font-size: 1.2em;
}

footer { 
    text-align: center; 
    margin: 40px 0 20px 0; 
    font-size: 0.8em; 
    color: var(--texto-mutado); 
    border-top: 1px solid var(--borde-complemento);
    padding-top: 20px;
}

/* AJUSTES FINALES PARA MÓVILES */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.7em;
    }
    .boton-categoria {
        font-size: 1em;
        padding: 12px;
    }
    .item-linea {
        font-size: 1em;
    }
    .texto-sobre-imagen p {
        font-size: 0.95em;
    }
}
.enlace-consulta {
  color: var(--acento-albahaca);
  text-decoration: none;
  cursor: pointer;
}
.enlace-consulta:hover,
.enlace-consulta:active {
  text-decoration: underline;
}
/* Botón volver arriba */
.boton-arriba {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--acento-albahaca);
  color: var(--bg-principal);
  font-size: 20px;
  font-weight: bold;
  border: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
  cursor: pointer;
  z-index: 999;
  display: none;
  transition: opacity 0.3s ease;
}
.boton-arriba.mostrar {
  display: block;
  opacity: 0.9;
}
.boton-arriba:active {
  opacity: 1;
  transform: scale(0.95);
}
/* Etiquetas: Nuevo / Destacado / Plato del día */
.etiqueta {
  display: inline-block;
  font-size: 0.75em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.etiqueta.nuevo {
  background: #ffc107;
  color: #1a1a1a;
}
.etiqueta.destacado {
  background: #f44336;
  color: white;
}
.etiqueta.dia {
  background: #9c27b0;
  color: white;
}
