/* Rediseño de tienda: De día sofá, de noche cama. Se carga después del resto de estilos. */
:root{
  --dia:#eef2f6;--blanco:#ffffff;--noche:#1b2a4a;--noche-2:#141f38;--tinta:#18233a;--hover:#111b31;--sobre-oscuro:#d3dceb;
  --gris:#55617a;--linea:#d3dbe5;--mostaza:#f2b33d;--mostaza-h:#f7c561;
  --display:'Playfair Display',Georgia,serif;--texto:'DM Sans',system-ui,sans-serif;
  --ink:var(--tinta);--paper:var(--dia);--olive:var(--noche);--muted:var(--gris);--line:var(--linea);
  --ancho:1360px;--margen:clamp(16px,3.4vw,48px);
}
body,button,input{font-family:var(--texto)}
body{background:var(--dia);color:var(--tinta);font-size:16px;line-height:1.55}
h1,h2,h3,.detail-copy h2,#detail-title{font-family:var(--display);font-weight:700;letter-spacing:-.02em;color:var(--tinta)}
h1 em,h2 em{font-style:normal}
.eyebrow{display:none}
:focus-visible{outline:3px solid var(--mostaza);outline-offset:2px}

/* Barra superior y encabezado */
.utility-bar{background:var(--noche);color:#fff}
.utility-links,.utility-actions{display:none!important}
.utility-inner{display:flex;justify-content:center}
.utility-message{font-size:13px;letter-spacing:0;text-transform:none;font-family:var(--texto);color:#fff}
.header,body.site-home .header,body.site-home .header.scrolled{position:sticky;top:0;height:76px;display:flex;align-items:center;gap:32px;padding:0 var(--margen);background:var(--blanco)!important;border-bottom:1px solid var(--linea);box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;color:var(--tinta)}
.header .brand-logo,body.site-home .header .brand-logo{position:static;transform:none;margin:0;flex:none;color:var(--tinta)}
.header .brand-logo img,body.site-home .header .brand-logo img{filter:none!important}
.brand-logo.logo7 img.logo7-mark{height:50px;width:auto}
footer .logo7-t1,footer .logo7-t2,footer .logo7-text{color:#fff!important}
footer .brand-logo img{filter:brightness(0) invert(1)!important}
@media(min-width:961px){
  .header nav#main-nav,body.site-home .header nav#main-nav{position:static;display:flex;flex:1;align-items:center;gap:28px;background:none;transform:none;height:auto;padding:0;width:auto;box-shadow:none;border:0}
  .header .nav-group{position:static;display:flex;gap:28px;transform:none;width:auto;flex:none}
  .header nav a,body.site-home .header nav a{color:var(--tinta)!important;font-size:15px;font-weight:500;letter-spacing:0;text-transform:none}
  .header nav a:hover{text-decoration:underline;text-underline-offset:5px}
  .mobile-menu-extras,.header .menu-toggle{display:none!important}
}
.header-actions,body.site-home .header-actions{display:flex!important;position:static;align-items:center;gap:8px;margin-left:auto;transform:none}
.header-actions .icon,.header-actions .bag,body.site-home .header-actions .icon,body.site-home .header-actions .bag{color:var(--tinta)!important;background:none;border:0;font-size:15px;font-weight:600;letter-spacing:0;text-transform:none;display:inline-flex;align-items:center;gap:7px;min-height:44px;min-width:44px;justify-content:center;padding:0 8px}
.header-actions .icon{font-size:24px}
.menu-toggle,body.site-home .menu-toggle{color:var(--tinta)!important}
@media(max-width:960px){
  .header,body.site-home .header,body.site-home .header.scrolled{height:64px;gap:8px;padding:0 8px}
  .brand-logo.logo7 img.logo7-mark{height:38px}
  /* Sin bolsa propia: la lupa ocupa la tercera columna del encabezado en móvil. */
  .header-actions #search-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:44px;padding:0}
  #main-nav a{text-transform:none;letter-spacing:0;color:var(--tinta)!important}
}

/* Botones */
.boton,.button,.button.dark,a.buy-link{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 26px;border-radius:6px;border:0;background:var(--noche);color:#fff;font:600 16px/1 var(--texto);letter-spacing:0;text-transform:none;text-decoration:none;cursor:pointer;width:auto}
.boton:hover,.button:hover,.button.dark:hover,a.buy-link:hover{background:var(--noche-2);color:#fff}
.boton-claro{background:none;color:var(--tinta);box-shadow:inset 0 0 0 1.5px var(--tinta)}
.boton-claro:hover{background:var(--tinta);color:#fff}

/* Portada: texto y foto del sofá */
.portada{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:center;gap:clamp(24px,4vw,64px);max-width:var(--ancho);margin:0 auto;padding:clamp(24px,4vw,56px) var(--margen)}
.portada h1{font-size:clamp(46px,6.6vw,104px);line-height:.94;letter-spacing:-.04em;font-weight:800;margin:0}
.portada h1 span{display:block}
.portada h1 .noche{color:var(--noche);opacity:.55}
.portada-texto>p{font-size:clamp(17px,1.5vw,20px);color:var(--gris);max-width:30em;margin:22px 0 28px}
.portada-acciones{display:flex;flex-wrap:wrap;gap:12px}
.portada-foto{display:block;width:100%;height:auto;aspect-ratio:1/1;max-height:min(76vh,760px);object-fit:cover;object-position:center 70%;background:#ddd;border-radius:4px}
@media(max-width:860px){.portada{grid-template-columns:1fr}.portada-foto{max-height:none}.portada h1{font-size:clamp(46px,14vw,76px)}}

/* Cuadrícula de productos: portada y catálogo */
.vista{display:inline-flex;padding:4px;background:#e4e7e3;border-radius:8px}
.vista button{min-height:42px;padding:0 20px;border:0;border-radius:6px;background:none;color:var(--tinta);font:600 15px/1 var(--texto);cursor:pointer}
.vista button[aria-pressed=true]{background:var(--noche);color:#fff}
.featured-section,.featured-section:not([hidden]),body.site-home .featured-section:not([hidden]){display:block;background:var(--blanco);border:0;padding:clamp(40px,5vw,72px) 0}
.featured-section[hidden]{display:none}
.featured-section .section-heading{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:16px;max-width:var(--ancho);margin:0 auto 28px;padding:0 var(--margen)}
.featured-section h2,.tienda-titulo{font-size:clamp(30px,3.6vw,48px);line-height:1.02;margin:0}
.featured-grid,.featured-section .featured-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px 20px;max-width:var(--ancho);margin:0 auto;padding:0 var(--margen)}
.product-grid,#products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:36px 20px}
.featured-card{display:block;color:inherit;text-decoration:none;min-width:0}
.featured-image,.product-card .product-image{position:relative;display:block;width:100%;aspect-ratio:1;overflow:hidden;background:#e8e6e1;border:0;padding:0;border-radius:4px;cursor:pointer}
.featured-image img,.product-card .product-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:none!important}
.foto-cama{opacity:0;transition:opacity .25s ease}
body.vista-cama .foto-cama{opacity:1}
@media(hover:hover){.featured-card:hover .foto-cama,.product-card .product-image:hover .foto-cama{opacity:1}}
.featured-card h3,.product-card h3{font-size:20px;font-weight:700;line-height:1.15;margin:12px 0 2px;letter-spacing:-.01em}
.featured-price,.product-card .product-price,.product-card .line-meta strong{font:600 16px/1.3 var(--texto);color:var(--tinta);margin:0}
.product-card{display:flex;flex-direction:column;height:100%;background:none;border:0;padding:0}
.product-card .product-title{display:block;margin:0}
.product-card .fabric-label,.product-card .fabric-selected{display:none}
.product-card .fabric-options{margin:8px 0 6px}
.fabric-choice{width:26px;height:26px;min-width:26px}
@media(max-width:1100px){.featured-grid,.featured-section .featured-grid,.product-grid,#products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.featured-grid,.featured-section .featured-grid,.product-grid,#products{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 12px}.featured-card h3,.product-card h3{font-size:17px}}

/* Catálogo */
.page-intro{max-width:var(--ancho);margin:0 auto;padding:clamp(20px,3vw,36px) var(--margen) 0;background:none;border:0;text-align:left}
.page-intro h1{font-size:clamp(40px,5.4vw,76px);line-height:1;letter-spacing:-.035em;font-weight:800;margin:8px 0}
.page-intro-text{color:var(--gris);font-size:17px;margin:0}
.collection.section{max-width:var(--ancho);margin:0 auto;padding:20px var(--margen) clamp(48px,6vw,80px);background:none}
.catalog-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin:0 0 24px;padding:0;border:0}
.catalog-toolbar .search{flex:0 1 320px;border:1.5px solid var(--linea);border-radius:6px;background:#fff;padding:0 12px;min-height:50px;display:flex;align-items:center}
.catalog-toolbar .search input{border:0;background:none;width:100%;font-size:16px;min-height:46px}
.guide.section{background:var(--blanco);max-width:none;padding:clamp(48px,6vw,80px) var(--margen)}
.guide .section-heading,.guide-grid{max-width:var(--ancho);margin-left:auto;margin-right:auto}
.guide h2{font-size:clamp(30px,3.6vw,48px)}
.guide-grid article{background:none;border:0;border-top:2px solid var(--tinta);padding:16px 0 0}
.guide-grid article span{color:var(--gris);font-size:14px;letter-spacing:0;text-transform:none}
.guide-grid h3{font-size:22px}

/* Banda de showroom */
.banda{background:var(--noche);color:#fff}
.banda>div{display:grid;grid-template-columns:minmax(0,7fr) auto;align-items:center;gap:24px;max-width:var(--ancho);margin:0 auto;padding:clamp(36px,5vw,64px) var(--margen)}
.banda h2{color:#fff;font-size:clamp(30px,3.6vw,48px);line-height:1.04;margin:0 0 10px}
.banda p{margin:0;color:#d6e0e2;font-size:17px;max-width:38em}
.banda-acciones{display:flex;flex-wrap:wrap;gap:12px}
.banda .boton{background:var(--mostaza);color:var(--tinta)}
.banda .boton:hover{background:#efbd55;color:var(--tinta)}
.banda .boton-claro{background:none;color:#fff;box-shadow:inset 0 0 0 1.5px #fff}
.banda .boton-claro:hover{background:#fff;color:var(--tinta)}
@media(max-width:760px){.banda>div{grid-template-columns:1fr}}

/* Resto de la portada */
.blog-section.section,body.site-home .featured-section:not([hidden])~.blog-section{background:var(--dia);border:0}
.blog-section h2,.home-about h2{font-size:clamp(30px,3.6vw,48px);line-height:1.04}
.home-about.section,body.site-home .home-about,body.site-home .featured-section:not([hidden])~.home-about{background:var(--blanco);border:0}
footer{background:var(--noche-2);color:#fff}
footer a,footer p,footer span{color:#fff}
.footer-bottom{letter-spacing:0;text-transform:none}

/* Ficha de producto */
#product-dialog{border-radius:8px;border:0;background:#fff;color:var(--tinta)}
#product-dialog::backdrop{background:rgba(15,37,44,.6)}
#product-dialog .eyebrow{display:none}
.detail-copy h2{font-size:clamp(28px,3vw,42px);line-height:1.05;margin:0 0 10px}
.detail-copy .product-price{font:700 26px/1.2 var(--texto);margin:16px 0 8px}
.purchase-row{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-top:12px}
.purchase-row .buy-link{width:100%;min-height:54px;background:var(--mostaza);color:var(--tinta)}
.purchase-row .buy-link:hover{background:#efbd55;color:var(--tinta)}
#back-to-catalog{background:none;color:var(--tinta);box-shadow:inset 0 0 0 1.5px var(--linea);width:100%;margin-top:10px}
#back-to-catalog span{display:none}
#back-to-catalog:hover{background:var(--dia);color:var(--tinta)}
@media(prefers-reduced-motion:reduce){.foto-cama{transition:none}}

/* Ajustes tras revisión */
body main,body.site-home main,body #contenido{margin-top:0!important;padding-top:0}
.utility-bar{position:static}
.header,body.site-home .header,body.site-home .header.scrolled{position:sticky!important;top:0!important;left:auto;right:auto;z-index:50;width:100%}
html{scroll-padding-top:90px}
@media(min-width:961px){
  .header nav#main-nav a,body.site-home .header nav#main-nav a{color:var(--tinta)!important;font:500 15px/1.2 var(--texto)!important;letter-spacing:0!important;text-transform:none!important}
}
.featured-card h3,.product-card h3,.product-card .product-title h3{font-family:var(--display)!important;font-weight:700!important;font-size:20px;letter-spacing:-.01em;color:var(--tinta)}
.header-actions .icon svg{width:22px;height:22px}
@media(max-width:960px){
  .header-actions{flex:none}
  .brand-logo.logo7{min-width:0}
  .portada h1{margin-top:4px}
}
.product-card .product-title,.product-card .product-title:has(.product-price){display:flex!important;flex-direction:column;align-items:flex-start;gap:2px;margin-top:12px}
.product-card .product-title h3{margin:0}
.product-card .purchase-row,.product-card .product-meta{display:block;text-align:left;margin:0}
.product-card .product-price{text-align:left;margin:2px 0 0}
.fabric-choices{display:flex;flex-wrap:wrap;gap:8px}
.fabric-choice,.product-card .fabric-choice{flex:none;width:28px!important;height:28px!important;min-width:0;padding:3px;border-radius:50%;aspect-ratio:1}
.fabric-choice span{display:block;width:100%;height:100%;border-radius:50%}
@media(pointer:coarse){.product-card .fabric-choice{width:32px!important;height:32px!important}}
#product-dialog .product-gallery{background:var(--dia)}
#product-dialog .detail-copy .purchase-row{display:flex!important;flex-direction:column!important;align-items:stretch!important;text-align:left}
#product-dialog .detail-copy .product-price{text-align:left!important;width:100%;font:700 28px/1.2 var(--texto)}
#product-dialog a.buy-link{width:100%!important;border-radius:6px!important;min-height:54px;font:700 17px/1 var(--texto)!important;letter-spacing:0!important;text-transform:none!important;background:var(--mostaza);color:var(--tinta)}
#product-dialog #back-to-catalog{border-radius:6px;font:600 16px/1 var(--texto);letter-spacing:0;text-transform:none}
#product-dialog .close{border-radius:6px}

/* Segunda revisión */
.header,body.site-home .header,body.site-home .header.scrolled{margin:0!important}
body.site-home .portada{padding-top:clamp(24px,4vw,56px)}
#product-dialog .fabric-choice,.fabric-choice,.product-card .fabric-choice{min-height:0!important;max-height:none;box-sizing:border-box}
#product-dialog .fabric-choice{width:34px!important;height:34px!important}
@media(max-width:960px){
  .header,body.site-home .header,body.site-home .header.scrolled{padding:0 12px 0 8px}
  .catalog-toolbar{flex-direction:row!important;align-items:center}
  .catalog-toolbar .vista{flex:none}
  .catalog-toolbar .search{flex:1 1 100%!important;width:100%;height:50px;max-height:50px;min-height:50px}
}
h2 em,.blog-section h2 em,.home-about h2 em,.home-about h2{font-style:normal;font-weight:700;color:var(--tinta)}
.blog-section h3,.blog-section h3 a{font-family:var(--display)!important;font-weight:700;color:var(--tinta);letter-spacing:-.01em}
.blog-section .eyebrow{display:none}
@media(min-width:761px){.blog-all-mobile,#blog .blog-all-mobile,#blog .journal-card:first-child .blog-all-mobile{display:none!important}}
.page-intro{border-bottom:0!important}


/* Landing: marca hija de Shalom */
h1,h2,h3,.detail-copy h2,#detail-title{font-weight:500;letter-spacing:-.005em}
.portada h1{font-size:clamp(44px,5.8vw,90px);line-height:1.02;letter-spacing:-.015em;font-weight:500}
.page-intro h1{font-weight:500;letter-spacing:-.01em}
.featured-card h3,.product-card h3,.product-card .product-title h3{font-weight:600!important;letter-spacing:0}
.utility-bar{background:var(--noche)}
.utility-message{letter-spacing:.02em}
/* Toldo: la franja y los arcos del logo de la marca */
.toldo{height:22px;background:radial-gradient(circle at 50% -60%,transparent 66%,var(--linea) 66.5%,var(--linea) 69%,transparent 69.5%) 0 0/120px 44px repeat-x,var(--dia)}
.boton{background:var(--noche);color:#fff}
.boton:hover{background:var(--hover);color:#fff}
.boton-claro{background:none;color:var(--tinta);box-shadow:inset 0 0 0 1.5px var(--tinta)}
.boton-claro:hover{background:var(--tinta);color:#fff}
.vista button[aria-pressed=true]{background:var(--noche);color:#fff}
.vista{background:#dfe6ee}
.respaldo{display:flex;align-items:center;gap:12px;margin:26px 0 0!important;font-size:15px!important;color:var(--tinta)!important}
.respaldo img{height:42px;width:auto;flex:none}
.hechos{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--linea);border-block:1px solid var(--linea)}
.hechos div{background:var(--blanco);padding:clamp(18px,2.4vw,30px) clamp(16px,3vw,44px)}
.hechos strong{display:block;font:500 clamp(22px,2.4vw,32px)/1.15 var(--display);color:var(--tinta)}
.hechos span{font-size:15px;color:var(--gris)}
@media(max-width:700px){.hechos{grid-template-columns:repeat(2,1fr)}}
.collection.section,#modelos{padding-top:clamp(44px,6vw,80px);scroll-margin-top:80px}
.encabezado{margin:0 0 22px}
.encabezado h2,.guide h2,.familia h2,.visita h2,.guias h2{font-size:clamp(32px,3.6vw,52px);line-height:1.08;margin:0 0 10px}
.encabezado p{margin:0;color:var(--gris);font-size:17px}
#guia{scroll-margin-top:80px}
.guide-grid article{border-top-color:var(--mostaza)}
.familia{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);align-items:center;gap:clamp(28px,5vw,88px);padding:clamp(52px,7vw,104px) max(var(--margen),calc((100% - var(--ancho))/2));background:var(--dia);scroll-margin-top:80px;border-top:1px solid var(--linea)}
.familia-marca img{display:block;width:100%;max-width:440px;height:auto;margin:auto}
.familia-texto p{font-size:18px;color:var(--gris);max-width:36em;margin:0 0 24px}
.visita{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);align-items:stretch;background:var(--noche-2);color:#fff;scroll-margin-top:80px}
.visita-foto{min-height:360px}
.visita-foto img{display:block;width:100%;height:100%;max-height:640px;object-fit:cover}
.visita-texto{padding:clamp(36px,5vw,80px) var(--margen);align-self:center}
.visita h2{color:#fff}
.visita p{color:var(--sobre-oscuro);font-size:17px;margin:0 0 18px;max-width:32em}
.visita address{font-style:normal;font-size:19px;line-height:1.5;margin:0 0 14px;color:#fff}
.visita address a{color:#fff}
.visita .nota{font-size:15px}
.visita .boton{background:var(--mostaza);color:var(--noche-2)}
.visita .boton:hover{background:var(--mostaza-h);color:var(--noche-2)}
.visita .boton-claro{background:none;color:#fff;box-shadow:inset 0 0 0 1.5px #fff}
.visita .boton-claro:hover{background:#fff;color:var(--noche-2)}
@media(max-width:860px){.familia,.visita{grid-template-columns:1fr}.visita-foto{min-height:0}.visita-foto img{aspect-ratio:4/3;max-height:none}}
.guias{max-width:var(--ancho);margin:0 auto;padding:clamp(44px,6vw,72px) var(--margen)}
.guias h2{font-size:clamp(26px,2.6vw,36px);margin-bottom:14px}
.guias ul{list-style:none;margin:0;padding:0;border-top:1px solid var(--linea)}
.guias li{border-bottom:1px solid var(--linea)}
.guias a{display:block;padding:16px 0;color:var(--tinta);font-size:18px;text-decoration:none}
.guias a:hover{text-decoration:underline;text-underline-offset:4px}
footer{background:var(--noche-2)}
.marca-madre{display:inline-flex;align-items:center;gap:16px;margin:8px 0 22px;color:#fff;text-decoration:none}
.marca-madre span{font-size:14px;color:var(--sobre-oscuro)}
.marca-madre img{height:46px;width:auto;filter:brightness(0) invert(1)}
#product-dialog a.buy-link{background:var(--noche)!important;color:#fff!important}
#product-dialog a.buy-link:hover{background:var(--hover)!important}
.featured-section{display:none!important}
.toldo{height:26px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='26'%3E%3Cpath d='M12 0C12 16 28 22 48 22H152C172 22 188 16 188 0' fill='none' stroke='%23b9c6d6' stroke-width='1.4'/%3E%3C/svg%3E") 0 0/200px 26px repeat-x}
@media(min-width:961px){.header,body.site-home .header{height:88px}}
html{scroll-padding-top:104px}
.guide.section,.familia,.hechos{padding-inline:calc(max(0px,(100% - var(--ancho))/2) + var(--margen))!important}
.hechos{background:var(--blanco);gap:0}
.hechos div{padding-inline:clamp(14px,2vw,28px);border-left:1px solid var(--linea)}
.hechos div:first-child{border-left:0;padding-left:0}
.guide .section-heading,.guide-grid{max-width:none}
.marca-madre img{height:50px}
@media(max-width:700px){.hechos div:nth-child(odd){border-left:0;padding-left:0}.hechos div{padding-block:14px}}

/* Paleta Noche y sol */
.logo7-t1,.logo7-t2,.logo7-t3{color:var(--tinta)}
.logo7-sep{background:var(--linea)}
footer .logo7-t1,footer .logo7-t2,footer .logo7-t3{color:#fff}
#product-dialog a.buy-link{background:var(--mostaza)!important;color:var(--noche-2)!important}
#product-dialog a.buy-link:hover{background:var(--mostaza-h)!important}
.boton:hover{background:var(--hover)}
.portada-acciones .boton:not(.boton-claro){background:var(--noche)}
.visita .portada-acciones .boton:not(.boton-claro){background:var(--mostaza);color:var(--noche-2)}
.guide-grid article{border-top-color:var(--noche)}
/* Los títulos del catálogo pasan del azul a un carbón cálido de la paleta editorial. */
body.landing main h2,body.landing main h3,body.landing main .product-title h3,body.landing main .featured-card h3{color:#4a382f!important}
#product-dialog .fabric-choices{align-items:center}#product-dialog .fabric-choice{flex:0 0 34px;line-height:0}

/* Recorrido de compra: botón en cada tarjeta, ficha con compra fija en móvil, cierre y barra móvil */
.product-card .product-price{display:inline-flex;align-items:center;width:calc(55% - 8px);min-height:46px}
.product-card .product-link{display:inline-flex;align-items:center;justify-content:center;width:calc(45% - 8px);min-height:46px;margin:12px 0 0 12px;padding:0 12px;border:1px solid rgba(74,56,47,.16);border-radius:999px;background:#f1c98f;color:#2c211d;font:600 15px/1 var(--texto);cursor:pointer;box-shadow:0 8px 18px rgba(74,56,47,.10);transition:background .2s ease,box-shadow .2s ease,transform .2s ease;vertical-align:middle}
.product-card .product-link:hover{background:#fff5e7;color:#2c211d;text-decoration:none;box-shadow:0 10px 22px rgba(74,56,47,.16);transform:translateY(-1px)}
.product-card .product-link,.product-card .purchase-row .buy-link{display:none!important}
@media(max-width:700px){
  .product-card .product-price{display:flex;width:100%;min-height:0}
  .product-card .product-link{display:flex;width:100%;margin:12px 0 0}
}
#product-dialog .detail-whatsapp{width:100%;margin-top:10px}
#product-dialog .detail-nota{font-size:14px;line-height:1.5;color:var(--gris);margin:12px 0 0}
#product-dialog #back-to-catalog{box-shadow:none;min-height:44px;margin-top:4px;text-decoration:underline;text-underline-offset:4px}
#product-dialog #back-to-catalog:hover{background:none;text-decoration-thickness:2px}
@media(max-width:800px){
  /* La columna de la ficha nunca crece más que el diálogo (un precio largo la ensanchaba) */
  #product-dialog .detail-layout{grid-template-columns:minmax(0,1fr)}
  #product-dialog .detail-copy{min-width:0}
  /* Precio y Comprar en una fila; si no caben, Comprar baja a una fila propia a todo el ancho */
  #product-dialog .detail-copy .purchase-row{position:sticky;bottom:0;z-index:3;flex-direction:row!important;flex-wrap:wrap;align-items:center!important;gap:10px 14px;margin:18px 0 0;padding:12px 0;background:#fff;box-shadow:0 -1px 0 var(--linea)}
  #product-dialog .detail-copy .purchase-row .product-price{flex:none;width:auto;margin:0;font-size:22px}
  #product-dialog .purchase-row a.buy-link{flex:1 1 6.5rem;min-height:50px;padding-inline:14px;margin:0}
}
.enlace-texto{display:inline-flex;align-items:center;min-height:44px;color:var(--tinta);font-weight:600;text-decoration:underline;text-underline-offset:4px}
.enlace-texto:hover{text-decoration-thickness:2px}
.cierre{background:var(--blanco);border-top:1px solid var(--linea);padding:clamp(48px,6vw,88px) calc(max(0px,(100% - var(--ancho))/2) + var(--margen))}
.cierre h2{font-size:clamp(32px,3.6vw,52px);line-height:1.08;margin:0 0 10px}
.cierre>p{font-size:18px;color:var(--gris);max-width:34em;margin:0 0 24px}
.cierre-confianza{display:flex;flex-wrap:wrap;gap:8px 28px;list-style:none;margin:26px 0 0;padding:0;color:var(--gris);font-size:15px}
.cierre-confianza li::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--mostaza);margin:0 10px 2px 0}
.barra-compra{display:none}
@media(max-width:860px){
  .barra-compra:not([hidden]){position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;gap:10px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#fff;box-shadow:0 -1px 0 var(--linea),0 -6px 18px rgba(20,31,56,.08)}
  .barra-compra .boton{flex:1;min-height:48px}
  .barra-whatsapp{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;border-radius:6px;background:#25d366;color:#08311b;font-weight:700;text-decoration:none}
  body.con-barra .whatsapp-float{display:none}
  body.modal-open .barra-compra{display:none!important}
  .landing footer{padding-bottom:96px}
}

/* Catálogo: modelos destacados (Runa y Rubí), aviso de acabado original y fotos de estudio */
@media(max-width:1100px) and (min-width:701px){
  #products{grid-template-columns:repeat(6,minmax(0,1fr))}
  #products>.product-card{grid-column:span 2}
}
#products .destacado .product-image{aspect-ratio:1}
#products .destacado .product-image img{object-position:center 64%}
.foto-acabado{position:absolute;left:10px;bottom:10px;z-index:2;max-width:calc(100% - 20px);padding:5px 9px;border-radius:4px;background:rgba(255,255,255,.92);color:var(--tinta);font:500 12px/1.25 var(--texto);text-align:left;pointer-events:none}
@media(max-width:700px){.foto-acabado{left:6px;bottom:6px;max-width:calc(100% - 12px);padding:4px 7px;font-size:12px}}
#product-dialog .fabric-view-note{font-size:14px!important;line-height:1.45!important;color:var(--gris);margin:6px 0 0}
#products .foto-estudio .product-image{background:#ddd5c9;isolation:isolate}
#products .foto-estudio .product-image img{mix-blend-mode:multiply}
#product-dialog.foto-estudio .gallery-stage{background:#ddd5c9;isolation:isolate}
#product-dialog.foto-estudio .gallery-stage>img{background:transparent;mix-blend-mode:multiply}
#product-dialog.foto-estudio .photo-thumbnails img{mix-blend-mode:multiply}

/* Legibilidad: ningún texto funcional por debajo de 12 px y verde de WhatsApp con texto oscuro (7.2:1) */
.utility-bar .utility-message{font-size:12px;letter-spacing:.02em}
.guide-grid p{font-size:15px;line-height:1.6}
#product-dialog #photo-caption,#product-dialog .fabric-label{font-size:13px}
#product-dialog .fabric-selected{font-size:14px}
footer .footer-top p,footer .footer-top nav,footer .footer-top nav a,footer .footer-legal,footer .footer-legal a,footer .footer-contact a{font-size:14px}
footer .footer-bottom{font-size:13px}
.whatsapp-float{color:#08311b}
/* Pie en móvil: una sola columna para que contacto y enlaces legales no se crucen con el texto a 14 px */
@media(max-width:600px){
  footer{grid-template-columns:minmax(0,1fr)}
  footer .footer-legal{grid-column:1;grid-row:2;align-items:flex-start;text-align:left}
  footer .footer-top .brand-logo{grid-row:3}
  footer .footer-bottom{grid-row:4}
  footer .marca-madre{grid-column:1;grid-row:5}
}

/* Portada: el Rubí en la misma sala ocupa el frente; cerrado al inicio, abierto al pasar el mouse, en 4 telas */
.escena{margin:0;min-width:0}
.escena-marco{position:relative;overflow:hidden;border-radius:4px;background:#ddd}
.escena-marco img{display:block;width:100%;height:auto;aspect-ratio:1/1;max-height:min(68vh,680px);object-fit:cover;object-position:center 70%}
.escena-marco .escena-cama,.escena-marco .escena-salida{position:absolute;inset:0;height:100%;max-height:none}
/* Cerrado al inicio; abierto como cama al pasar el mouse por el banner o, en pantallas táctiles, al tocar la foto */
.escena-cama{opacity:0;transition:opacity .4s cubic-bezier(.23,1,.32,1)}
.escena-marco.abierto .escena-cama{opacity:1}
@media(hover:hover){.escena:hover .escena-cama{opacity:1}}
@media(hover:none){.escena-marco{cursor:pointer}}
.escena-pista-toque{display:none}
@media(hover:none){.escena-pista-mouse{display:none}.escena-pista-toque{display:inline}}
.escena-salida{z-index:2;pointer-events:none;transition:opacity .3s cubic-bezier(.23,1,.32,1)}
.escena-salida.fuera{opacity:0}
.escena-controles{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-top:12px}
.escena-ajustes{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.escena-telas{display:flex;gap:2px}
.escena-tela{position:relative;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}
.escena-tela::before{content:"";position:absolute;inset:8px;border-radius:50%;background:var(--tela);box-shadow:inset 0 0 0 1px rgba(24,35,58,.2);transition:transform .16s ease-out}
.escena-tela:active::before{transform:scale(.92)}
.escena-tela[aria-pressed=true]::after{content:"";position:absolute;inset:3px;border-radius:50%;border:2px solid var(--noche)}
.escena-tela:focus-visible{outline:3px solid var(--mostaza);outline-offset:1px}
.escena-pie{display:flex;flex-wrap:wrap;align-items:center;gap:0 12px;margin:0;font-size:15px;color:var(--gris)}
/* La foto sube hasta la barra superior por detrás del encabezado, que va transparente mientras
   la página está arriba (tienda.js le pone .sobre-foto) y se vuelve blanco al bajar o al abrir el menú. */
body.landing{--cabecera:88px}
@media(max-width:960px){body.landing{--cabecera:64px}}
body.landing .toldo{display:none}
body.landing .portada{margin-top:calc(-1 * var(--cabecera))}
body.landing .header{transition:background-color .25s ease,border-color .25s ease}
body.landing .header.sobre-foto:not(:has(#main-nav.is-open)){background:transparent!important;border-bottom-color:rgba(24,35,58,.1)}
body.landing .header.sobre-foto:not(:has(#main-nav.is-open)) :is(#search-toggle,.menu-toggle){width:44px;height:44px;min-width:0;padding:0;background:rgba(255,255,255,.9);border-radius:50%;box-shadow:0 2px 10px rgba(20,31,56,.12)}
/* Hasta 860 px la foto va primero, de borde a borde, y el texto sigue debajo */
@media(max-width:860px){
  .portada{padding-top:0}
  .portada .escena{order:-1;margin-inline:calc(-1 * var(--margen))}
  .escena-marco{border-radius:0;background:none}
  .escena-marco img{max-height:none;aspect-ratio:10/9;object-position:50% 25%}
  .escena-controles{padding-inline:var(--margen)}
}
/* De 601 a 860 px la foto es más apaisada */
@media(min-width:601px) and (max-width:860px){.escena-marco img{aspect-ratio:4/3;object-position:50% 60%}}
/* Hasta 860 px las telas van sobre la foto, abajo a la izquierda, y el pie queda debajo */
@media(max-width:860px){
  .escena{display:grid;grid-template-columns:minmax(0,1fr)}
  .escena-marco{grid-area:1/1}
  .escena-controles{display:contents}
  .escena-ajustes{grid-area:1/1;align-self:end;justify-self:start;z-index:3;margin:14px var(--margen);padding:4px;gap:6px;background:rgba(255,255,255,.94);border-radius:12px;box-shadow:0 4px 16px rgba(20,31,56,.16)}
  .escena-pie{grid-row:2;margin-top:10px;padding-inline:var(--margen)}
}
/* Desde 861 px la foto ocupa todo el frente: llega a los bordes derecho e inferior y se funde
   con el fondo a la izquierda, donde va el titular. Deja ver el inicio de la sección siguiente
   para que se note que hay más abajo. */
@media(min-width:861px){
  .portada{position:relative;display:flex;align-items:center;max-width:none;min-height:clamp(600px,calc(100svh - 86px),900px);padding:calc(var(--cabecera,0px) + clamp(32px,5vh,64px)) calc(max(0px,(100% - var(--ancho))/2) + var(--margen)) clamp(40px,6vh,72px);overflow:hidden;isolation:isolate}
  .portada-texto{position:relative;z-index:2;width:min(100%,560px,50vw)}
  .portada h1 span{white-space:nowrap}
  /* Halo del color del fondo: el texto se sigue leyendo donde pasa por encima del brazo del sofá */
  .portada-texto p{text-shadow:0 0 4px var(--dia),0 0 12px var(--dia),0 0 22px var(--dia)}
  .portada .escena{position:absolute;top:0;right:0;bottom:0;left:26%;z-index:0}
  .escena-marco{position:absolute;inset:0;border-radius:0;background:none;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 34%);mask-image:linear-gradient(90deg,transparent 0,#000 34%)}
  .escena-marco img{height:100%;max-height:none;aspect-ratio:auto;object-position:58% 62%}
  .escena-controles{position:absolute;z-index:3;left:34%;bottom:32px;flex-direction:row;align-items:center;gap:14px;margin:0;padding:6px 18px 6px 6px;background:rgba(255,255,255,.95);border-radius:14px;box-shadow:0 6px 20px rgba(20,31,56,.16)}
  .escena-pie{display:grid;grid-template-columns:auto auto;align-items:baseline;column-gap:12px;font-size:14px;line-height:1.35}
  .escena-pie>span{display:contents}
  .escena-estado{font-weight:600;color:var(--tinta)}
  .escena-pista-mouse,.escena-pista-toque{grid-column:1/-1;grid-row:2;font-size:13px}
  .escena-pie a{grid-column:2;grid-row:1;min-height:32px}
}
@media(prefers-reduced-motion:reduce){.escena-cama,.escena-salida,.escena-tela::before,body.landing .header{transition:none}}

/* El logo queda centrado en la portada y la línea superior respira mejor. */
body.landing .header{justify-content:center}
body.landing .header .brand-logo.logo7{position:absolute;left:50%;transform:translateX(-50%);margin:0}
body.landing .header .logo7-t1{transform:translateY(4px)}
body.landing .header .logo7-text{align-items:flex-start;text-align:left}
body.landing .header .header-actions{position:absolute;right:var(--margen);margin-left:0}
@media(max-width:960px){
  body.landing .header .menu-toggle{position:absolute;left:8px}
  body.landing .header .header-actions{right:12px}
}
@media(min-width:961px){
  body.landing .header .brand-logo.logo7{left:var(--margen);transform:none}
}
