/* Yolanda Roldán & Luna Limón · estilos del sitio (tema de bloques)
   Parte del CSS del boceto 2 aprobado (web-src/styles.css), adaptado al marcado real de
   WordPress (bloques del núcleo) y WooCommerce. Las clases .yr / .ll / .home del <body> las pone
   inc/marca.php. Las reglas para WooCommerce llevan «html body» delante para ganar a sus estilos. */

:root{
  --ink:#121012;--soft:#5E5557;--line:#E7E1DD;--marfil:#F5F0EA;--white:#FFFFFF;
  --yr:#4D6C8A;--yr-dark:#34506B;--yr-light:#A9BDD1;--yr-deep:#3F5B77;
  --ll-cream:#FEF9EF;--ll-lemon:#F7EBB5;--ll-sage:#DCE8CD;--ll-sand:#F1E4C8;--ll-linen:#EEE8DA;
  --ll-ink:#4E3B17;--ll-soft:#7A6233;--ll-btn:#6B5420;--ll-btn-hover:#4A3914;--ll-line:#E8DCC0;
  --wa:#1F7A45;--err:#8A1F35;
  --serif-yr:'Bodoni Moda','Bodoni 72',Didot,Georgia,serif;
  --serif-ll:'Instrument Serif',Georgia,serif;
  --sans:'Jost',system-ui,-apple-system,'Segoe UI',sans-serif;
  --gut:clamp(16px,4vw,48px);
}

/* ---------- Base ---------- */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--sans);font-size:17px;line-height:1.6;color:var(--ink);background:var(--white)}
.wp-site-blocks{overflow-x:clip}
img{max-width:100%;display:block}
a{color:inherit}
[hidden]{display:none!important}
h1,h2,h3{margin:0;font-weight:400;line-height:1.08;text-wrap:balance}
p{margin:0}
figure{margin:0}
:focus-visible{outline:2px solid var(--yr);outline-offset:3px}
.wrap{max-width:1240px;margin-left:auto;margin-right:auto;padding-inline:var(--gut);width:100%}
.yr h1,.yr h2,.yr h3{font-family:var(--serif-yr)}
.ll{color:var(--ll-ink)}
.ll h1,.ll h2,.ll h3{font-family:var(--serif-ll)}
.eyebrow{font-size:12.5px;letter-spacing:.22em;text-transform:uppercase;font-weight:500;color:var(--yr)}
.ll .eyebrow{color:var(--ll-soft)}
.muted{color:var(--soft)}
.ll .muted{color:var(--ll-soft)}
.todo{background:#FFF3C4;color:#5A4500;padding:0 7px;border-radius:4px;font-size:.92em;white-space:nowrap}
.icon-svg{width:20px;height:20px;flex:none}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}

