/* Diseño «Hogar» · Piazzolla (titulares, con cursiva) + Winky Sans (texto)
   Un catálogo de casa con luz atlántica: blanco de galería, azul de ría (c1), roble tostado (c2) y lino (c3).
   Firma propia: la portada es una galería coruñesa de cristales blancos (montantes, fila de cristalitos arriba y
   alféizar) con tres estancias numeradas y la ría detrás; las baldas del catálogo llevan la placa esmaltada de su
   estancia y una cinta métrica debajo, los precios cuelgan en etiquetas de cartón, las opiniones son muestras de
   tela cortadas con tijera de zigzag y cosidas, y las casas de los clientes, fotos de catálogo con su número.
   Curvas suaves entre secciones. */

html[data-diseno="hogar"] {
  --f-titulos: 'Piazzolla', Georgia, serif;
  --f-texto: 'Winky Sans', system-ui, sans-serif;
  --peso-titulos: 360;
  --tracking-titulos: -.022em;
  --interlinea-titulos: 1.04;
  --estilo-enfasis: italic;
  --peso-enfasis: 330;
  --fondo: #f8f5ef;
  --fondo-suave: #ede6da;
  --texto: #1b2a30;
  --texto-suave: #52626a;
  --borde: rgb(27 42 48 / .14);
  --enfasis: var(--c1);
  --ante: #8f4f22;
  --roble: #c2773f;
  --roble-texto: #8f4f22;
  --roble-claro: #e4c39f;
  --ria: #1e4d5c;
  --ria-noche: #143742;
  --galeria: #ffffff;
  --radio: 6px;
  --radio-foto: 3px;
  --radio-boton: 999px;
  --radio-campo: 6px;
  --sombra: 0 1px 2px rgb(20 55 66 / .06), 0 16px 34px -22px rgb(20 55 66 / .35);
  --sombra-fuerte: 0 30px 60px -30px rgb(20 55 66 / .5);
  --h1: clamp(2.7rem, 1.5rem + 4.4vw, 5.4rem);
  --h2: clamp(2rem, 1.4rem + 2.3vw, 3.3rem);
  --t-base: clamp(1rem, .97rem + .15vw, 1.07rem);

  /* La casa del logo: un tejado a dos aguas con la galería de cristales */
  --casita-ria: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30' fill='none' stroke='%231e4d5c' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M3 13 20 2l17 11'/%3E%3Cpath d='M7 11v17h26V11'/%3E%3Cpath d='M12 15h16v8H12zM17.3 15v8M22.7 15v8'/%3E%3C/svg%3E");
  --casita: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M3 13 20 2l17 11'/%3E%3Cpath d='M7 11v17h26V11'/%3E%3Cpath d='M12 15h16v8H12zM17.3 15v8M22.7 15v8'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- base */
html[data-diseno="hogar"] body { background: var(--fondo); }
html[data-diseno="hogar"] h1 em, html[data-diseno="hogar"] h2 em { color: var(--c1); font-variation-settings: 'wght' 320; }
html[data-diseno="hogar"] .ante { gap: .65em; font-weight: 600; letter-spacing: .16em; font-size: .76rem; color: var(--ante); }
html[data-diseno="hogar"] .ante::before { content: ""; width: 22px; height: 2px; flex: none; background: currentColor; }
html[data-diseno="hogar"] .btn { font-weight: 600; letter-spacing: .01em; }
html[data-diseno="hogar"] .btn-primario { background: var(--c1); color: #fff; }
html[data-diseno="hogar"] .btn-primario:hover { background: var(--ria-noche); }
html[data-diseno="hogar"] .btn-secundario { border-color: color-mix(in oklab, var(--c1) 45%, transparent); color: var(--c1); }
html[data-diseno="hogar"] .fondo-suave { background-color: var(--fondo-suave); }

/* ---------------------------------------------------------------- cabecera centrada: la casita sobre el nombre */
html[data-diseno="hogar"] .cab { background: color-mix(in srgb, var(--fondo) 92%, transparent); border-bottom: 1px solid var(--borde); }
html[data-diseno="hogar"] .cab .logo-nombre { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; font-size: 1.75rem; font-variation-settings: 'wght' 420; letter-spacing: -.01em; }
html[data-diseno="hogar"] .cab .logo-nombre::before { content: ""; width: 34px; height: 25px; background: var(--c1); -webkit-mask: var(--casita) center / contain no-repeat; mask: var(--casita) center / contain no-repeat; }
html[data-diseno="hogar"] .cab .logo-lema { letter-spacing: .2em; font-size: .66rem; }
html[data-diseno="hogar"] .cab-centrada .nav-lista { gap: 2px; }
html[data-diseno="hogar"] .cab-centrada .nav-lista a { position: relative; border-radius: 0; padding: 10px 14px 12px; font-size: .9rem; letter-spacing: .06em; }
html[data-diseno="hogar"] .cab-centrada .nav-lista a:hover { background: none; color: var(--c1); }
html[data-diseno="hogar"] .cab-centrada .nav-lista a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--roble); transform: scaleX(0); transition: transform .25s; }
html[data-diseno="hogar"] .cab-centrada .nav-lista a:hover::after, html[data-diseno="hogar"] .cab-centrada .nav-lista a[aria-current]::after { transform: scaleX(1); }
@media (max-width: 960px) {
  html[data-diseno="hogar"] .cab .logo-nombre { flex-direction: row; gap: 10px; font-size: 1.4rem; }
  html[data-diseno="hogar"] .cab .logo-nombre::before { width: 28px; height: 21px; }
  html[data-diseno="hogar"] .cab .logo-lema { padding-left: 38px; }
  html[data-diseno="hogar"] .cab-centrada .nav-lista a { font-size: 1.5rem; font-family: var(--f-titulos); letter-spacing: 0; }
  html[data-diseno="hogar"] .cab-centrada .nav-lista a::after { left: 14px; right: auto; width: 40px; }
}
@media (max-width: 400px) {
  html[data-diseno="hogar"] .cab .logo-lema { display: none; }
}

