:root { --tinta: #1c2430; --suave: #586271; --fondo: #fff; --gris: #f5f6f8; --raya: #e1e5ea; --noche: #14181e; --color: #0b5c6b; --color-oscuro: #08424d; --tenue: #eaf3f5; }
.color-azul { --color: #1d4fd7; --color-oscuro: #163a9e; --tenue: #edf2fe; }
.color-verde { --color: #2c6a3c; --color-oscuro: #1f4b2a; --tenue: #edf5ef; }
.color-terracota { --color: #a3472b; --color-oscuro: #7b3520; --tenue: #f9efeb; }
.color-granate { --color: #8a1c3c; --color-oscuro: #64142b; --tenue: #f9edf1; }
.color-grafito { --color: #2f3a48; --color-oscuro: #171d25; --tenue: #eef0f3; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--tinta); background: var(--fondo); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color); }
a:hover { color: var(--color-oscuro); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #f0a500; outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 3.4vw, 1.9rem); margin-top: 1.4em; }
h3 { font-size: 1.2rem; }
.letra-clasica h1, .letra-clasica h2, .letra-clasica h3, .letra-clasica .nombre { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; font-weight: 600; }
p { margin: 0 0 1em; }
.ancho { max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; }
.estrecho { max-width: 46rem; }
.saltar { position: absolute; left: -999rem; }
.saltar:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }
.vista-previa { margin: 0; padding: .5rem 1.25rem; background: #fff4d6; border-bottom: 1px solid #e6c766; font-size: .9rem; text-align: center; color: #3b3000; }
.vista-previa a { color: inherit; font-weight: 600; }
.cabecera { background: #fff; border-bottom: 1px solid var(--raya); }
.cabecera .ancho { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; padding-top: .8rem; padding-bottom: .8rem; }
.nombre { flex: 1 1 0; min-width: 8rem; font-weight: 700; font-size: 1.2rem; line-height: 1.25; color: var(--tinta); text-decoration: none; }
.cabecera nav { order: 3; width: 100%; }
.cabecera ul { display: flex; flex-wrap: wrap; gap: .1rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.cabecera nav a { text-decoration: none; padding: .35rem 0; display: inline-block; color: var(--tinta); font-weight: 500; border-bottom: 2px solid transparent; }
.cabecera nav a:hover, .cabecera nav a[aria-current] { border-bottom-color: var(--color); color: var(--color-oscuro); }
.portada { background: var(--tenue); padding: 3.5rem 0; }
.portada h1 { font-size: clamp(2.3rem, 7.5vw, 4.2rem); margin-bottom: .25em; }
.lema { font-size: clamp(1.15rem, 2.8vw, 1.5rem); color: var(--suave); max-width: 36rem; }
.portada.con-foto { position: relative; display: flex; align-items: flex-end; min-height: min(78vh, 40rem); padding: 7rem 0 3rem; background: var(--noche); color: #fff; overflow: hidden; }
.portada .fondo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.portada.con-foto::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; background: linear-gradient(to top, rgba(12, 14, 18, .86) 0%, rgba(12, 14, 18, .5) 45%, rgba(12, 14, 18, .15) 100%); }
.portada.con-foto .ancho { position: relative; z-index: 2; width: 100%; }
.portada.con-foto .lema { color: #fff; }
.portada.con-foto .boton.linea { color: #fff; border-color: #fff; }
.portada.con-foto .boton.linea:hover { background: #fff; color: var(--tinta); }
.titular { background: var(--tenue); padding: 2.25rem 0; }
.titular h1, .titular p:last-child { margin-bottom: 0; }
.bloque { padding: 3.25rem 0; }
.bloque h2:first-child, .caja h2 { margin-top: 0; }
.gris { background: var(--gris); }
.tenue { background: var(--tenue); }
.raya::after { content: ""; display: block; width: 3rem; height: 3px; margin-top: .55rem; background: var(--color); border-radius: 2px; }
.dos { display: grid; gap: 2rem; }
.texto p { max-width: 42rem; }
.texto p:first-child { font-size: 1.2rem; }
.caja { background: var(--tenue); border-left: 4px solid var(--color); border-radius: .5rem; padding: 1.4rem 1.5rem; }
.caja h2 { font-size: 1.2rem; }
.caja p:last-child { margin-bottom: 0; }
.acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }
.boton { display: inline-block; background: var(--color); color: #fff; border: 2px solid var(--color); border-radius: .45rem; padding: .7rem 1.3rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.boton:hover { background: var(--color-oscuro); border-color: var(--color-oscuro); color: #fff; }
.boton.linea { background: transparent; color: var(--color); }
.boton.linea:hover { background: var(--color); color: #fff; }
.boton.pequeno { padding: .35rem .8rem; font-size: .95rem; white-space: nowrap; }
.apartado { font-size: 1.2rem; margin: 1.6em 0 .5em; color: var(--color-oscuro); }
.apartado:first-child { margin-top: 0; }
.tarjetas { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }
.tarjeta { border-radius: .7rem; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(20, 24, 30, .08), 0 8px 24px rgba(20, 24, 30, .07); }
.tarjeta img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tarjeta div { padding: 1.1rem 1.2rem 1.2rem; }
.tarjeta h3 { margin-bottom: .3em; }
.tarjeta h3 a { color: var(--tinta); text-decoration: none; }
.tarjeta h3 a:hover { color: var(--color); text-decoration: underline; }
.tarjeta p { margin-bottom: .4em; font-size: .97rem; color: var(--suave); }
.precio, .tarjeta .precio { font-weight: 700; color: var(--color); }
.precio.grande { font-size: 1.5rem; margin-top: .4rem; }
.grupos { display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin-bottom: 1.5rem; }
.grupos .apartado { margin-top: 0; }
.renglones { list-style: none; margin: 0; padding: 0; }
.renglones li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--raya); }
.renglones strong, .renglones .fino { display: block; }
.renglones .precio { white-space: nowrap; }
.marca { display: inline-block; background: var(--tenue); border-radius: 1rem; padding: .1rem .7rem; font-size: .9rem; margin-right: .4rem; }
.fino { color: var(--suave); font-size: .92rem; }
.migas { color: var(--suave); font-size: .95rem; margin-bottom: .5rem; }
.foto-entrada { border-radius: .7rem; width: 100%; object-fit: cover; margin: 0 0 1.75rem; }
.senas { margin: 0; display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.senas dt { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--suave); margin-bottom: .15rem; }
.senas dd { margin: 0; font-size: 1.1rem; }
.datos { display: grid; gap: 1rem; max-width: 34rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.datos label { display: grid; gap: .3rem; font-weight: 600; }
.datos input[type="text"], .datos input[type="email"], .datos input[type="tel"], .datos textarea { font: inherit; padding: .65rem .75rem; border: 1px solid #8a94a3; border-radius: .4rem; width: 100%; background: #fff; }
.datos .casilla { display: block; font-weight: 400; }
.datos:disabled .boton { opacity: .55; cursor: default; }
.oculto { position: absolute; left: -999rem; width: 1px; height: 1px; overflow: hidden; }
.aviso { display: none; background: #fdecea; border: 1px solid #e3a59d; border-radius: .4rem; padding: .8rem 1rem; }
.aviso:target { display: block; }
.pie { background: var(--noche); color: #cfd5dd; padding: 2.75rem 0 1.75rem; font-size: .97rem; }
.pie a { color: #fff; }
.pie p { margin-bottom: .4em; }
.pie .nombre { color: #fff; font-size: 1.35rem; }
.pie .fino { color: #9aa3af; }
.pie .columnas { display: grid; gap: 1.5rem 3rem; margin-bottom: 1.75rem; padding-bottom: 1.75rem; border-bottom: 1px solid #2c333d; }
@media (min-width: 48rem) {
  .cabecera .ancho { gap: .4rem 1.75rem; }
  .cabecera nav { order: 0; width: auto; }
  .nombre { font-size: 1.35rem; }
  .dos { grid-template-columns: 1.7fr 1fr; align-items: start; gap: 3.5rem; }
  .dos.pares { grid-template-columns: 1fr 1fr; }
  .pie .columnas { grid-template-columns: 1.4fr 1fr; }
  .bloque { padding: 4.25rem 0; }
}
@media (min-width: 62rem) {
  /* Tres, seis o nueve tarjetas van de tres en tres, para que no quede una fila a medias. */
  .tarjetas:has(> :nth-child(3n):last-child) { grid-template-columns: repeat(3, 1fr); }
}
