/*
 * Sofadecor Cortinas — estilos del sitio público.
 * Dirección: blanco con un toque cálido, tipografía fina, mucho aire y fotografía a todo el ancho.
 * Paleta provisional: ajustar los tokens --c-* al logotipo cuando se reciba.
 * El acento (--c-acento) se reserva para las acciones principales.
 */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --c-fondo: #FFFFFF;
  --c-arena: #F4EFE7;      /* bandas cálidas y pie */
  --c-linea: #E4DDD2;
  --c-texto: #24221F;
  --c-suave: #625C55;      /* texto secundario */
  --c-acento: #C21A36;     /* rojo del rótulo de la tienda, oscurecido: solo acciones principales */
  --c-acento-oscuro: #9E142B;
  --c-campo: #8A8176;      /* bordes de formulario */
  --c-error: #9A2A1F;
  --c-pendiente: #B3261E;

  --f-sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --t-small: 0.9375rem;
  --t-body: 1.0625rem;
  --t-lead: 1.1875rem;
  --t-h3: 1.25rem;
  --t-h2: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --t-h1: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);

  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 5rem;
  --section: clamp(4rem, 2.5rem + 6vw, 8rem);

  --gutter: 16px;
  --max: 72rem;
  --measure: 38rem;
  --bar: 3.5rem;
}

@media (min-width: 48em) {
  :root {
    --gutter: 40px;
    --t-body: 1.125rem;
    --t-lead: 1.25rem;
  }
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-fondo);
  color: var(--c-texto);
  font-family: var(--f-sans);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--s-2);
  font-weight: 400;
  color: var(--c-texto);
  text-wrap: balance;
}

h1 {
  font-size: var(--t-h1);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--t-h2);
  line-height: 1.18;
  letter-spacing: -0.005em;
}

h3 {
  font-size: var(--t-h3);
  font-weight: 400;
  line-height: 1.35;
}

p {
  margin: 0 0 var(--s-2);
}

a {
  color: inherit;
  text-decoration-color: #A79D90;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--c-texto);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--c-texto);
  color: #fff;
}

.skip-link:focus {
  top: 0.5rem;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lead {
  max-width: var(--measure);
  color: var(--c-suave);
  font-size: var(--t-lead);
  font-weight: 300;
  line-height: 1.6;
}

.center {
  text-align: center;
}

.center .lead,
.center p {
  margin-inline: auto;
}

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin-top: var(--s-5);
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
}

.meta {
  color: var(--c-suave);
  font-size: var(--t-small);
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--c-acento);
  color: #fff;
}

.btn--primary:hover {
  background: var(--c-acento-oscuro);
}

.btn--secondary {
  border-color: var(--c-texto);
  background: transparent;
  color: var(--c-texto);
}

.btn--secondary:hover {
  background: var(--c-texto);
  color: #fff;
}

.btn--small {
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
}

.btn[aria-disabled="true"] {
  opacity: 0.7;
  cursor: progress;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--s-4);
}

.center .actions {
  justify-content: center;
}

.text-link {
  color: var(--c-texto);
}

@media (max-width: 29.99em) {
  .actions .btn {
    flex: 1 1 100%;
  }
}

/* Cabecera */

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--c-linea);
  background: var(--c-fondo);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--s-4);
  min-height: 5rem;
}

.brand {
  margin-right: auto;
  padding-block: 0.75rem;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 2.75rem;
}

.site-nav ul {
  display: flex;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding-block: 0.5rem;
  border-bottom: 1px solid transparent;
  font-size: 0.9875rem;
  font-weight: 400;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--c-texto);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.menu-link,
.menu-toggle {
  display: none;
}