/* ---------- Barra superior: cambiar de marca (yr/barra-marcas) ---------- */
.switch{background:var(--ink);color:#F5F0EA;font-size:13px}
.switch .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px}
.switch a{color:#F5F0EA;text-decoration:none;opacity:.72;padding:9px 0}
.switch a:hover,.switch a[aria-current]{opacity:1}
.switch a[aria-current]{text-decoration:underline;text-underline-offset:6px}
.switch .brands{display:flex;gap:22px}
.switch .note{display:none;opacity:.72}
@media(min-width:900px){.switch .note{display:inline}}

/* ---------- Cabecera de marca (yr/cabecera) ---------- */
.bh{background:var(--white);border-bottom:1px solid var(--line);position:relative}
.ll .bh{background:var(--ll-cream);border-color:var(--ll-line)}
.bh .top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:14px 8px}
.logo{display:flex;align-items:center;gap:12px;text-decoration:none}
.logo img{height:auto}
.logo .sil{height:58px;width:auto}
.logo .word{height:28px;width:auto}
.logo .lem{height:54px;width:auto}
.logo .llname{height:50px;width:auto}
.icons{display:flex;gap:2px;align-items:center}
.icon{width:44px;height:44px;display:grid;place-items:center;color:inherit;position:relative;cursor:pointer}
.badge{position:absolute;top:6px;right:3px;min-width:18px;height:18px;border-radius:9px;background:var(--yr);color:#fff;font-size:11px;line-height:18px;text-align:center;padding:0 4px}
.ll .badge{background:var(--ll-btn)}
.menu{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:2px 26px;padding-bottom:10px;font-size:13px;letter-spacing:.12em;text-transform:uppercase;font-weight:500}
.menu a{text-decoration:none;padding:9px 0;white-space:nowrap}
.menu a:hover{color:var(--yr)}
.menu a[aria-current]{color:var(--yr);text-decoration:underline;text-underline-offset:7px}
.menu .tag{font-size:10px;letter-spacing:.08em;background:var(--yr);color:#fff;padding:2px 6px;border-radius:3px;margin-left:6px;vertical-align:2px}
.ll .menu{text-transform:none;letter-spacing:0;font-size:15px;font-weight:400;gap:2px 6px}
.ll .menu a{padding:7px 14px;border-radius:999px}
.ll .menu a:hover{background:var(--white);color:inherit}
.ll .menu a[aria-current]{background:var(--ll-lemon);text-decoration:none;color:inherit}

/* Buscador desplegable (sin JS: <details>) */
.buscar{position:static}
.buscar>summary{list-style:none}
.buscar>summary::-webkit-details-marker{display:none}
.buscar[open]>summary{color:var(--yr)}
.ll .buscar[open]>summary{color:var(--ll-btn)}
.buscar-form{position:absolute;left:0;right:0;top:100%;z-index:30;display:flex;gap:8px;padding:14px var(--gut);background:inherit;background:var(--white);border-bottom:1px solid var(--line);box-shadow:0 12px 24px rgba(18,16,18,.08)}
.ll .buscar-form{background:var(--ll-cream);border-color:var(--ll-line)}
.buscar-form input[type=search]{flex:1;min-width:0;min-height:50px;padding:0 16px;font:inherit;font-size:16px;border:1px solid #D8CFC9;background:#fff;color:var(--ink);border-radius:0}
.ll .buscar-form input[type=search]{border-radius:999px;border-color:var(--ll-line)}

@media(max-width:640px){
  .logo .sil{height:42px}.logo .word{height:19px}.logo .lem{height:40px}.logo .llname{height:37px}
  .menu{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:calc(-1*var(--gut));padding-inline:var(--gut);gap:2px 20px;-webkit-overflow-scrolling:touch}
  .menu::-webkit-scrollbar{display:none}
  .buscar-form .btn{padding:0 16px}
}

/* ---------- Botones (los del boceto + los de WordPress y WooCommerce) ---------- */
.btns{display:flex;flex-wrap:wrap;gap:10px}
.btn,
.wp-block-button__link,
.wp-element-button,
html body .woocommerce a.button,
html body .woocommerce button.button,
html body .woocommerce input.button,
html body .woocommerce a.button.alt,
html body .woocommerce button.button.alt,
html body .woocommerce input.button.alt,
html body .woocommerce #respond input#submit{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:0 24px;
  font:500 13px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;text-decoration:none;
  border:1px solid var(--ink);border-radius:0;background:var(--ink);color:#fff;cursor:pointer;box-shadow:none
}
.btn:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
html body .woocommerce a.button:hover,
html body .woocommerce button.button:hover,
html body .woocommerce input.button:hover,
html body .woocommerce a.button.alt:hover,
html body .woocommerce button.button.alt:hover,
html body .woocommerce input.button.alt:hover{background:var(--yr);border-color:var(--yr);color:#fff}
.btn.line,.is-style-outline>.wp-block-button__link{background:transparent;color:var(--ink)}
.btn.line:hover,.is-style-outline>.wp-block-button__link:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
.btn.wa{background:var(--wa);border-color:var(--wa)}
.btn.wa:hover{background:#17603A;border-color:#17603A}
.ll .btn,
.ll .wp-block-button__link,
.ll .wp-element-button,
html body.ll .woocommerce a.button,
html body.ll .woocommerce button.button,
html body.ll .woocommerce a.button.alt,
html body.ll .woocommerce button.button.alt,
html body.ll.woocommerce a.button,
html body.ll.woocommerce button.button,
html body.ll.woocommerce button.button.alt{border-radius:999px;text-transform:none;letter-spacing:0;font-size:15px;background:var(--ll-btn);border-color:var(--ll-btn)}
.ll .btn:hover,
.ll .wp-block-button__link:hover,
.ll .wp-element-button:hover,
html body.ll .woocommerce button.button.alt:hover,
html body.ll.woocommerce button.button.alt:hover{background:var(--ll-btn-hover);border-color:var(--ll-btn-hover)}
.ll .btn.wa{background:var(--wa);border-color:var(--wa)}
.ll .btn.wa:hover{background:#17603A;border-color:#17603A}
.ll .btn.line{background:transparent;color:var(--ll-ink)}
.ll .btn.line:hover{background:var(--ll-btn);color:#fff}
/* WooCommerce: cuando body tiene .woocommerce, los botones no tienen ancestro .woocommerce */
html body.woocommerce a.button,
html body.woocommerce button.button,
html body.woocommerce button.button.alt,
html body.woocommerce input.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:0 24px;font:500 13px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;border:1px solid var(--ink);border-radius:0;background:var(--ink);color:#fff}
html body.woocommerce button.button.alt:hover,html body.woocommerce a.button:hover{background:var(--yr);border-color:var(--yr)}
html body .woocommerce button.button:disabled,
html body .woocommerce button.button.disabled,
html body.woocommerce button.button.alt.disabled{opacity:.45;cursor:not-allowed}

/* ---------- Huecos para fotos (.ph) ---------- */
.ph{position:relative;overflow:hidden;background:var(--marfil);display:block}
.ph img{width:100%;height:100%;object-fit:cover}
.ll .ph,.ll .ph img{border-radius:18px}
/* Pie con el nombre de la foto: solo se ve encima de la foto de relleno */
.ph>figcaption,.ph>.cap{display:none}
.ph:has(img[src*="relleno-"])>figcaption,.ph>.cap{display:block;position:absolute;left:12px;bottom:12px;margin:0;background:#fff;color:var(--ink);font-size:11px;letter-spacing:.1em;text-transform:uppercase;padding:5px 9px;line-height:1.3;text-align:left}
.ll .ph:has(img[src*="relleno-"])>figcaption{border-radius:999px;text-transform:none;letter-spacing:0;font-size:12px;color:var(--ll-ink)}
/* Fotos de relleno: el SVG se cambia por el mismo fondo CSS del boceto, para que los lunares y
   rayas tengan el mismo tamaño en cualquier hueco (el SVG queda de respaldo sin :has()). */
.ph:has(img[src*="relleno-dots.svg"]) img,.ph:has(img[src*="relleno-dots-ink.svg"]) img,.ph:has(img[src*="relleno-stripes.svg"]) img,
.ph:has(img[src*="relleno-folds.svg"]) img,.ph:has(img[src*="relleno-folds-blue.svg"]) img,.ph:has(img[src*="relleno-marfil.svg"]) img,
.ph:has(img[src*="relleno-champ.svg"]) img,.ph:has(img[src*="relleno-pink.svg"]) img,.ph:has(img[src*="relleno-green.svg"]) img,
.ph:has(img[src*="relleno-shawl.svg"]) img,.ph:has(img[src*="relleno-fringe.svg"]) img,.ph:has(img[src*="relleno-fringe-ink.svg"]) img{opacity:0}
.ph:has(img[src*="relleno-dots.svg"]){background:radial-gradient(circle,#F5F0EA 0 7px,transparent 7.5px) 0 0/40px 40px,radial-gradient(circle,#F5F0EA 0 7px,transparent 7.5px) 20px 20px/40px 40px,var(--yr)}
.ph:has(img[src*="relleno-dots-ink.svg"]){background:radial-gradient(circle,#F5F0EA 0 5px,transparent 5.5px) 0 0/30px 30px,radial-gradient(circle,#F5F0EA 0 5px,transparent 5.5px) 15px 15px/30px 30px,var(--ink)}
.ph:has(img[src*="relleno-stripes.svg"]){background:repeating-linear-gradient(100deg,var(--yr) 0 26px,var(--yr-deep) 26px 30px)}
.ph:has(img[src*="relleno-folds.svg"]){background:repeating-linear-gradient(90deg,#E8D9C4 0 30px,#DCC9AF 30px 34px)}
.ph:has(img[src*="relleno-folds-blue.svg"]){background:repeating-linear-gradient(90deg,#C9D6E2 0 30px,#B6C7D7 30px 34px)}
.ph:has(img[src*="relleno-marfil.svg"]){background:repeating-linear-gradient(100deg,#F5F0EA 0 22px,#E9DFD2 22px 26px)}
.ph:has(img[src*="relleno-champ.svg"]){background:repeating-linear-gradient(95deg,#E8D9C4 0 24px,#DCC9AF 24px 27px)}
.ph:has(img[src*="relleno-pink.svg"]){background:radial-gradient(circle,#fff 0 4px,transparent 4.5px) 0 0/22px 22px,radial-gradient(circle,#fff 0 4px,transparent 4.5px) 11px 11px/22px 22px,#D9728A}
.ph:has(img[src*="relleno-green.svg"]){background:radial-gradient(circle,#F5F0EA 0 5px,transparent 5.5px) 0 0/30px 30px,radial-gradient(circle,#F5F0EA 0 5px,transparent 5.5px) 15px 15px/30px 30px,#2F5A4C}
.ph:has(img[src*="relleno-shawl.svg"]){background:radial-gradient(circle,var(--yr) 0 9px,transparent 9.5px) 0 0/48px 48px,radial-gradient(circle,var(--yr-light) 0 4px,transparent 4.5px) 24px 24px/48px 48px,var(--ink)}
.ph:has(img[src*="relleno-fringe.svg"]){background:repeating-linear-gradient(90deg,#F5F0EA 0 3px,#E3D8C9 3px 6px)}
.ph:has(img[src*="relleno-fringe-ink.svg"]){background:repeating-linear-gradient(90deg,#2A2628 0 3px,#121012 3px 6px)}
.r45{aspect-ratio:4/5}.r34{aspect-ratio:3/4}.r11{aspect-ratio:1/1}.r43{aspect-ratio:4/3}

/* ---------- Portada (patrón yr/portada) ---------- */
.portada .wp-block-post-content{display:block}
.doors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.door{position:relative;isolation:isolate;display:flex;align-items:flex-end;min-height:max(520px,calc(100vh - 150px));padding:clamp(18px,4vw,48px);text-decoration:none;overflow:hidden}
.door>.bg{position:absolute;inset:0;z-index:-1;transition:transform .7s ease}
.door>.bg img{width:100%;height:100%;object-fit:cover}
.door:hover>.bg{transform:scale(1.035)}
.door>.bg.ph>figcaption{top:16px;bottom:auto;left:16px}
.door .card{width:min(460px,100%);display:flex;flex-direction:column;gap:14px;padding:clamp(22px,3vw,34px);background:#fff;color:var(--ink)}
.door .card .lockup{display:flex;flex-wrap:nowrap;align-items:center;gap:14px}
.door .card .lockup figure{flex:none;margin:0}
.door .card .sil img{height:92px;width:auto}
.door .card .word img{height:30px;width:auto}
.door-ll .card{background:var(--ll-cream);color:var(--ll-ink);border-radius:22px}
.door-ll .card .lllogo img{width:min(190px,60%);height:auto}
.door-ll .card .lllogo{width:100%}
.door .card p{font-size:17px}
.door .card .wp-block-buttons{display:flex;margin:0}
.door .go{align-self:flex-start}
.door .go .wp-block-button__link{display:inline-flex}
.door .go .wp-block-button__link::before{content:"";order:2;width:16px;height:16px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat}
/* Toda la puerta es clicable (solo en la web, no en el editor) */
body.home .door .go .wp-block-button__link::after{content:"";position:absolute;inset:0;z-index:1}
.door:hover .go .wp-block-button__link{background:var(--yr);border-color:var(--yr)}
.door-ll .go .wp-block-button__link{border-radius:999px;text-transform:none;letter-spacing:0;font-size:15px;background:var(--ll-btn);border-color:var(--ll-btn)}
.door-ll:hover .go .wp-block-button__link{background:var(--ll-btn-hover);border-color:var(--ll-btn-hover)}
.home-info{background:var(--marfil)}
.home-info .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 32px;padding-block:22px;font-size:15px}
.home-info .item{display:flex;align-items:flex-start;gap:10px}
.home-info a{text-underline-offset:4px}
.home-legal{font-size:12.5px;color:var(--soft);padding-block:14px 80px}
.home-legal a{color:inherit;text-decoration:none}
.home-legal a:hover{text-decoration:underline}
@media(max-width:820px){
  .doors{grid-template-columns:1fr}
  .door{min-height:62vh}
  .door .card .sil img{height:64px}.door .card .word img{height:22px}
  .door .card p{font-size:16px}
}

/* ---------- Cabecera de página interior ---------- */
.intro{padding-block:clamp(28px,4vw,48px) 26px;display:grid;gap:12px}
.intro h1{font-size:clamp(34px,4.4vw,56px)}
.intro p{max-width:40em}
.pills{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:6px 0 0;padding:0}
.pills li{background:var(--ll-cream);border:1px solid var(--ll-line);border-radius:999px;padding:5px 14px;font-size:14px}
.crumb,
html body .wc-block-breadcrumbs .woocommerce-breadcrumb,
html body .woocommerce-breadcrumb.crumb{font-size:14px;color:var(--soft);padding-block:18px 0;margin:0}
.wc-block-breadcrumbs{margin:0}
.ll .crumb,html body.ll .woocommerce-breadcrumb{color:var(--ll-soft)}
.crumb a,.woocommerce-breadcrumb a{color:inherit}

/* ---------- Índices de marca (patrones yr/indice-yr y yr/indice-ll) ---------- */
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:24px 20px;padding-bottom:40px}
.tiles.small{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:20px 14px}
.tile{position:relative;display:flex;flex-direction:column;gap:8px;text-decoration:none}
.tile .ph{transition:transform .4s ease}
.tile:hover .ph{transform:translateY(-3px)}
.tile h2{font-size:24px;line-height:1.15}
.tile h2 a,.tile .ph a{text-decoration:none;color:inherit}
.ll .tile h2{font-family:var(--sans);font-size:17px;text-align:center}
.tile p{font-size:15px;color:var(--soft)}
.flag,.tile p.flag{position:absolute;top:10px;left:10px;z-index:2;background:#fff;color:var(--ink);font-size:11px;letter-spacing:.1em;text-transform:uppercase;padding:4px 8px;line-height:1.4}
.ll .flag{border-radius:999px;text-transform:none;letter-spacing:0;font-size:12px;color:var(--ll-ink)}
.sec-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 24px;padding-bottom:16px}
.sec-head h2{font-size:clamp(26px,3vw,36px)}
.loose{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding-bottom:56px}
.top-ventas .grid{padding-bottom:64px}

/* ---------- Apartados (patrón yr/servicio) ---------- */
.svc-top{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:clamp(24px,5vw,64px);align-items:start;padding-block:22px 36px}
.svc-top h1{font-size:clamp(36px,4.6vw,60px);margin:10px 0 14px}
.checks{list-style:none;padding:0;margin:18px 0 0;display:grid;gap:8px}
.checks li{padding-left:22px;position:relative}
.checks li::before{content:"";position:absolute;left:0;top:.62em;width:8px;height:8px;border-radius:50%;background:var(--yr)}
.cta-card{background:var(--marfil);padding:clamp(22px,3vw,30px);display:grid;gap:14px}
.cta-card h2{font-size:28px}
.cta-card .small{font-size:14px;color:var(--soft)}
.cta-card .btns{display:grid;gap:10px}
.cta-card .btn{width:100%;padding:0 16px;letter-spacing:.1em}
.ll .cta-card{background:var(--ll-cream);border-radius:22px}
.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-bottom:64px}

/* ---------- Tienda (plantillas de archivo + yr/cabecera-tienda, yr/chips-categorias) ---------- */
.shop-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 32px;padding-block:22px 18px}
.shop-head h1{font-size:clamp(36px,4.6vw,60px);margin-bottom:10px}
.shop-desc p{margin:0}
.shop-desc p+p{margin-top:.5em}
.chips{position:relative;display:flex;flex-wrap:wrap;gap:8px;padding-bottom:18px;border-bottom:1px solid var(--line);margin-bottom:28px}
.chip{display:inline-flex;align-items:center;min-height:42px;padding:0 16px;font:inherit;font-size:14px;border:1px solid #D8CFC9;background:#fff;color:var(--ink);cursor:pointer;white-space:nowrap;text-decoration:none}
.chip:hover{border-color:var(--ink)}
.chip[aria-current],.chip[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.ll .chips{border-color:var(--ll-line)}
.ll .chip{border-radius:999px;border-color:var(--ll-line);color:var(--ll-ink)}
.ll .chip:hover{border-color:var(--ll-btn)}
.ll .chip[aria-current],.ll .chip[aria-pressed="true"]{background:var(--ll-btn);border-color:var(--ll-btn);color:#fff}
.grid,.wp-block-post-template.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:34px 20px;list-style:none;margin:0;padding:0}
.wp-block-post-template.grid>li{margin:0;min-width:0}
.grid .vacio{grid-column:1/-1}
.card{display:flex;flex-direction:column;gap:5px;text-decoration:none;color:inherit}
.card .ph img{position:absolute;inset:0}
.card .cat{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--soft);margin-top:8px}
.ll .card .cat{color:var(--ll-soft)}
.card .name{font-size:18px;line-height:1.3}
.yr .card .name{font-family:var(--serif-yr);font-size:21px}
.card .price{align-self:flex-start;font-size:16px}
.card .price del{opacity:.6;margin-right:6px}
.card .price ins{text-decoration:none}
.card .todo{align-self:flex-start}
.card-texto{padding:18px;background:var(--marfil)}
.yr-productos .wp-block-query-pagination{margin-top:40px;gap:6px 14px;font-size:15px}
.wp-block-query-pagination a{text-decoration:none}
.wp-block-query-pagination .current{font-weight:600;text-decoration:underline;text-underline-offset:5px}
.perks{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;padding-block:48px 64px}
.perk{display:flex;gap:12px;align-items:flex-start;font-size:15px}
.perk strong{display:block;font-weight:500;font-size:16px}
.buscador{margin-bottom:28px;max-width:640px}
.buscador .wp-block-search__inside-wrapper{gap:8px}
.buscador .wp-block-search__input{min-height:50px;padding:0 16px;font:inherit;border:1px solid #D8CFC9;border-radius:0}

/* ---------- Ficha de producto (templates/single-product.html) ---------- */
.prod{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:clamp(24px,5vw,60px);align-items:start;padding-block:22px 64px}
.gal{min-width:0}
.info{display:flex;flex-direction:column;gap:20px;min-width:0}
.info .info-cabeza{display:grid;gap:8px}
.info .prod-cat{font-size:12px;letter-spacing:.14em;text-transform:uppercase}
.info h1,.info .wp-block-post-title{font-size:clamp(36px,4vw,52px);margin:0}
.info .wc-block-components-product-price,.info .price{font-size:20px}
.info .resumen p{margin:0}
.info .resumen p+p{margin-top:.6em}
.info .wp-block-post-excerpt__more-text{display:none}
.prod-desc{max-width:46em;padding-bottom:64px}
.prod-desc .wp-block-post-content:empty{display:none}
.prod-desc .wp-block-post-content>*+*{margin-top:1em}

/* Galería de WooCommerce: foto grande + miniaturas debajo */
html body .prod .gal div.images.woocommerce-product-gallery,
html body .prod .gal .woocommerce-product-gallery{float:none;width:100%;margin:0;position:relative}
html body .prod .gal .woocommerce-product-gallery__wrapper{margin:0}
html body .prod .gal .woocommerce-product-gallery__image img,
html body .prod .gal .woocommerce-product-gallery__image--placeholder img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;background:var(--marfil)}
html body.ll .prod .gal .woocommerce-product-gallery__image img,
html body.ll .prod .gal .flex-viewport{border-radius:18px}
html body .prod .gal .flex-control-thumbs{list-style:none;margin:12px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;overflow:visible}
html body .prod .gal .flex-control-thumbs li{width:auto;float:none;margin:0;list-style:none}
html body .prod .gal .flex-control-thumbs li img{aspect-ratio:1/1;object-fit:cover;width:100%;height:auto;opacity:.6;cursor:pointer}
html body.ll .prod .gal .flex-control-thumbs li img{border-radius:12px}
html body .prod .gal .flex-control-thumbs li img.flex-active,
html body .prod .gal .flex-control-thumbs li img:hover{opacity:1}
html body .prod .gal .woocommerce-product-gallery__trigger{position:absolute;top:12px;right:12px;z-index:9;width:40px;height:40px;border-radius:50%;background:#fff;display:grid;place-items:center;text-indent:-9999px;overflow:hidden}
html body .prod .gal .woocommerce-product-gallery__trigger::before{content:"";position:absolute;width:14px;height:14px;border:2px solid var(--ink);border-radius:50%;top:11px;left:11px;text-indent:0}
html body .prod .gal .woocommerce-product-gallery__trigger::after{content:"";position:absolute;width:2px;height:8px;background:var(--ink);transform:rotate(-45deg);top:23px;left:26px}
html body .prod .gal .woocommerce-product-gallery__trigger img{display:none!important}

/* Formulario de añadir (simple y con variaciones) */
html body .info form.cart{display:grid;gap:16px;margin:0}
html body .info form.cart::before,html body .info form.cart::after{content:none}
html body .info table.variations{border:0;margin:0;width:100%;border-collapse:collapse}
html body .info table.variations,
html body .info table.variations tbody,
html body .info table.variations tr,
html body .info table.variations th,
html body .info table.variations td{display:block;padding:0;border:0;background:none;text-align:left;line-height:1.5}
html body .info table.variations tr{margin-bottom:18px}
html body .info table.variations th.label{margin-bottom:10px;font-weight:400;font-size:15px}
html body .info table.variations th.label label{font-weight:400}
html body .info table.variations .yr-elegido{font-weight:600}
html body .info table.variations select{min-height:46px;min-width:220px;max-width:100%;padding:0 14px;font:inherit;font-size:15px;border:1px solid #D8CFC9;border-radius:0;background:#fff;color:var(--ink)}
html body.ll .info table.variations select{border-radius:12px;border-color:var(--ll-line)}
/* Con JS, el desplegable se oculta y se usan los botones (el desplegable sigue funcionando por debajo) */
html body .info form.yr-con-botones table.variations select{position:absolute!important;width:1px!important;min-width:0!important;height:1px;min-height:0;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;opacity:0}
html body .info table.variations .reset_variations{display:inline-block;margin-top:10px;font-size:14px;color:var(--soft)}
.opts{display:flex;flex-wrap:wrap;gap:10px}
.sw{width:44px;height:44px;border-radius:50%;border:0;padding:0;cursor:pointer;box-shadow:inset 0 0 0 1px #CFC4B8}
.sw[aria-pressed="true"]{box-shadow:0 0 0 3px #fff,0 0 0 5px var(--ink)}
.ll .sw[aria-pressed="true"]{box-shadow:0 0 0 3px #fff,0 0 0 5px var(--ll-btn)}
.size{min-width:54px;min-height:44px;padding:0 12px;border:1px solid #D8CFC9;background:#fff;border-radius:0;font:inherit;font-size:15px;color:inherit;cursor:pointer}
.ll .size{border-color:var(--ll-line);border-radius:12px}
.size[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.ll .size[aria-pressed="true"]{background:var(--ll-btn);color:#fff;border-color:var(--ll-btn)}
.sw:disabled,.size:disabled{opacity:.35;cursor:not-allowed;text-decoration:line-through}
html body .info .single_variation_wrap{display:grid;gap:14px}
html body .info .woocommerce-variation-price .price{font-size:20px}
html body .info .woocommerce-variation-availability p,html body .info .stock{margin:0;font-size:15px;color:var(--soft)}
html body .info .stock.out-of-stock{color:var(--err)}
html body .info .woocommerce-variation-add-to-cart,
html body .info form.cart:not(.variations_form){display:flex;flex-wrap:wrap;gap:10px;align-items:stretch}
html body .info .quantity{margin:0!important;float:none!important;display:flex}
html body .info .quantity .qty{width:84px;min-height:50px;padding:0 8px;font:inherit;font-size:16px;text-align:center;border:1px solid #D8CFC9;border-radius:0;background:#fff;color:var(--ink)}
html body.ll .info .quantity .qty{border-radius:999px;border-color:var(--ll-line)}
html body .info .single_add_to_cart_button{flex:1 1 200px;float:none!important;margin:0!important}
.datos-compra{display:grid;gap:20px}
.dudas{display:inline-flex;gap:8px;align-items:center;justify-self:start}
.facts{list-style:none;margin:0;padding:16px 18px;background:var(--marfil);display:grid;gap:8px;font-size:15px}
.ll .facts{background:var(--ll-cream);border-radius:16px}
.facts li{display:flex;gap:10px;align-items:flex-start}

/* ---------- Avisos de WooCommerce (clásicos y de bloques) ---------- */
html body .woocommerce-message,
html body .woocommerce-info,
html body .woocommerce-error,
html body .wc-block-components-notice-banner{margin:18px 0 0;padding:14px 18px;border:0;border-left:4px solid var(--yr);background:var(--marfil);color:var(--ink);font-size:15px;list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;border-radius:0}
html body .woocommerce-message::before,
html body .woocommerce-info::before,
html body .woocommerce-error::before{content:none}
html body .woocommerce-error,
html body .wc-block-components-notice-banner.is-error{border-left-color:var(--err)}
html body .wc-block-components-notice-banner.is-success,
html body .woocommerce-message{border-left-color:var(--wa)}
html body .woocommerce-message .button,
html body .woocommerce-info .button,
html body .wc-block-components-notice-banner .wc-forward{order:2;margin-left:auto;min-height:40px;font-size:12px}
html body .wc-block-components-notice-banner>svg{background:var(--ink);fill:#fff;border-radius:50%}
html body.ll .woocommerce-message,html body.ll .woocommerce-info,html body.ll .wc-block-components-notice-banner{background:var(--ll-cream);border-radius:12px}

/* ---------- Páginas de texto, carrito, pago y mi cuenta ---------- */
.pagina{padding-bottom:64px}
.titulo-pagina,.pagina>.wp-block-post-title,.pagina>.wp-block-query-title{font-size:clamp(34px,4.4vw,56px);padding-block:clamp(28px,4vw,48px) 22px}
.yr-pagina-texto .pagina .wp-block-post-content,.texto .wp-block-post-content{max-width:46em}
.yr-pagina-texto .pagina .wp-block-post-content>*+*,.texto .wp-block-post-content>*+*{margin-top:1em}
.yr-pagina-texto .pagina .wp-block-post-content h2,.texto .wp-block-post-content h2{font-size:28px;margin-top:1.6em}
.yr-pagina-texto .pagina .wp-block-post-content h3,.texto .wp-block-post-content h3{font-size:22px;margin-top:1.4em}
.pagina-woo .wp-block-post-content{max-width:none}
.lista-entradas .wp-block-post-template{list-style:none;margin:0;padding:0;display:grid;gap:28px}
.lista-entradas .wp-block-post-title{font-size:28px}
.lista-entradas .wp-block-post-title a{text-decoration:none}
.no-encontrada .buscador{margin-top:10px}

/* Bloques de carrito y pago */
.wc-block-cart,.wc-block-checkout{font-size:16px}
.wc-block-components-title,.wc-block-cart__totals-title,.wc-block-components-checkout-step__title{font-family:var(--serif-yr);font-weight:400}
html body .wc-block-components-button:not(.is-link){border-radius:0;min-height:50px}
html body .wc-block-components-text-input input,
html body .wc-block-components-combobox .wc-block-components-combobox-control input,
html body .wc-block-components-form .wc-block-components-text-input input,
html body .wc-blocks-components-select .wc-blocks-components-select__select,
html body .wc-block-components-textarea{border-radius:0;border-color:#CFC4B8}
html body .wc-block-components-totals-coupon__button{min-height:0}
html body .wc-block-cart-item__image img{aspect-ratio:4/5;object-fit:cover}
/* Formularios clásicos (Mi cuenta) */
html body .woocommerce form .form-row input.input-text,
html body .woocommerce form .form-row textarea,
html body .woocommerce form .form-row select{min-height:46px;padding:8px 14px;font:inherit;font-size:16px;border:1px solid #CFC4B8;border-radius:0;background:#fff}
html body .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}
html body .woocommerce-MyAccount-navigation a{display:block;padding:8px 0;text-decoration:none}
html body .woocommerce-MyAccount-navigation .is-active a{color:var(--yr);text-decoration:underline;text-underline-offset:6px}

/* ---------- Pie (yr/pie) ---------- */
.ft{background:var(--ink);color:#F5F0EA;font-size:15px}
.ft-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:28px;padding-block:44px 28px}
.ft-h{font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--yr-light);margin-bottom:8px}
.ft p,.ft a{color:#F5F0EA}
.ft .ft-mas{margin-top:6px}
.ft .dim,.ft .dim a{color:#B9AFA8;font-size:14px}
.ft .todo{color:#5A4500}
.ft-legal{border-top:1px solid #3A3335;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 20px;padding-block:16px 80px;font-size:13px;color:#B9AFA8}
.ft-legal a{color:#B9AFA8;text-decoration:none}
.ft-legal a:hover{color:#F5F0EA;text-decoration:underline}

/* ---------- Flotante de WhatsApp ---------- */
.wa-float{position:fixed;right:20px;bottom:20px;width:58px;height:58px;border-radius:50%;background:var(--wa);color:#fff;display:grid;place-items:center;box-shadow:0 8px 24px rgba(18,16,18,.28);z-index:40}
.wa-float .icon-svg{width:28px;height:28px}

/* ---------- Móvil ---------- */
@media(max-width:820px){
  .svc-top,.prod{grid-template-columns:1fr}
}
@media(max-width:640px){
  .tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
  .tiles.small{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tile h2{font-size:20px}
  .ll .tile h2{font-size:15px}
  .grid,.wp-block-post-template.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}
  .gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  .loose{grid-template-columns:repeat(2,minmax(0,1fr))}
  .chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:calc(-1*var(--gut));padding-inline:var(--gut);-webkit-overflow-scrolling:touch}
  .chips::-webkit-scrollbar{display:none}
  .card .name{font-size:16px}
  .yr .card .name{font-size:18px}
  .switch .brands{gap:16px}
  html body .info table.variations select{min-width:0;width:100%}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Sin fotos, WooCommerce no inicia la galería y la deja con opacity:0: se muestra el relleno igualmente. */
.woocommerce-product-gallery--without-images{opacity:1!important}
