
/* ------------------------------- */
/*        Hero de la Carta        */
/* ------------------------------- */
.hero-carta {
  position: relative;
  width: 100%;
  height: 55vh;
  overflow: hidden;
}

.hero-carta img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-title {
  font-size: 3.0rem;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
}
/* ------------------------------- */
/*      Cabecera de la sección     */
/* ------------------------------- */
.carta-header {
  text-align: center;
  margin: 100px auto 60px auto;
  
}

/* ------------------------------- */
/*        Lista de platos          */
/* ------------------------------- */
.platos-lista {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 5rem;
  row-gap: 3rem;
}

/* ------------------------------- */
/*     Cada línea de plato         */
/* ------------------------------- */
.plato-linea {
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat', sans-serif;
}

/* Contenedor nombre + precio */
.plato-header {
  display: flex;
  align-items: center;
  position: relative;
  
}

/* Línea de puntos más gruesos y espaciados */
.plato-header::after {
  content: '';
  flex: 1;
  height: 2px;                              /* grosor de la línea de puntos */
  margin: 1.25rem ;
  order: 1;

  background: 
    repeating-linear-gradient(
      to right,
      #222,                /* color del punto */
      #222 2px,            /* grosor del punto */
      transparent 3px,     /* comienza el hueco */
      transparent 8px     /* longitud del hueco */
    )
    bottom left / 100% 3px no-repeat;
}


/* Nombre del plato */
.plato-nombre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  order: 0;
  z-index: 1;
}

/* Precio */
.plato-precio {
  font-family: 'Roboto', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #333;
  white-space: nowrap;
  order: 2;
  z-index: 1;
}

/* Descripción */
.plato-descripcion {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: #666;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.recomendado .plato-nombre::after {
  content: " ★ Recomendado";
  color: #dd5903;
  font-size: 1.1rem;
  margin-left: 0.5rem;
}


/* ------------------------------- */
/*       Tipografía de cabecera    */
/* ------------------------------- */
.carta-subtitulo {
  color: #dd5903;
  font-weight: bold;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  
}



.carta-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.1rem;
}

.carta-margen {
  height: 150px;
  
}


/* ------------------------------- */
/* Imagen separadora entre bloques */
/* ------------------------------- */
.divider-img {
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin: 10rem 0;
}

.divider-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ================== TEMA BASE ================== */
:root{
  --brand: #dd5903;
  --ink: #0f0f0f;
  --muted: #666;
  --bg: #fafafa;
  --radius: 0;         /* esquinas cuadradas */
  --gap: 1.25rem;
}

/* ================== SECCIONES ================== */
.seccion-testimonios,
.seccion-visita {
  padding: clamp(1.5rem, 5vw, 2rem) 1.25rem;
  background: var(--bg);
  color: var(--ink);
}

.container-testimonios,
.container-visita {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;   /* galería + texto */
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  
}

/* En “Visítanos” invertimos (texto primero, galería después) */
.container-visita {
  grid-template-columns: .85fr 1.15fr;
}

/* ================== GALERÍAS ================== */
.grid-imagenes {
  display: grid;
  gap: var(--gap);
}

/* Testimonios: 2x2 */
.testimonios-imagenes {
  grid-template-columns: repeat(2, 1fr);
}

/* Visítanos: HORIZONTAL en desktop (dos columnas) */
.visita-imagenes {
  grid-template-columns: repeat(2, 1fr);
}

.grid-imagenes img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* Proporciones */
.testimonios-imagenes img { aspect-ratio: 4 / 3; }
.visita-imagenes img     { aspect-ratio: 12 / 16; } /* apaisadas */

/* ================== TEXTO ================== */
.texto-testimonio,
.texto-visita {
  text-align:center;
}

/* Subtítulo con línea a ambos lados */
.subtitulo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  font-size: .92rem;
  color: var(--brand);
  margin: 0 0 .5rem 0;
  white-space: nowrap;
  text-align: center;
}
.subtitulo::before,
.subtitulo::after {
  content: "";
  display: block;
  width: 64px;
  height: 0;
  border-top: 1px solid currentColor;
  opacity: .9;
  text-align: center;
}

/* Títulos */
.seccion-testimonios h2,
.seccion-visita h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  text-transform: uppercase;
  margin: .25rem 0 .5rem;
  text-align: center;
}