@media (max-width: 59.99em) {
  .site-nav,
  .site-header__actions {
    display: none;
  }

  .site-header__inner {
    min-height: 4rem;
  }

  .menu-link:not([hidden]),
  .menu-toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--c-texto);
    background: none;
    color: var(--c-texto);
    font-family: var(--f-sans);
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
  }

  .menu-toggle[aria-expanded="true"] {
    background: var(--c-texto);
    color: #fff;
  }

  .site-nav.is-open {
    display: block;
    flex-basis: 100%;
    padding-bottom: var(--s-2);
  }

  .site-nav.is-open ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav.is-open a {
    padding-block: 0.875rem;
    border-bottom: 1px solid var(--c-linea);
    font-size: 1.125rem;
  }

  .site-nav.is-open a[aria-current="page"] {
    border-bottom-color: var(--c-texto);
  }
}

/* Cabecera de página: texto centrado y foto a todo el ancho */

.hero {
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

.hero__title {
  max-width: 18ch;
  margin-inline: auto;
}

.feature-image {
  margin: 0;
}

.ratio-wide {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 48em) {
  .ratio-wide {
    aspect-ratio: 21 / 9;
    max-height: 78vh;
  }
}

.ratio-4-5 {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.ratio-4-3 {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ratio-3-2 {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.ratio-1-1 {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-3);
  border: 2px dashed var(--c-pendiente);
  background: var(--c-arena);
  text-align: center;
}

.pending {
  padding: 0 0.3em;
  outline: 1px dashed var(--c-pendiente);
  background: #FBE9E7;
  color: var(--c-pendiente);
  font-size: 0.875em;
  font-weight: 500;
  letter-spacing: 0;
}

/* Secciones */

.section {
  padding-block: var(--section);
}

.section--warm {
  background: var(--c-arena);
}

.section__head {
  max-width: 40rem;
  margin: 0 auto var(--s-5);
  text-align: center;
}

.section__head p {
  color: var(--c-suave);
}

.split {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 56em) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--s-6);
  }
}

/* Productos: rejilla de fotos sin tarjetas */

.products {
  display: grid;
  gap: var(--s-5) var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40em) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product {
  display: block;
  text-decoration: none;
}

.product__name {
  display: block;
  margin-top: var(--s-2);
  font-size: 1.375rem;
  font-weight: 300;
  line-height: 1.3;
}

.product__text {
  display: block;
  margin-top: 0.25rem;
  color: var(--c-suave);
}

.product:hover .product__name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

/* Pasos de trabajo (secuencia real) y bloques de texto */

.steps {
  display: grid;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}

@media (min-width: 48em) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-5);
  }
}

.steps li {
  counter-increment: paso;
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-linea);
}

.steps li::before {
  content: counter(paso);
  display: block;
  margin-bottom: var(--s-1);
  color: var(--c-suave);
  font-size: 0.9375rem;
}

.steps h3 {
  margin-bottom: 0.5rem;
}

.steps p {
  margin: 0;
  color: var(--c-suave);
}

.blocks {
  display: grid;
  gap: var(--s-4);
}

@media (min-width: 48em) {
  .blocks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-5);
  }
}

.blocks > div {
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-linea);
}

.blocks p {
  margin: 0;
  color: var(--c-suave);
}

.gallery {
  display: grid;
  gap: var(--s-2);
}

@media (min-width: 40em) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 60em) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Visita: dirección y horario */

.visit__address {
  margin-bottom: var(--s-3);
  font-size: var(--t-lead);
  font-style: normal;
  font-weight: 300;
  line-height: 1.5;
}

.hours {
  max-width: 28rem;
  margin: 0 0 var(--s-3);
}

.hours__row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: var(--s-2);
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--c-linea);
}

.hours__row:first-child {
  border-top: 1px solid var(--c-linea);
}

.hours dt {
  color: var(--c-suave);
}

.hours dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* Llamada a la acción */

.cta-band {
  padding-block: var(--section);
  border-top: 1px solid var(--c-linea);
  text-align: center;
}

.cta-band p {
  max-width: var(--measure);
  margin-inline: auto;
  color: var(--c-suave);
  font-size: var(--t-lead);
  font-weight: 300;
}

.cta-band .actions {
  justify-content: center;
}

/* Páginas interiores */

.breadcrumbs {
  padding-top: var(--s-3);
  color: var(--c-suave);
  font-size: var(--t-small);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--c-linea);
}

