/* EMBIL LLC — hoja de estilos única.
   Identidad en prueba: versión B1 (clásica) del design system,
   expediente marketing/trabajo/20261007-design-system/ en danielbasco-s23/embil. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fuentes/bodoni-moda.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fuentes/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --tinta: #1E2240;
  --lacre: #8C1F2B;
  --oro: #9C7A3C;
  --corcho: #D8C3A5;
  --corcho-claro: #EFE6DA;
  --papel: #FFFFFF;

  --fondo: var(--papel);
  --fondo-alterno: var(--corcho-claro);
  --tinta-suave: #5A5560;
  --linea: #E4DDD3;
  --acento: var(--tinta);
  --sobre-acento: var(--papel);
  --foco: var(--lacre);
  --texto: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --titulo: "Bodoni Moda", "Didot", Georgia, serif;
  --ancho: 72rem;
  --estrecho: 44rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font: 400 1.0625rem/1.6 var(--texto);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--titulo); line-height: 1.15; margin: 0 0 .6em; font-weight: 500; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.05; }
h2 { font-size: 1.7rem; }
h3, h4 { font-family: var(--texto); font-weight: 650; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }

.envoltorio { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }
.estrecho { max-width: var(--estrecho); margin-inline: auto; }

.saltar { position: absolute; left: -999px; top: 0; background: var(--acento); color: var(--sobre-acento); padding: .6em 1em; z-index: 10; }
.saltar:focus { left: 1rem; }

/* Cabecera */
.barra { border-bottom: 1px solid var(--linea); background: var(--fondo); }
.barra .envoltorio { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.marca { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--tinta);
         font-family: var(--titulo); font-weight: 500; letter-spacing: .08em; font-size: 1.6rem; line-height: 1; }