/* Párrafos */
.seccion-testimonios p,
.seccion-visita p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1.25rem 0;
  text-align: center;
}

/* Botón/enlace */
.btn-link {
  display: inline-block;
  background-color: #dd5903;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 0px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.btn-link:hover {
  background-color: #e07b00;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 960px) {
  .container-testimonios,
  .container-visita {
    grid-template-columns: 1fr;   /* apilar */
  }

  /* Orden lectura en testimonios: imágenes primero */
  .container-testimonios .grid-imagenes { order: 1; }
  .container-testimonios .texto-testimonio { order: 2; }

  /* En “Visítanos”: texto primero, luego imágenes */
  .container-visita .texto-visita { order: 1; }
  .container-visita .grid-imagenes { order: 2; }

  /* En móvil, las 2 imágenes de “Visítanos” se apilan */
  .visita-imagenes { grid-template-columns: 1fr; }
  .visita-imagenes img { aspect-ratio: 16 / 11; } /* un poco más altas en móvil */

  .subtitulo::before,
  .subtitulo::after { width: 48px; }
}

@media (max-width: 520px) {
  .testimonios-imagenes { gap: .75rem; }
  .visita-imagenes { gap: .75rem; }
  .subtitulo { gap: 10px; letter-spacing: .07em; }
  .subtitulo::before,
  .subtitulo::after { width: 40px; }
}