.page-intro {
  padding-block: var(--s-5) var(--s-4);
}

.page-intro--narrow {
  max-width: 48rem;
  margin-inline: auto;
  padding-block: var(--section);
}

/* Contacto */

.contact-layout {
  display: grid;
  gap: var(--s-6);
  padding-bottom: var(--section);
}

.contact-layout h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
}

.contact-layout__aside > section + section {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-linea);
}

@media (min-width: 56em) {
  .contact-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .contact-layout__aside {
    position: sticky;
    top: var(--s-3);
    align-self: start;
  }
}

.channels {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.channels li {
  display: grid;
}

.channels__label {
  color: var(--c-suave);
  font-size: var(--t-small);
}

.channels__value {
  font-size: 1.5rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.channels__value:hover {
  text-decoration: underline;
}

/* Formulario */

.form {
  display: grid;
  gap: var(--s-3);
  max-width: 40rem;
}

.form__note {
  margin: 0;
  color: var(--c-suave);
  font-size: var(--t-small);
}

.field label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 400;
}

.optional {
  color: var(--c-suave);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--c-campo);
  border-radius: 0;
  background: #fff;
  color: var(--c-texto);
  font: inherit;
  font-size: 1.0625rem;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field--error input,
.field--error select,
.field--error textarea {
  border: 2px solid var(--c-error);
}

.field__error {
  margin: 0.375rem 0 0;
  color: var(--c-error);
  font-size: var(--t-small);
}

.field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.25rem 0.75rem;
}

.field--check input {
  width: 1.375rem;
  min-height: 0;
  height: 1.375rem;
  margin: 0.2rem 0 0;
  accent-color: var(--c-acento);
}

.field--check label {
  margin: 0;
}

.field--check .field__error {
  grid-column: 1 / -1;
}

.privacy-info {
  padding-top: var(--s-2);
  border-top: 1px solid var(--c-linea);
  color: var(--c-suave);
  font-size: var(--t-small);
}

.privacy-info p {
  margin-bottom: 0.5rem;
}

.privacy-info__title {
  color: var(--c-texto);
}

.form-alert {
  max-width: 40rem;
  margin-bottom: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-left: 3px solid var(--c-error);
  background: #F9ECE9;
}

.form-alert:focus {
  outline: 2px solid var(--c-error);
  outline-offset: 2px;
}

.form-alert ul {
  margin: 0;
  padding-left: 1.25rem;
}

.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Pie */

.site-footer {
  padding-block: var(--s-6) var(--s-4);
  background: var(--c-arena);
  font-size: var(--t-small);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: var(--s-5);
}

.site-footer__name {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.site-footer__title {
  margin-bottom: var(--s-2);
  font-size: 1rem;
  font-weight: 500;
}

.site-footer address {
  margin-bottom: var(--s-2);
  font-style: normal;
}

.site-footer .hours__row {
  grid-template-columns: 1fr;
  gap: 0;
}

.link-list {
  display: grid;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-linea);
  color: var(--c-suave);
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Barra de contacto en móvil */

.contact-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--c-linea);
  background: #fff;
}

.contact-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--bar);
  font-weight: 400;
  text-decoration: none;
}

.contact-bar a + a {
  border-left: 1px solid var(--c-linea);
}

.contact-bar .contact-bar__primary {
  background: var(--c-acento);
  color: #fff;
}

@media (max-width: 59.99em) {
  body {
    padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom));
  }
}

@media (min-width: 60em) {
  .contact-bar {
    display: none;
  }
}

/* Movimiento reducido */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Añadidos de componentes */

.actions--tight {
  margin-top: var(--s-2);
  gap: var(--s-3);
}

.visit-band {
  border-top: 1px solid var(--c-linea);
}

.section--warm + .visit-band {
  border-top: 0;
}

/* Cabecera partida para fotos verticales: texto a la izquierda, foto a la derecha */

.hero--split {
  padding-bottom: var(--section);
}