/* ---------------------------------------------------------------- portada mosaico: una galería coruñesa */
html[data-diseno="hogar"] .s-portada.v-mosaico {
  position: relative;
  /* La ría detrás de la galería, con unas líneas de agua */
  background-image: repeating-linear-gradient(180deg, transparent 0 26px, rgb(255 255 255 / .07) 26px 27px), linear-gradient(var(--ria), var(--ria));
  background-repeat: no-repeat;
  background-size: 46% 44%;
  background-position: left bottom;
}
@media (min-width: 861px) {
  html[data-diseno="hogar"] .s-portada.v-mosaico .portada-in { grid-template-columns: 1.08fr 1fr; gap: clamp(36px, 5.5vw, 88px); }
  html[data-diseno="hogar"] .s-portada.v-mosaico .portada-texto { order: 2; }
}
html[data-diseno="hogar"] .s-portada.v-mosaico .portada-titulo { font-size: clamp(2.7rem, 1.4rem + 4vw, 5rem); }
html[data-diseno="hogar"] .portada-mosaico {
  position: relative;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: clamp(34px, 3.4vw, 48px) 1fr 1fr;
  gap: 9px;
  aspect-ratio: 1.08 / 1;
  padding: 12px;
  background: var(--galeria);
  box-shadow: 0 0 0 1px rgb(20 55 66 / .1), var(--sombra-fuerte);
  margin-bottom: 18px;
}
/* La fila de cristalitos de arriba: cielo de niebla partido por montantes blancos */
html[data-diseno="hogar"] .portada-mosaico::before {
  content: "";
  grid-column: 1 / -1; grid-row: 1;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 4.5px), var(--galeria) calc(12.5% - 4.5px) 12.5%),
    linear-gradient(180deg, #cfdde1, #e9eef0 70%, #f4efe6);
}
/* El alféizar de piedra que sobresale por abajo */
html[data-diseno="hogar"] .portada-mosaico::after {
  content: "";
  position: absolute; left: -16px; right: -16px; bottom: -18px; height: 18px;
  background: linear-gradient(180deg, #ece7de, #d8d1c4);
  box-shadow: 0 10px 18px -10px rgb(20 55 66 / .55);
}
html[data-diseno="hogar"] .portada-mosaico figure { position: relative; border-radius: 0; }
html[data-diseno="hogar"] .portada-mosaico .m1 { grid-row: 2 / 4; }
html[data-diseno="hogar"] .portada-mosaico .m2 { grid-row: 2; }
html[data-diseno="hogar"] .portada-mosaico .m3 { grid-row: 3; }
/* Número de estancia, como una placa esmaltada */
html[data-diseno="hogar"] .portada-mosaico figure::after {
  position: absolute; left: 10px; bottom: 10px;
  display: grid; place-items: center; min-width: 34px; height: 26px; padding: 0 7px;
  border-radius: 3px; background: var(--ria); color: #fff;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .75), 0 2px 6px rgb(0 0 0 / .25);
  font: 600 .78rem/1 var(--f-texto); letter-spacing: .08em;
}
html[data-diseno="hogar"] .portada-mosaico .m1::after { content: "01"; }
html[data-diseno="hogar"] .portada-mosaico .m2::after { content: "02"; }
html[data-diseno="hogar"] .portada-mosaico .m3::after { content: "03"; }
html[data-diseno="hogar"] .s-portada .portada-destacados li { background: none; padding: 0; gap: 8px; }
html[data-diseno="hogar"] .s-portada .portada-destacados .ico { color: var(--roble); }
@media (max-width: 860px) {
  html[data-diseno="hogar"] .s-portada.v-mosaico { background-size: 100% 22%; }
  html[data-diseno="hogar"] .portada-mosaico { margin-inline: 10px; aspect-ratio: 1 / 1.02; padding: 9px; gap: 7px; margin-bottom: 30px; }
  html[data-diseno="hogar"] .portada-mosaico::after { left: -10px; right: -10px; height: 14px; bottom: -14px; }
}

/* ---------------------------------------------------------------- productos: baldas por estancias */
html[data-diseno="hogar"] .s-productos { counter-reset: estancia; }
html[data-diseno="hogar"] .prod-balda { counter-increment: estancia; }
html[data-diseno="hogar"] .prod-balda-cab {
  position: relative; padding-bottom: 20px; margin-bottom: 26px;
  /* Cinta métrica: una raya cada centímetro y una más larga cada cinco */
  background:
    repeating-linear-gradient(90deg, var(--roble-texto) 0 1px, transparent 1px 50px) left bottom / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, color-mix(in oklab, var(--roble-texto) 55%, transparent) 0 1px, transparent 1px 10px) left bottom / 100% 6px no-repeat,
    linear-gradient(var(--roble-claro), var(--roble-claro)) left bottom / 100% 1px no-repeat;
}
html[data-diseno="hogar"] .prod-balda .prod-grupo-tit { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); font-style: italic; font-variation-settings: 'wght' 380; }
html[data-diseno="hogar"] .prod-balda .prod-grupo-tit::before {
  content: counter(estancia, decimal-leading-zero);
  display: grid; place-items: center; width: 44px; height: 32px; flex: none;
  border-radius: 4px; background: var(--ria); color: #fff;
  box-shadow: inset 0 0 0 2px var(--ria), inset 0 0 0 3.5px rgb(255 255 255 / .8);
  font: 600 .9rem/1 var(--f-texto); font-style: normal; letter-spacing: .06em;
}
html[data-diseno="hogar"] .s-productos .prod { position: relative; }
html[data-diseno="hogar"] .s-productos .prod-foto { border-radius: var(--radio-foto); background: var(--galeria); padding: 8px; box-shadow: 0 0 0 1px var(--borde); }
html[data-diseno="hogar"] .s-productos .prod-foto img, html[data-diseno="hogar"] .s-productos .prod-foto .foto-hueco { border-radius: 1px; }
html[data-diseno="hogar"] .s-productos .prod-foto .prod-etq { left: 18px; top: 18px; border-radius: 2px; background: var(--ria); color: #fff; letter-spacing: .1em; }
html[data-diseno="hogar"] .s-productos .prod-cuerpo { padding-top: 14px; }
html[data-diseno="hogar"] .s-productos .prod h3 { font-size: 1.3rem; font-variation-settings: 'wght' 430; }
/* El precio cuelga en una etiqueta de cartón con su ojal */
html[data-diseno="hogar"] .s-productos .prod-precio {
  position: relative; padding: 5px 12px 5px 24px; border-radius: 2px 6px 6px 2px;
  background: var(--roble-claro); color: #3e2511; font-size: .98rem;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
}
html[data-diseno="hogar"] .s-productos .prod-precio::before { content: ""; position: absolute; left: 11px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--fondo); }
html[data-diseno="hogar"] .fondo-suave .s-productos .prod-precio::before, html[data-diseno="hogar"] .s-productos.fondo-suave .prod-precio::before { background: var(--fondo-suave); }
html[data-diseno="hogar"] .prod-nota { font-size: .9rem; color: var(--texto-suave); }

