@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* =========================
   BASE
========================= */
:root{
  --vino:#7b1e1e;
  --vino-oscuro:#5e1515;
  --crema:#e4b199;
  --texto:#2e2e2e;
  --blanco:rgba(255,255,255,0.95);
  --caja:rgba(255,255,255,0.92);
  --sombra:0 4px 10px rgba(0,0,0,0.18);
}

*{ box-sizing:border-box; }

html, body{
  margin:0;
  padding:0;
  font-family:"Poppins", sans-serif;
  color:var(--texto);
  overflow-x:hidden;
}

body{
  position:relative;
  background:#111; /* base por si falla el fondo */
}

/* Fondo horno (overlay) */
.fondo-horno{
  background: url("img/horno-fondo.jpg") center/cover no-repeat fixed;
  opacity:0.25;
  filter:brightness(0.85);
  position:fixed;
  inset:0;
  z-index:-1;
}

/* Accesibilidad: skip link */
.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:10px 14px;
  background:#fff;
  color:#000;
  border-radius:10px;
  box-shadow:var(--sombra);
  z-index:9999;
}

/* =========================
   HEADER
========================= */
header{
  background-color:var(--blanco);
  box-shadow:0 2px 8px rgba(0,0,0,0.12);
  padding:10px 5%;
  position:sticky;
  top:0;
  z-index:10;
}

.container-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
}

/* Logo + teléfono separados ~4cm aprox (responsive) */
.logo-tel{
  display:flex;
  align-items:center;
  gap: clamp(120px, 10vw, 170px);
  min-width:260px;
}

.logo{
  height:64px;
  width:auto;
  display:block;
}

.telefono-header a{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--vino);
  font-weight:600;
  text-decoration:none;
  white-space:nowrap;
}

.icono-telefono-header{
  width:24px;
  height:24px;
  display:block;
}

/* NAV */
nav ul{
  list-style:none;
  display:flex;
  gap:22px;
  margin:0;
  padding:0;
  flex-wrap:wrap;
  justify-content:flex-end;
}

nav a{
  text-decoration:none;
  color:var(--texto);
  font-weight:500;
  padding:6px 10px;
  border-radius:10px;
}

nav a:hover{
  color:var(--vino);
  background:rgba(123,30,30,0.08);
}

/* Activo tipo “pill” */
nav a.activo{
  color:var(--vino);
  background: rgba(123,30,30,0.10);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Responsive header */
@media (max-width: 820px){
  .container-header{
    flex-direction:column;
    align-items:flex-start;
  }
  nav ul{
    justify-content:flex-start;
    gap:10px;
  }
  .logo-tel{
    gap:18px; /* en móvil no queremos 4cm, queremos compacto */
    min-width:auto;
  }
}

/* =========================
   SECTIONS / LAYOUT
========================= */
main{
  padding:0;
}

.section-box{
  background:var(--caja);
  margin:22px auto;
  padding:28px 18px;
  max-width:1050px;
  border-radius:14px;
  box-shadow:var(--sombra);
}

.decorador{
  width:120px;
  height:4px;
  background:var(--vino);
  border-radius:999px;
  margin:14px auto 18px auto;
}

/* HERO */
.hero{
  background-color:rgba(0, 0, 0, 0.60);
  color:#fff;
  text-align:center;
  padding:110px 20px;
}

.hero h1{
  margin:0 0 10px 0;
  font-size:42px;
  line-height:1.1;
}

.hero span{ color:var(--crema); }

.hero p{
  max-width:740px;
  margin:0 auto;
  font-size:16px;
  opacity:0.95;
}

.boton{
  background-color:var(--vino);
  color:#fff;
  padding:12px 22px;
  text-decoration:none;
  border-radius:12px;
  display:inline-block;
  margin-top:18px;
  font-weight:600;
  box-shadow:0 6px 16px rgba(0,0,0,0.22);
}
.boton:hover{ background-color:var(--vino-oscuro); }

/* Horario (index) */
.horario{
  text-align:center;
}

.foto-horario{
  margin-top:18px;
  width:min(920px, 92%);
  border-radius:14px;
  box-shadow:var(--sombra);
  display:block;
  margin-left:auto;
  margin-right:auto;
}

/* Galería (index) */
.galeria{
  text-align:center;
}
.galeria-grid{
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
}
.galeria-grid img{
  width:100%;
  height:240px;
  object-fit:cover;
  border-radius:14px;
  box-shadow:var(--sombra);
}
@media (max-width: 860px){
  .galeria-grid{ grid-template-columns:1fr; }
  .galeria-grid img{ height:220px; }
}

/* CARTA (antigua, por compatibilidad si algo la usa) */
.carta ul{
  padding-left:18px;
  margin:18px auto 0 auto;
  max-width:900px;
}
.carta li{
  margin:10px 0;
  line-height:1.35;
}

/* NOSOTROS */
.imagen-nosotros{
  width:min(900px, 95%);
  display:block;
  margin:18px auto;
  border-radius:14px;
  box-shadow:var(--sombra);
}

/* CONTACTO (base) */
.contacto-seccion .formulario-contacto{
  max-width:720px;
  margin:16px auto 0 auto;
  display:grid;
  gap:10px;
}
.formulario-contacto input,
.formulario-contacto textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.18);
  font-family:inherit;
}
.formulario-contacto button{
  padding:12px 14px;
  border:0;
  border-radius:12px;
  background:var(--vino);
  color:#fff;
  font-weight:700;
  cursor:pointer;
}
.formulario-contacto button:hover{ background:var(--vino-oscuro); }