.hero--split .hero__grid {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}

.hero--split .hero__title {
  margin-inline: 0;
}

.ratio-portrait {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 56em) {
  .hero--split .hero__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: var(--s-6);
  }

  .ratio-portrait {
    aspect-ratio: 4 / 5;
  }
}

.pos-upper {
  object-position: 50% 35%;
}

.visit-band--solo .split {
  grid-template-columns: minmax(0, 1fr);
  max-width: 44rem;
}

/* Portada: foto de cortinas junto a una regla de medida («a medida») */

.home-hero {
  display: grid;
}

.home-hero__text {
  padding: clamp(2.5rem, 1.5rem + 4vw, 4rem) var(--gutter) var(--s-5);
}

.home-hero__title {
  max-width: 11ch;
  margin-bottom: var(--s-3);
  font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.home-hero__lead {
  max-width: 30rem;
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  line-height: 1.55;
}

.home-hero__phone {
  margin-top: var(--s-3);
  color: var(--c-suave);
  font-size: var(--t-small);
}

.home-hero__phone a {
  color: var(--c-texto);
}

.home-hero__media {
  position: relative;
  padding-top: 1.625rem;
}

.ratio-tall {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.ruler {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1.125rem;
  border-bottom: 1px solid var(--c-texto);
  background:
    repeating-linear-gradient(to right, var(--c-texto) 0 1px, transparent 1px 50px) left bottom / 100% 1.125rem no-repeat,
    repeating-linear-gradient(to right, var(--c-texto) 0 1px, transparent 1px 10px) left bottom / 100% 0.5rem no-repeat;
  transform-origin: left center;
  animation: ruler-x 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}

@media (min-width: 56em) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: min(calc(100vh - 5rem), 56rem);
  }

  .home-hero__text {
    align-self: center;
    padding: var(--s-6) var(--s-6) var(--s-6) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  }

  .home-hero__media {
    padding-top: 0;
  }

  .home-hero__media img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 2.25rem;
    width: calc(100% - 2.25rem);
    height: 100%;
    aspect-ratio: auto;
  }

  .ruler {
    right: auto;
    bottom: 0;
    width: 1.375rem;
    height: auto;
    border-right: 1px solid var(--c-texto);
    border-bottom: 0;
    background:
      repeating-linear-gradient(to bottom, var(--c-texto) 0 1px, transparent 1px 50px) right top / 1.375rem 100% no-repeat,
      repeating-linear-gradient(to bottom, var(--c-texto) 0 1px, transparent 1px 10px) right top / 0.625rem 100% no-repeat;
    transform-origin: center top;
    animation-name: ruler-y;
  }
}

@keyframes ruler-x {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes ruler-y {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.product-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--c-texto);
  list-style: none;
}

.product-list li {
  border-bottom: 1px solid var(--c-linea);
}

.product-list a {
  display: grid;
  gap: 0.25rem;
  padding-block: var(--s-3);
  text-decoration: none;
}