.sello { width: 2.4rem; height: 2.4rem; flex: none; }
.sello circle { fill: var(--lacre); }
.sello path { fill: var(--papel); }
.sello .sello-anillo { fill: none; stroke: var(--papel); stroke-width: 2; }
.menu { display: flex; gap: 1.5rem; align-items: center; }
.menu a { text-decoration: none; color: var(--tinta); font-weight: 500; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--lacre); }
.menu .idioma { border: 1px solid var(--oro); padding: .15em .55em; color: var(--tinta); }
.boton-menu { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.boton-menu span { display: block; width: 22px; height: 2px; background: var(--tinta); margin: 4px 0; }

@media (max-width: 52em) {
  .boton-menu { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 4.25rem; flex-direction: column; align-items: flex-start;
          background: var(--fondo); border-bottom: 1px solid var(--linea); padding: 1rem 1.25rem 1.5rem; gap: 1rem; z-index: 5; }
  .menu.abierto { display: flex; }
  .barra { position: relative; }
}

/* Portada: a sangre sobre el viñedo */
.portada { position: relative; isolation: isolate; color: var(--papel); min-height: min(78vh, 44rem);
           display: flex; align-items: flex-end; padding: 6rem 0 clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.portada-fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; z-index: -2; }
.portada::after { content: ""; position: absolute; inset: 0; z-index: -1;
                  background: linear-gradient(to top, rgba(30, 34, 64, .88) 0%, rgba(30, 34, 64, .55) 45%, rgba(30, 34, 64, .05) 80%); }
.portada-texto { max-width: var(--ancho); }
.portada h1 { max-width: 14em; padding-bottom: .4em; border-bottom: 3px double var(--corcho); }
.portada .entradilla { color: var(--corcho-claro); }
.portada .boton { background: var(--papel); color: var(--tinta); }
.portada .boton:hover { background: var(--lacre); color: var(--papel); }
.portada .boton.secundario { background: transparent; color: var(--papel); border-color: var(--papel); }
.portada .boton.secundario:hover { background: var(--papel); color: var(--tinta); }
.portada a:focus-visible { outline-color: var(--papel); }
.entradilla { font-size: 1.2rem; color: var(--tinta-suave); max-width: 38em; }

/* Imágenes de ambiente */
.banda-marco { margin: 0 0 1rem; }
.banda { width: 100%; height: clamp(14rem, 34vw, 26rem); object-fit: cover; }
.seccion-imagen { width: 100%; height: clamp(12rem, 26vw, 20rem); object-fit: cover; margin-bottom: 2rem; }
.tarjeta-imagen { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 1.25rem; }

.acciones { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-top: 1.5rem; }
.boton { display: inline-block; background: var(--acento); color: var(--sobre-acento); text-decoration: none; padding: .75em 1.4em; font-weight: 600; }
.boton:hover { background: var(--lacre); }
.boton.secundario { background: transparent; color: var(--tinta); border: 1px solid var(--tinta); }

/* Bloques */
.bloque { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.alterno { background: var(--fondo-alterno); }
.dos-col, .tres-col { display: grid; gap: 2rem; }
@media (min-width: 48em) { .dos-col { grid-template-columns: 1fr 1fr; } .tres-col { grid-template-columns: repeat(3, 1fr); } }

/* Encabezado de página interior */
.encabezado { padding: 2.5rem 0 1rem; }
.migas { font-size: .9rem; color: var(--tinta-suave); margin-bottom: 1.25rem; }
.migas a { color: var(--tinta-suave); }

/* Productos */
.productos { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 2rem 1.5rem;
             grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.producto a { text-decoration: none; }
.producto a:hover h3, .producto a:hover h4 { text-decoration: underline; }
.producto img { background: #fff; margin-bottom: 1rem; }
.producto p { color: var(--tinta-suave); font-size: .95rem; }
.producto .bodega { margin: 0 0 .25rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.producto .aviso-ficha { display: inline-block; margin-top: .5rem; padding: .15rem .6rem; border: 1px solid var(--linea);
                        border-radius: 999px; font-size: .8rem; letter-spacing: .02em; }

.producto-rejilla { display: grid; gap: 2.5rem; padding: 2.5rem 0 4rem; }
@media (min-width: 52em) { .producto-rejilla { grid-template-columns: minmax(0, 28rem) 1fr; align-items: start; } }
.producto-imagen img { width: 100%; }

.bloque h2::after { content: ""; display: block; width: 2.5rem; height: 1px; background: var(--oro); margin-top: .5em; }
.ficha { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.ficha th, .ficha td { text-align: left; vertical-align: top; padding: .65rem 0; border-bottom: 1px solid var(--linea); }
.ficha th { width: 34%; padding-right: 1rem; font-weight: 600; }

.lista-productores { list-style: none; padding: 0; margin: 0; }
.lista-productores li { border-top: 1px solid var(--linea); padding: 1.5rem 0; }
.lista { padding-left: 1.2em; margin: 0 0 2rem; }
.lista li { margin-bottom: .5em; }

.contacto { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.5rem; margin: 0 0 1.5rem; }
.contacto dt { font-weight: 600; }
.contacto dd { margin: 0; }

.texto-legal h2 { font-size: 1.15rem; margin-top: 2rem; }

/* Pie: negativo sobre tinta */
.pie { background: var(--tinta); color: #B9BCD3; padding: 3.5rem 0 2rem; font-size: .95rem; }
.pie a { color: var(--papel); }
.pie a:hover { color: var(--corcho); }
.pie a:focus-visible { outline-color: var(--corcho); }
.pie-rejilla { display: grid; gap: 2rem; }
@media (min-width: 48em) { .pie-rejilla { grid-template-columns: 1.4fr 1fr 1fr; } }
.pie h2 { font-size: 1rem; color: var(--papel); }
.pie ul { list-style: none; padding: 0; margin: 0; }
.pie li { margin-bottom: .4em; }
.pie address { font-style: normal; }
.pie-marca { display: flex; align-items: center; gap: .7rem; color: var(--papel); font-family: var(--titulo); font-weight: 500; letter-spacing: .08em; font-size: 2rem; line-height: 1; }
.pie-marca .sello { width: 2.8rem; height: 2.8rem; }
.pie-legal { border-top: 1px solid #3A3E5C; margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; }

/* 404 */
.error { padding: 5rem 0; }
.error h2 { margin-top: 3rem; }
.error .marca { margin-bottom: 2rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Bodegas en portada */
.bodega-destacada { display: grid; gap: 1.5rem 2.5rem; align-items: center; margin: 2rem 0; text-decoration: none; color: inherit; }
@media (min-width: 52em) { .bodega-destacada { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.bodega-destacada img { width: 100%; height: auto; background: #fff; }
.bodega-destacada h3 { font-size: 2rem; margin: 0 0 .75rem; }
.bodega-destacada .enlace { text-decoration: underline; }
.bodegas { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 2rem 1.5rem;
           grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.bodega-tarjeta a { text-decoration: none; color: inherit; }
.bodega-tarjeta a:hover h3 { text-decoration: underline; }
.bodega-tarjeta img { width: 100%; height: auto; background: #fff; margin-bottom: .75rem; }
.bodega-tarjeta p { color: var(--tinta-suave); font-size: .95rem; }
.bodega-hueco a { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .75rem;
                  aspect-ratio: 3 / 2; padding: 1.5rem; text-align: center; border: 1px dashed var(--tinta-suave); }
.bodega-hueco a:hover { border-style: solid; }
.bodega-hueco .hueco-texto { font-size: 1.15rem; font-weight: 600; }
.bodega-hueco .enlace { text-decoration: underline; }