.mapa{
  max-width:920px;
  margin:22px auto 0 auto;
  text-align:center;
}
.mapa iframe{
  width:100%;
  height:340px;
  border:0;
  border-radius:14px;
  box-shadow:var(--sombra);
}

/* =========================
   FOOTER (general)
========================= */
footer{
  background-color:var(--vino);
  color:#fff;
  padding:22px 18px;
  margin-top:26px;
}

.footer-wrap{
  max-width:1050px;
  margin:0 auto;
  display:flex;
  gap:18px;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
}

.footer-left{
  display:flex;
  align-items:center;
  gap:12px;
}

.footer-logo, .kit-logo{
  height:38px;
  width:auto;
  display:block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

.footer-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.footer-links a{
  color:#fff;
  text-decoration:none;
  opacity:0.95;
}
.footer-links a:hover{
  text-decoration:underline;
  opacity:1;
}

/* =========================
   BOTÓN LLAMADA (soporta ambas clases)
========================= */
.btn-llamada,
.boton-llamar{
  position:fixed;
  bottom:22px;
  right:22px;
  background:#fff;
  border:3px solid var(--vino);
  border-radius:999px;
  width:56px;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 22px rgba(0,0,0,0.28);
  z-index:999; /* bien alto para que no lo tape nada */
  text-decoration:none;
  color:var(--vino);
  font-size:22px;
  font-weight:800;
}
.btn-llamada:hover,
.boton-llamar:hover{
  background:rgba(255,255,255,0.92);
  transform: translateY(-1px);
}

/* icono dentro del botón (para ambas clases) */
.btn-llamada img,
.boton-llamar img{
  width:28px;
  height:28px;
  display:block;
}

/* =========================
   PARCHE CONTACTO (legibilidad + márgenes + footer como imagen)
========================= */

/* Caja contacto: más márgenes laterales y centrado elegante */
.contacto-box{
  max-width: 1100px;
  margin: 26px auto;
  padding: 42px 26px;
  background: rgba(0,0,0,0.55);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  color: #fff;
}

/* Texto en blanco para que se lea sobre fondo oscuro */
.contacto-box h2,
.contacto-box h3,
.contacto-box p,
.contacto-box label{
  color:#fff;
}

.contacto-intro{
  opacity: 0.95;
}

/* Inputs más limpios sobre fondo oscuro */
.contacto-box .formulario-contacto input,
.contacto-box .formulario-contacto textarea{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.95);
}

/* Labels más presentes */
.contacto-box .formulario-contacto label{
  font-weight: 500;
  margin-top: 10px;
}

/* Datos de contacto al final */
.datos-contacto{
  margin-top: 18px;
  text-align: center;
}

.datos-contacto a{
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Footer simple como tu imagen (texto arriba + kit debajo) */
.footer-simple{
  background: #7b1e1e;
  color: #fff;
  padding: 18px 5% 22px 5%;
  margin-top: 26px;
}

.footer-topline{
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-kit{
  display:flex;
  align-items:center;
}

.kit-footer-img{
  height: 36px;
  width: auto;
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px;
}

/* =========================
   CARTA (hoja moderna)
========================= */
.carta-box{
  max-width: 1100px;
  margin: 26px auto;
  padding: 42px 26px;
  background: rgba(255,255,255,0.92);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
}

.carta-hero{
  text-align:center;
  margin-bottom: 18px;
}

.carta-hero p{
  margin: 10px auto 0 auto;
  max-width: 860px;
  opacity: 0.9;
}

.menu-grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.menu-card{
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 16px 16px;
}

/* ✅ SEGURIDAD: ninguna imagen puede romper su tarjeta */
.menu-card img{
  max-width: 100%;
}

.menu-card h3{
  margin: 0 0 10px 0;
  color: var(--vino);
  font-size: 18px;
}

.menu-item{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed rgba(0,0,0,0.12);
}

.menu-item:first-of-type{
  border-top: 0;
  padding-top: 0;
}

.item-name{
  font-weight: 600;
}

.item-desc{
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.3;
}

.item-price{
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

/* ✅ Imagen mini cuadrada en carta (no revienta nada) */
.foto-carta-mini{
  display:block;
  width: 160px;
  height: 160px;
  object-fit: cover;
  margin: 12px auto 0;
  border-radius: 12px;
  box-shadow: var(--sombra);
}

/* (No la estás usando ahora, pero la dejo por si acaso) */
.menu-note{
  margin-top: 18px;
  padding: 14px 14px;
  border-radius: 12px;
  background: rgba(123,30,30,0.07);
  border: 1px solid rgba(123,30,30,0.15);
  font-size: 14px;
}

/* Responsive carta */
@media (max-width: 860px){
  .menu-grid{ grid-template-columns: 1fr; }
  .carta-box{ padding: 34px 18px; }
}