/* ---------------------------------------------------------------- texto solapada: ficha de catálogo sobre la foto */
html[data-diseno="hogar"] .s-texto.v-solapada .texto-cuerpo { border-radius: 2px; border-top: 6px solid var(--roble); box-shadow: 0 0 0 1px var(--borde), var(--sombra-fuerte); }
html[data-diseno="hogar"] .s-texto.v-solapada .texto-foto img { border-radius: 2px; }
html[data-diseno="hogar"] .s-texto .prosa p:first-child { font-family: var(--f-titulos); font-size: 1.32rem; line-height: 1.38; font-style: italic; font-variation-settings: 'wght' 360; color: var(--c1); }

/* ---------------------------------------------------------------- servicios en lista */
html[data-diseno="hogar"] .serv-lista h3 { font-size: 1.28rem; font-variation-settings: 'wght' 430; }
html[data-diseno="hogar"] .serv-lista .puntos { border-bottom: 2px dotted color-mix(in oklab, var(--roble) 60%, transparent); }
html[data-diseno="hogar"] .serv-lista strong { color: var(--roble-texto); font-weight: 700; }
html[data-diseno="hogar"] .serv-lista li { border-bottom-color: var(--borde); }

/* ---------------------------------------------------------------- galería apilada: fotos de catálogo con número */
html[data-diseno="hogar"] .s-galeria.v-apilada .galeria { counter-reset: casa; }
html[data-diseno="hogar"] .v-apilada .galeria li { counter-increment: casa; padding: 10px 10px 44px; background: #fffdf9; border-radius: 1px; }
html[data-diseno="hogar"] .v-apilada .galeria li:nth-child(4n+1) { --giro: -3deg; }
html[data-diseno="hogar"] .v-apilada .galeria li:nth-child(4n+2) { --giro: 2deg; }
html[data-diseno="hogar"] .v-apilada .galeria li:nth-child(4n+3) { --giro: -1deg; }
html[data-diseno="hogar"] .v-apilada .galeria li:nth-child(4n) { --giro: 3.5deg; }
html[data-diseno="hogar"] .v-apilada .galeria li::after {
  content: counter(casa, decimal-leading-zero);
  position: absolute; left: 14px; bottom: 11px;
  padding-left: 30px; font: italic 380 1.05rem/22px var(--f-titulos); color: var(--c1);
  background: var(--casita-ria) left center / 24px 18px no-repeat;
}
html[data-diseno="hogar"] .v-apilada .galeria li::before { content: ""; position: absolute; right: 14px; bottom: 21px; width: 38%; height: 1px; background: var(--borde); }

/* ---------------------------------------------------------------- testimonios: muestras de tela con borde de zigzag */
html[data-diseno="hogar"] .s-testimonios.v-muro .testimonio {
  --tela: #e3d6bf;
  position: relative; padding: clamp(36px, 3.4vw, 46px) clamp(24px, 2.6vw, 34px) clamp(26px, 2.6vw, 32px);
  border-radius: 0; box-shadow: 0 14px 26px -20px rgb(20 55 66 / .55);
  background: var(--tela);
  outline: 1.5px dashed rgb(27 42 48 / .22); outline-offset: -11px;
  --picos: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / 18px 9px repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / 18px 9px repeat-x, linear-gradient(#000 0 0) 0 50% / 100% calc(100% - 18px) no-repeat;
  -webkit-mask: var(--picos);
  mask: var(--picos);
  color: var(--texto);
}
html[data-diseno="hogar"] .s-testimonios.v-muro .testimonio:nth-child(5n+2) { --tela: #cddde2; }
html[data-diseno="hogar"] .s-testimonios.v-muro .testimonio:nth-child(5n+3) { --tela: #ecd5b2; }
html[data-diseno="hogar"] .s-testimonios.v-muro .testimonio:nth-child(5n+4) { --tela: #d6ddc6; }
html[data-diseno="hogar"] .s-testimonios.v-muro .testimonio:nth-child(5n) { --tela: #e9d2c8; }
html[data-diseno="hogar"] .s-testimonios.v-muro .testimonio:nth-child(4n+2) { background: var(--tela); color: var(--texto); }
html[data-diseno="hogar"] .s-testimonios.v-muro .testimonio:nth-child(4n+2) .comillas, html[data-diseno="hogar"] .s-testimonios.v-muro .testimonio:nth-child(4n+2) figcaption span { opacity: 1; }
html[data-diseno="hogar"] .s-testimonios.v-muro .testimonio .comillas { width: 26px; height: 26px; color: var(--roble-texto); margin-bottom: 14px; }
html[data-diseno="hogar"] .s-testimonios.v-muro .testimonio blockquote { font-family: var(--f-titulos); font-size: 1.14rem; line-height: 1.5; font-variation-settings: 'wght' 380; }
html[data-diseno="hogar"] .s-testimonios.v-muro .testimonio figcaption strong { font-weight: 700; }
html[data-diseno="hogar"] .s-testimonios.v-muro .testimonio figcaption span { color: #4a565b; }

/* ---------------------------------------------------------------- cifras, pasos y preguntas */
html[data-diseno="hogar"] .cifra dt { font-style: italic; font-variation-settings: 'wght' 330; }
html[data-diseno="hogar"] .cifra dd { font-weight: 400; }
html[data-diseno="hogar"] .s-cifras .cifra { padding-top: 18px; border-top: 2px solid var(--roble-claro); }
html[data-diseno="hogar"] .s-pasos .paso { border-top: 0; padding-top: 30px; background: repeating-linear-gradient(90deg, var(--roble-texto) 0 1px, transparent 1px 10px) left top / 100% 8px no-repeat, linear-gradient(var(--roble-claro), var(--roble-claro)) left top / 100% 1px no-repeat; }
html[data-diseno="hogar"] .s-pasos .paso-num { font-style: italic; color: var(--roble-texto); }
html[data-diseno="hogar"] .s-faq details { border-radius: 2px; }

/* ---------------------------------------------------------------- equipo, ventajas, CTA y contacto */
html[data-diseno="hogar"] .s-equipo.v-retratos .persona figure img, html[data-diseno="hogar"] .s-equipo.v-retratos .persona .foto-hueco { border-radius: 2px; }
html[data-diseno="hogar"] .s-equipo.v-retratos .persona-texto { border-radius: 0 0 2px 2px; background: linear-gradient(transparent, rgb(20 55 66 / .85)); }
html[data-diseno="hogar"] .s-ventajas .ventaja .ico, html[data-diseno="hogar"] .s-ventajas .vent-ico { color: var(--c1); }
html[data-diseno="hogar"] .s-cta.fondo-marca { background-color: var(--ria); }
html[data-diseno="hogar"] .s-cta h2 em { color: var(--roble-claro); }
html[data-diseno="hogar"] .s-cta .cta-foto img, html[data-diseno="hogar"] .s-cta figure img { border-radius: 2px; }
html[data-diseno="hogar"] .s-contacto .contacto-ficha, html[data-diseno="hogar"] .s-contacto .mapa { border-radius: 2px; }

/* ---------------------------------------------------------------- pie centrado: la ría de noche */
html[data-diseno="hogar"] .pie { background: var(--ria-noche); }
html[data-diseno="hogar"] .pie .logo-pie .logo-nombre { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; font-size: 2rem; font-style: italic; font-variation-settings: 'wght' 360; }
html[data-diseno="hogar"] .pie .logo-pie .logo-nombre::before { content: ""; width: 40px; height: 30px; background: var(--roble-claro); -webkit-mask: var(--casita) center / contain no-repeat; mask: var(--casita) center / contain no-repeat; }
html[data-diseno="hogar"] .pie-centrado .pie-rejilla { border-bottom-color: rgb(255 255 255 / .14); }