.product-list__name {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.product-list__text {
  color: var(--c-suave);
}

.product-list a:hover .product-list__name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.home-steps__title {
  margin-bottom: var(--s-5);
}

/* Portada: la tienda */

.home-store {
  display: grid;
  gap: var(--s-5);
}

.home-store__text {
  max-width: 30rem;
  font-size: var(--t-lead);
  line-height: 1.55;
}

@media (min-width: 56em) {
  .home-store {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: var(--s-6);
  }
}

.section--warm .steps li {
  border-top-color: #CFC6B8;
}



/* Portada: zonas de producto. Cada una es una franja propia con la foto sangrando
   hacia un borde, en espejo con la cabecera. Cortinas en blanco (especialidad), estores en lino. */

.zone {
  display: grid;
}

.home-hero + .zone {
  margin-top: var(--s-6);
}

.zone--right {
  background: var(--c-arena);
}

.zone__body {
  padding: var(--s-5) var(--gutter) var(--section);
}

.zone__title {
  margin-bottom: var(--s-3);
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.zone__body p {
  max-width: 34rem;
}

.zone__links {
  max-width: 34rem;
  margin: var(--s-4) 0 0;
  padding: 0;
  border-top: 1px solid var(--c-texto);
  list-style: none;
}

.zone__links li {
  border-bottom: 1px solid var(--c-linea);
}

.zone--right .zone__links li {
  border-bottom-color: #CFC6B8;
}

.zone__links a {
  display: block;
  padding-block: 0.875rem;
  font-size: 1.25rem;
  text-decoration: none;
}

.zone__links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.ratio-zone {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (min-width: 56em) {
  .zone {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 36rem;
  }

  .zone--right .zone__media {
    order: 2;
  }

  .zone__media {
    position: relative;
  }

  .zone__media img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
  }

  .zone__body {
    align-self: center;
    padding-block: var(--s-6);
  }

  .zone--left .zone__body {
    padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    padding-left: var(--s-6);
  }

  .zone--right .zone__body {
    padding-right: var(--s-6);
    padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  }
}

.home-store-section {
  border-top: 1px solid var(--c-linea);
}

/* Portada: «Cómo trabajamos» sobre una cinta métrica (la regla de la cabecera como línea de tiempo).
   Móvil: regla vertical a la izquierda. Escritorio: regla horizontal y los pasos colgando de ella. */

.process__head {
  display: grid;
  gap: var(--s-1) var(--s-5);
  margin-bottom: var(--s-5);
}

.process__head h2 {
  margin: 0;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.process__head p {
  margin: 0;
  color: var(--c-suave);
  font-size: var(--t-lead);
}

.process__steps {
  --tape: 1.375rem;
  position: relative;
  display: grid;
  gap: var(--s-5);
  margin: 0;
  padding: 0 0 0 calc(var(--tape) + var(--s-4));
  list-style: none;
}

.process__steps::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--tape);
  border-right: 1px solid var(--c-texto);
  background:
    repeating-linear-gradient(to bottom, var(--c-texto) 0 1px, transparent 1px 50px) right top / var(--tape) 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--c-texto) 0 1px, transparent 1px 10px) right top / 0.625rem 100% no-repeat;
}

.process__step {
  position: relative;
}

.process__step::before {
  content: "";
  position: absolute;
  top: 0.95rem;
  left: calc(-1 * var(--s-4) - 0.375rem);
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--c-texto);
}

.process__number {
  display: block;
  margin-bottom: var(--s-1);
  font-size: clamp(2.75rem, 2rem + 2.5vw, 4rem);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.process__step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.375rem;
}

.process__step p {
  max-width: 22rem;
  margin-bottom: var(--s-1);
  color: var(--c-suave);
}

.process__link {
  font-size: var(--t-small);
}

@media (min-width: 56em) {
  .process__head {
    grid-template-columns: auto 1fr;
    align-items: end;
  }

  .process__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-5);
    padding: calc(var(--tape) + var(--s-4)) 0 0;
  }

  .process__steps::before {
    right: 0;
    bottom: auto;
    width: auto;
    height: var(--tape);
    border-right: 0;
    border-bottom: 1px solid var(--c-texto);
    background:
      repeating-linear-gradient(to right, var(--c-texto) 0 1px, transparent 1px 50px) left bottom / 100% var(--tape) no-repeat,
      repeating-linear-gradient(to right, var(--c-texto) 0 1px, transparent 1px 10px) left bottom / 100% 0.625rem no-repeat;
  }

  .process__step::before {
    top: calc(-1 * var(--s-4) - 0.375rem);
    left: 0;
  }
}

/* «Cómo trabajamos»: cada paso en un rectángulo de línea fina, misma altura en la fila */
.process__step {
  display: flex;
  flex-direction: column;
  padding: var(--s-3);
  border: 1px solid #D6CEC2;
  background: #fff;
}

.process__step p {
  flex-grow: 1;
}

.process__link {
  align-self: flex-start;
}

.process__step::before {
  top: calc(var(--s-3) + 1rem);
}