/* ===================== VINOS & CAVAS — overrides responsive ===================== */
/* ✅ Mantiene escritorio. Solo aplica en ≤ 991.98px */
@media (max-width: 991.98px){

  /* --- Hero más compacto --- */
  .hero-carta{
    height: 42vh;               /* antes 55vh */
    min-height: 280px;
  }
  .hero-overlay{ background: rgba(0,0,0,.48); }
  .hero-title{
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    line-height: 1.15;
    padding: 0 14px;
  }

  /* --- Cabecera de la sección --- */
  .carta-header{
    margin: 48px auto 28px auto;
    padding: 0 14px;
  }
  .carta-subtitulo{
    font-size: .9rem;
    letter-spacing: .1em;
  }
  .carta-titulo{
    font-size: clamp(1.6rem, 5.2vw, 2rem);
    margin-top: .25rem;
  }
  .carta-margen{ height: 64px; }

  /* --- Lista: 1 columna + márgenes --- */
  .platos-lista{
    max-width: 960px;
    grid-template-columns: 1fr;     /* 1 columna en móvil */
    row-gap: 1.75rem;
    column-gap: 0;
    padding: 0 14px;
  }

  /* --- Línea plato robusta (nombre | puntos | precio) --- */
  .plato-linea{ gap: .45rem; }

  .plato-header{
    display: grid;
    grid-template-columns: 1fr auto; /* nombre | precio */
    align-items: center;
    position: relative;
    padding: .15rem 0;
  }

  .plato-header::after{
    content:"";
    position: absolute;
    left: 0; right: 0;
    top: 50%; transform: translateY(-50%);
    height: 2px;
    background:
      repeating-linear-gradient(
        to right,
        #222, #222 2px,
        transparent 3px, transparent 9px
      );
    opacity: .9;
    pointer-events: none;
  }

  /* “Ventana” sobre los puntos (ajusta al fondo real si no es blanco) */
  .plato-nombre,
  .plato-precio{
    background: #fff;              /* cambia a #fafafa si tu sección lo usa */
    position: relative;
    z-index: 1;
    padding: 0 .35rem;
  }

  .plato-nombre{
    font-size: 1.28rem;
    line-height: 1.25;
    white-space: normal;           /* permite saltos */
  }
  .plato-precio{
    font-size: 1.08rem;
    justify-self: end;
  }

  .plato-descripcion{
    font-size: .98rem;
    line-height: 1.55;
    color: #666;
    margin-top: .45rem;
  }

  .recomendado .plato-nombre::after{
    font-size: 1rem;
    white-space: nowrap;
  }

  /* --- Imagen separadora --- */
  .divider-img{
    height: 240px;                 /* antes 500px */
    margin: 3rem 0;
  }
  .divider-img img{
    width: 100%; height: 100%; object-fit: cover;
  }

  /* ================== Testimonios / Visítanos ================== */
  .seccion-testimonios,
  .seccion-visita{
    padding: 2rem 14px;
    background: var(--bg, #fafafa);
  }

  .container-testimonios,
  .container-visita{
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto;
  }

  .container-testimonios .grid-imagenes{ order: 1; }
  .container-testimonios .texto-testimonio{ order: 2; }
  .container-visita .texto-visita{ order: 1; }
  .container-visita .grid-imagenes{ order: 2; }

  .grid-imagenes{ gap: .85rem; }
  .testimonios-imagenes{ grid-template-columns: 1fr 1fr; }
  .visita-imagenes{ grid-template-columns: 1fr; }

  .grid-imagenes img{
    width: 100%; height: auto; object-fit: cover;
    display: block; border-radius: var(--radius, 0);
  }

  .subtitulo{ gap: 10px; font-size: .9rem; letter-spacing: .08em; }
  .subtitulo::before, .subtitulo::after{ width: 56px; }

  .seccion-testimonios h2,
  .seccion-visita h2{
    font-size: clamp(1.35rem, 5vw, 1.9rem);
    text-align: center;
    margin: .25rem 0 .5rem;
  }

  .seccion-testimonios p,
  .seccion-visita p{
    font-size: .98rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    text-align: center;
  }

  .btn-link{
    padding: .65rem 1.05rem;
    border-radius: 8px;
    font-size: .86rem;
  }
}

/* =================== Afinado en móviles pequeños (≤ 600px) =================== */
@media (max-width: 600px){
  .hero-carta{ height: 38vh; min-height: 240px; }
  .hero-title{ font-size: clamp(1.5rem, 6.2vw, 2rem); padding: 0 16px; }

  .platos-lista{ padding: 0 16px; row-gap: 1.4rem; }

  .plato-nombre{ font-size: 1.18rem; }
  .plato-precio{ font-size: 1.02rem; }
  .plato-descripcion{ font-size: .96rem; }

  .divider-img{ height: 210px; margin: 2.2rem 0; }

  .testimonios-imagenes{ grid-template-columns: 1fr; }
  .subtitulo::before, .subtitulo::after{ width: 44px; }
}


/* === CARTA (Vinos): centrado y sin puntos === */
section.carta-seccion-doble{ padding: 0 16px; }
.carta-header{ text-align: center; margin: 3rem auto 2rem; }

/* Grid centrado (2 col escritorio, 1 col en móvil) */
.carta-seccion-doble .platos-lista{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  column-gap: 3rem;
  row-gap: 1.6rem;
}

/* Cada plato: nombre | precio arriba, descripción debajo */
.carta-seccion-doble .plato-linea{
  display: flex;
  flex-direction: column;
}

/* Cabecera del plato: SIN puntos */
.carta-seccion-doble .plato-header{
  display: grid;
  grid-template-columns: 1fr auto; /* nombre | precio */
  align-items: baseline;
  gap: .5rem;
  position: relative;
}
.carta-seccion-doble .plato-header::after{
  content: none !important;     /* quita los puntos/líneas */
  background: none !important;
}

/* Asegura que no haya “ventanas” sobre líneas previas */
.carta-seccion-doble .plato-nombre,
.carta-seccion-doble .plato-precio{
  background: transparent !important;
  padding: 0 !important;
}

/* Tipografías */
.carta-seccion-doble .plato-nombre{
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: #222;
}
.carta-seccion-doble .plato-precio{
  font-size: 1.05rem;
  color: #333;
}
.carta-seccion-doble .plato-descripcion{
  margin-top: .35rem;           /* en otra línea */
  font-size: .95rem;
  line-height: 1.5;
  color: #666;
}

/* “Recomendado” */
.carta-seccion-doble .recomendado .plato-nombre::after{
  content: " ★ Recomendado";
  color: #dd5903;
  font-size: 1rem;
  margin-left: .4rem;
}

/* Responsive: 1 columna */
@media (max-width: 991.98px){
  .carta-seccion-doble .platos-lista{
    grid-template-columns: 1fr;
    max-width: 720px;
  }
  .carta-header{ margin: 2.2rem auto 1.4rem; }
  .carta-seccion-doble .plato-nombre{ font-size: 1.25rem; }
  .carta-seccion-doble .plato-precio{ font-size: 1.02rem; }
  .carta-seccion-doble .plato-descripcion{ font-size: .96rem; }
}