@media (min-width: 56em) {
  .process__step::before {
    top: calc(-1 * var(--s-4) - 0.375rem);
    left: calc(var(--s-3) - 0.375rem);
  }
}

/* Páginas de producto: cabecera como la de la portada, algo más baja y con migas encima del H1 */

.page-hero .breadcrumbs {
  padding-top: 0;
  margin-bottom: var(--s-4);
}

.page-hero__title {
  max-width: 13ch;
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
}

@media (min-width: 56em) {
  .page-hero {
    min-height: min(calc(100vh - 5rem), 44rem);
  }
}

/* Cabecera de zona: H2 grande con una frase al lado (mismo patrón que «Cómo trabajamos») */

.zone-head {
  display: grid;
  gap: var(--s-1) var(--s-5);
  margin-bottom: var(--s-5);
}

.zone-head h2 {
  margin: 0;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.zone-head p {
  max-width: 30rem;
  margin: 0;
  color: var(--c-suave);
  font-size: var(--t-lead);
}

@media (min-width: 56em) {
  .zone-head {
    grid-template-columns: auto 1fr;
    align-items: end;
  }
}

/* Qué incluye: rectángulos de línea fina en blanco sobre la banda lino */

.boxes {
  display: grid;
  gap: var(--s-2);
}

@media (min-width: 48em) {
  .boxes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-3);
  }
}

.box {
  padding: var(--s-4) var(--s-3);
  border: 1px solid #D6CEC2;
  background: #fff;
}

.box h3 {
  margin-bottom: 0.5rem;
  font-size: 1.375rem;
}

.box p {
  margin: 0;
  color: var(--c-suave);
}

/* Precio: un rectángulo dividido en pregunta y respuesta */

.price__frame {
  display: grid;
  border: 1px solid var(--c-texto);
}

.price__title {
  margin: 0;
  padding: var(--s-4) var(--s-3);
  border-bottom: 1px solid var(--c-texto);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.price__body {
  padding: var(--s-4) var(--s-3);
}

.price__body > p:first-child {
  max-width: 34rem;
  font-size: var(--t-lead);
  line-height: 1.55;
}

.price__label {
  margin: var(--s-3) 0 0;
  color: var(--c-suave);
}

.price__factors {
  max-width: 34rem;
  margin: var(--s-1) 0 0;
  padding: 0;
  list-style: none;
}

.price__factors li {
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--c-linea);
}

.price__factors li:first-child {
  border-top: 1px solid var(--c-linea);
}

@media (min-width: 56em) {
  .price__frame {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .price__title {
    padding: var(--s-5);
    border-right: 1px solid var(--c-texto);
    border-bottom: 0;
  }

  .price__body {
    padding: var(--s-5);
  }
}

/* Relacionados: zona separada por un filete */

.related {
  border-top: 1px solid var(--c-linea);
}

/* Foto horizontal de instalación en la cabecera vertical: encuadre centrado en el instalador */
.pos-installer {
  object-position: 66% 40%;
}

/* Páginas legales: lectura cómoda, secciones separadas por un filete */

.legal {
  max-width: 46rem;
  padding-block: var(--s-5) var(--section);
}

.legal__head {
  margin-bottom: var(--s-5);
}

.legal__head h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  letter-spacing: -0.02em;
}

.legal__section {
  padding-top: var(--s-4);
  margin-top: var(--s-4);
  border-top: 1px solid var(--c-linea);
}

.legal__section h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
}

.legal__section ul {
  margin: 0 0 var(--s-2);
  padding-left: 1.25rem;
}

.legal__section li + li {
  margin-top: 0.375rem;
}

.legal__table {
  margin-bottom: var(--s-2);
  overflow-x: auto;
}

.legal__table table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: var(--t-small);
}

.legal__table th,
.legal__table td {
  padding: 0.625rem 0.75rem;
  border: 1px solid #D6CEC2;
  text-align: left;
  vertical-align: top;
}

.legal__table th {
  background: var(--c-arena);
  font-weight: 500;
}
