/* =====================================================================
   La Magia de los Detalles · Home (Figma "01 — Home", 1440 y 390)
   ===================================================================== */
.only-mobile{display:none!important}
@media (max-width:720px){.only-wide{display:none!important}.only-mobile{display:revert!important}}
.deco{position:absolute;pointer-events:none}
.tilt{transform:rotate(3deg);transform-origin:left center;margin:0}
.sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:40px}
.sec-titles{display:flex;flex-direction:column;gap:16px;align-items:flex-start}
.sec-titles p{margin:0}
.sec-aside{width:380px;display:flex;flex-direction:column;gap:10px;flex:none}
.sec-aside p{margin:0}

/* ---------- S1 · Hero ---------- */
.hero{position:relative;background:var(--nube);overflow:hidden}
.hero-in{display:grid;grid-template-columns:minmax(0,680px) minmax(0,1fr);gap:24px;align-items:center;padding-top:72px;padding-bottom:48px;min-height:min(840px,calc(100vh - 110px))}
.hero-copy{display:flex;flex-direction:column;gap:28px;align-items:flex-start;position:relative;z-index:2}
.pill-eyebrow{background:var(--blanco);border:1px solid var(--borde);border-radius:999px;padding:8px 16px 8px 14px}
.hero-lead{max-width:520px;margin:0}
.hero-ctas{display:flex;gap:14px;flex-wrap:wrap}
.trust{list-style:none;margin:0;padding:8px 0 0;display:flex;gap:24px;flex-wrap:wrap}
.trust li{display:flex;align-items:center;gap:8px;font:600 14px/20px var(--f-ui)}
.trust img{width:20px;height:20px}

.hero-art{position:relative;width:100%;max-width:740px;aspect-ratio:740/760;justify-self:end;margin-right:calc(var(--pad) * -.6)}
.hero-art>*{position:absolute;margin:0}
.h-burbuja{left:0;top:17.1%;width:102.7%;height:88.4%}
.h-arcoiris{left:12.2%;top:3.9%;width:86.5%}
.h-circulo{left:75%;top:76.3%;width:23%}
.h-main{left:27.7%;top:18.7%;width:56.8%;height:71%;background:var(--blanco);padding:1.6%;border-radius:50% 50% 36px 36px / 39% 39% 36px 36px;box-shadow:var(--sombra-papel)}
.h-main img{width:100%;height:100%;object-fit:cover;border-radius:50% 50% 26px 26px / 38.5% 38.5% 26px 26px}
.h-charm{left:4%;top:62.4%;width:42.7%}
.h-aqua{left:72.3%;top:14.2%;width:23.8%;aspect-ratio:176/220;background:var(--blanco);padding:1.1%;border-radius:50% 50% 22px 22px / 40% 40% 22px 22px;transform:rotate(7deg);box-shadow:var(--sombra-flotante)}
.h-aqua img{width:100%;height:100%;object-fit:cover;border-radius:50% 50% 16px 16px / 39% 39% 16px 16px}
.h-sticker{left:60.8%;top:79.9%;background:var(--blanco);border-radius:24px;padding:12px 22px 14px 20px;display:flex;flex-direction:column;gap:2px;transform:rotate(-5deg);filter:drop-shadow(0 8px 12px rgba(84,6,53,.08));white-space:nowrap}
.h-nube.n1{left:-8.1%;top:96%;width:35%}
.h-nube.n2{left:81%;top:0;width:25.7%}
.h-sp.s1{left:24.3%;top:14.7%;width:5.4%}
.h-sp.s2{left:93.2%;top:52.6%;width:3.5%}
.h-sp.s3{left:5.7%;top:46%;width:4%}
.h-sp.s4{left:69.6%;top:9.2%;width:2.4%}
.h-sp.s5{left:-14.9%;top:7.9%;width:3%}
.hero .wave{position:relative;z-index:3;margin-top:-40px}
/* animaciones suaves del hero */
.h-aqua{animation:bob 6s ease-in-out infinite}
.h-charm{animation:bob 7s ease-in-out infinite reverse}
.h-sticker{animation:wiggle 5s ease-in-out infinite}
.h-sp{animation:twinkle 2.6s ease-in-out infinite}
.h-sp.s2{animation-delay:.6s}.h-sp.s3{animation-delay:1.2s}.h-sp.s4{animation-delay:1.8s}
.h-nube{animation:drift 14s ease-in-out infinite}
@keyframes bob{50%{translate:0 -10px}}
@keyframes wiggle{50%{transform:rotate(-2deg) translateY(-4px)}}
@keyframes drift{50%{translate:18px 0}}
/* entrada del hero tras el loader */
.hero-copy>*{opacity:0;transform:translateY(18px);transition:opacity .9s var(--ease),transform .9s var(--ease)}
.hero-art{opacity:0;transform:scale(.96);transition:opacity 1s var(--ease) .25s,transform 1.2s var(--ease) .25s}
html.is-loaded .hero-copy>*,html.is-loaded .hero-art{opacity:1;transform:none}
html.is-loaded .hero-copy>:nth-child(2){transition-delay:.08s}
html.is-loaded .hero-copy>:nth-child(3){transition-delay:.16s}
html.is-loaded .hero-copy>:nth-child(4){transition-delay:.24s}
html.is-loaded .hero-copy>:nth-child(5){transition-delay:.32s}

@media (max-width:1100px){
  .hero-in{grid-template-columns:1fr 1fr}
  .display{font-size:68px;line-height:68px;letter-spacing:-1.6px}
}
@media (max-width:820px){
  .hero-in{display:flex;flex-direction:column;align-items:stretch;padding-top:110px;gap:28px;min-height:0}
  .hero-copy{display:contents}
  .pill-eyebrow{align-self:flex-start;order:1}
  .hero h1{order:2}
  .hero-art{order:3;justify-self:auto;margin:0 auto;width:96%;max-width:440px}
  .hero-lead{order:4}
  .hero-ctas{order:5;flex-direction:column}
  .hero-ctas .btn{width:100%}
  .trust{order:6;flex-direction:column;gap:12px;padding:0}
  .h-burbuja{left:-2%;top:10%;width:104%}
  .h-sticker{padding:8px 14px 10px;border-radius:18px}
  .h-sticker .script-m{font-size:20px;line-height:22px}
  .h-sticker .caption{font-size:10px}
  .h-sp.s5{display:none}
}
@media (max-width:720px){
  .hero-in{padding-top:96px}
  .pill-eyebrow{font-size:11px;letter-spacing:1.4px;padding:7px 14px 7px 12px}
  .trust .only-wide{display:none}
}

/* ---------- S2 · Categorías ---------- */
.cats{position:relative;background:var(--blush);padding:24px 0 104px;overflow:hidden}
.cats .sec-head{margin-bottom:56px}
.cat-track{display:flex;gap:20.8px;justify-content:space-between}
.cat{width:196px;flex:none;display:flex;flex-direction:column;gap:16px}
.cat.low{padding-top:56px}
.cat-m{position:relative;display:block;width:196px;height:245px}
.cat-m img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.cat-m.arco{border-radius:98px 98px 28px 28px;overflow:hidden;box-shadow:var(--sombra-papel)}
.cat-m.pildora{border-radius:98px;overflow:hidden;box-shadow:var(--sombra-papel)}
.cat-m.pildora img{object-position:50% 20%}
.cat-m.feston>img:first-child{-webkit-mask:url(../home/cat/mask-feston.svg) 0 0/203.64px 203.64px no-repeat;mask:url(../home/cat/mask-feston.svg) 0 0/203.64px 203.64px no-repeat}
.cat-m.feston .contorno{position:absolute;left:0;top:0;width:203.64px;height:203.64px;object-fit:fill}
.cat-m.burbuja>img:first-child{-webkit-mask:url(../home/cat/mask-burbuja.svg) 0 0/194.957px 235.693px no-repeat;mask:url(../home/cat/mask-burbuja.svg) 0 0/194.957px 235.693px no-repeat}
.cat-m.burbuja .contorno{position:absolute;left:0;top:0;width:194.957px;height:235.693px;object-fit:fill}
.cat-m.ilus .ilu{position:absolute;object-fit:contain;transition:transform .5s var(--ease)}
.cat-m .ilu.lazo{left:32px;top:77.5px;width:132px;height:110px}
.cat-m .ilu.globos{left:33px;top:57.5px;width:130px;height:150px}
.cat-m .ilu-sp{position:absolute;left:40px;top:50px;width:22px;height:22px}
.cat:hover .cat-m:not(.ilus)>img:first-child{transform:scale(1.06)}
.cat:hover .ilu{transform:translateY(-6px) rotate(-4deg)}
.cat-t{display:flex;gap:8px;align-items:flex-start;justify-content:space-between;font:400 22px/26px var(--f-display);letter-spacing:-.11px;font-variation-settings:"SOFT" 0,"WONK" 1}
.cat-t .ic{color:var(--rosa-profundo);margin-top:3px;transition:transform .25s var(--ease)}
.cat:hover .cat-t .ic{transform:translateX(4px)}
.cat .text-s{margin-top:-4px}
.cats .d-sp1{left:89.6%;top:60px;width:30px}
.cats .d-sp2{left:48.6%;top:90px;width:22px}
.cats .d-sp3{left:40px;top:520px;width:26px}
.cats .d-sp4{left:95.8%;top:560px;width:20px}
.cats .d-nube{left:-60px;top:640px;width:200px}
.swipe-hint{align-items:center;gap:16px;margin-top:28px;font:500 13px/16px var(--f-ui);color:var(--texto-2)}
.dots{display:inline-flex;gap:6px}
.dots i{width:8px;height:8px;border-radius:999px;background:var(--rosa);transition:width .3s var(--ease),background .3s}
.dots i.on{width:22px;background:var(--ciruela)}
@media (max-width:1240px){
  .cat-track{overflow-x:auto;scroll-snap-type:x mandatory;margin:0 calc(var(--pad) * -1);padding:0 var(--pad) 12px;scrollbar-width:none;justify-content:flex-start}
  .cat-track::-webkit-scrollbar{display:none}
  .cat{scroll-snap-align:start}
}
@media (max-width:900px){
  .sec-head{flex-direction:column;align-items:flex-start;gap:20px}
  .sec-aside{width:100%}
  .cats .sec-aside{display:none}
}
@media (max-width:720px){
  .cats{padding:8px 0 64px}
  .cats .sec-head{margin-bottom:28px}
  .cat.low{padding-top:0}
  .swipe-hint.only-mobile{display:flex!important}
  .cats .d-sp1,.cats .d-sp2,.cats .d-nube{display:none}
}

/* ---------- S3 · Bloomshell ---------- */
.bloom{position:relative;background:var(--nube);padding:0 0 0;overflow:hidden}
.bloom>.wrap{padding-top:76px;padding-bottom:54px;position:relative;z-index:1}
.bloom .sec-head{margin-bottom:48px}
.tag-sp{gap:8px;padding:6px 14px 6px 12px}
.tag-sp img{width:12px;height:12px}
.pgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}
.bloom .b-arcoiris{left:57%;top:130px;width:220px;transform:rotate(-8deg)}
.bloom .wave{position:relative;margin-top:0}
.bloom-more{margin-top:32px}
@media (max-width:1100px){.pgrid{grid-template-columns:repeat(3,minmax(0,1fr))}.pgrid>*:nth-child(4){display:none}}
@media (max-width:720px){
  .bloom>.wrap{padding-top:40px;padding-bottom:40px}
  .bloom .sec-head{margin-bottom:28px}
  .pgrid{grid-template-columns:1fr 1fr;gap:28px 16px}
  .pgrid>*:nth-child(4){display:flex}
  .bloom .b-arcoiris{display:none}
}

/* ---------- S4 · Nuestra historia ---------- */
.story{position:relative;background:var(--ciruela);color:var(--inverso);margin-top:-2px}
.story-in{display:grid;grid-template-columns:minmax(0,560px) minmax(0,600px);gap:96px;align-items:center;justify-content:space-between;padding-top:56px;padding-bottom:106px}
.collage{position:relative;width:100%;aspect-ratio:560/620}
.collage>*{position:absolute;margin:0}
.c-burbuja{left:1.8%;top:17.7%;width:92.9%;height:74.2%}
.c-arcoiris{left:10.7%;top:0;width:67.9%}
.c-main{left:10.4%;top:12.7%;width:60.7%;aspect-ratio:340/450;background:var(--blanco);padding:2%;border-radius:50% 50% 30px 30px/38% 38% 30px 30px;transform:rotate(3deg);box-shadow:var(--sombra-flotante)}
.c-main img{width:100%;height:100%;object-fit:cover;border-radius:50% 50% 22px 22px/37% 37% 22px 22px}
.c-polaroid{left:61%;top:52%;width:38.2%;background:var(--blanco);padding:12px 12px 14px;border-radius:8px;transform:rotate(-7deg);display:flex;flex-direction:column;align-items:center;gap:8px;
  filter:drop-shadow(0 4px 5px rgba(84,6,53,.06)) drop-shadow(0 24px 24px rgba(84,6,53,.10))}
.c-polaroid img{width:100%;aspect-ratio:190/200;object-fit:cover;border-radius:4px}
.c-polaroid figcaption{color:var(--ciruela);white-space:nowrap}
.c-sp{animation:twinkle 2.8s ease-in-out infinite}
.c-sp.s1{left:7.1%;top:9.7%;width:5.4%}
.c-sp.s2{left:83.9%;top:14.5%;width:3.9%;animation-delay:.7s}
.c-sp.s3{left:3.6%;top:83.9%;width:3.6%;animation-delay:1.4s}
.c-sp.s4{left:92.9%;top:48.4%;width:2.9%;animation-delay:2.1s}
.story-copy{display:flex;flex-direction:column;gap:26px;align-items:flex-start}
.story-copy h2{color:var(--inverso)}
.story-copy p{margin:0}
.quote{margin:0;border-left:3px solid var(--rosa);padding:4px 0 4px 22px;display:flex;flex-direction:column;gap:6px}
.quote cite{font-style:normal;color:var(--rosa)}
.story>.scallop{position:relative}
@media (max-width:1100px){.story-in{gap:48px}}
@media (max-width:900px){
  .story-in{grid-template-columns:1fr;padding-top:24px;padding-bottom:64px;gap:40px}
  .collage{max-width:440px;margin:0 auto;width:100%}
  .story-copy .btn{width:100%}
}

/* ---------- S5 · Colecciones y ocasiones ---------- */
.occ{background:var(--crema);padding:44px 0 120px;margin-top:-1px}
.occ .sec-head{margin-bottom:44px}
.bento{display:grid;grid-template-columns:624fr 624fr;gap:32px}
.bento-feat{position:relative;border-radius:40px;overflow:hidden;background:var(--ciruela);min-height:576px;display:block}
.bento-feat>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}
.bento-feat:hover>img{transform:scale(1.04)}
.bento-grad{position:absolute;left:0;right:0;bottom:0;height:57%;background:linear-gradient(to bottom,rgba(84,6,53,0),rgba(84,6,53,.92))}
.bento-txt{position:absolute;left:40px;right:40px;bottom:40px;display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.bento-col{display:flex;flex-direction:column;gap:32px}
.bento-card{display:flex;align-items:center;gap:24px;border-radius:40px;padding:24px 24px 24px 36px;min-height:272px;overflow:hidden;transition:transform .3s var(--ease)}
.bento-card:hover{transform:translateY(-4px)}
.bento-c{flex:1;display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.bento-c .link-arrow{padding-top:6px}
.bento-img{flex:none;width:200px;height:224px;border:6px solid var(--blanco);box-shadow:var(--sombra-papel);overflow:hidden}
.bento-img.arc{border-radius:100px 100px 24px 24px}
.bento-img.pill{border-radius:100px}
.bento-img img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.bento-card:hover .bento-img img{transform:scale(1.06)}
.occasions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:44px}
.occasions .lbl{font:600 14px/20px var(--f-ui)}
@media (max-width:1100px){.bento{grid-template-columns:1fr}.bento-feat{min-height:520px}}
@media (max-width:720px){
  .occ{padding:40px 0 72px}
  .occ .sec-head{margin-bottom:24px}
  .bento{gap:20px}.bento-col{gap:20px}
  .bento-feat{min-height:440px;border-radius:32px}
  .bento-txt{left:24px;right:24px;bottom:24px}
  .bento-txt .text-l{font-size:15px;line-height:22px}
  .bento-card{padding:20px 16px 20px 20px;min-height:0;border-radius:32px;gap:12px}
  .bento-img{width:108px;height:132px;border-width:4px}
  .occasions{margin-top:24px;gap:8px}
  .occasions .lbl{display:none}
}

/* ---------- S6 · Instagram ---------- */
.ig{background:var(--nube);position:relative}
.ig-in{display:flex;flex-direction:column;align-items:center;gap:48px;padding-top:68px;padding-bottom:120px}
.ig-head{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.ig-head p{margin:0}
.ig-grid{display:flex;gap:20.8px;justify-content:center}
.ig-post{width:196px;flex:none;border-radius:32px;overflow:hidden;rotate:2.5deg;transition:rotate .4s var(--ease),scale .4s var(--ease),box-shadow .4s,opacity .8s var(--ease),transform .8s var(--ease)}
.ig-post:nth-child(even){rotate:-2.5deg;margin-top:28px}
.ig-post img{width:100%;aspect-ratio:1;object-fit:cover}
.ig-post:hover{rotate:0deg;scale:1.04;box-shadow:var(--sombra-flotante)}
@media (max-width:1300px){.ig-grid{flex-wrap:wrap;max-width:700px}}
@media (max-width:720px){
  .ig-in{gap:32px;padding-top:44px;padding-bottom:72px}
  .ig-head p{font-size:15px;line-height:22px}
  .ig-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:100%}
  .ig-post{width:auto;border-radius:20px}
  .ig-post:nth-child(even){margin-top:14px}
  .ig .btn{width:100%}
}

/* ---------- Ajustes móvil (390) ---------- */
@media (max-width:720px){
  .btn.only-mobile{display:flex!important}
  .hero .display{font-size:48px;line-height:52px;letter-spacing:-1.2px}
  .h-nube.n1{display:none}
  .cat-track{scroll-padding-left:var(--pad)}
  .cat{width:146px;gap:12px}
  .cat-m{width:146px;height:183px}
  .cat-m.arco{border-radius:73px 73px 22px 22px}
  .cat-m.pildora{border-radius:73px}
  .cat-m.feston>img:first-child{-webkit-mask-size:103.9% 83.1%;mask-size:103.9% 83.1%}
  .cat-m.feston .contorno{width:103.9%;height:83.1%}
  .cat-m.burbuja>img:first-child{-webkit-mask-size:99.5% 96.2%;mask-size:99.5% 96.2%}
  .cat-m.burbuja .contorno{width:99.5%;height:96.2%}
  .cat-m .ilu.lazo{left:16%;top:31.6%;width:67%;height:45%}
  .cat-m .ilu.globos{left:17%;top:23.5%;width:66%;height:61%}
  .cat-m .ilu-sp{left:20%;top:20%;width:16px;height:16px}
  .cat-t{font-size:18px;line-height:22px}
  .cat .text-s{font-size:13px;line-height:18px}
}
@media (max-width:720px){
  .cats .d-sp3,.cats .d-sp4{display:none}
  .bento-grad{height:72%}
}
@media (max-width:1100px){.bento{grid-template-columns:minmax(0,1fr)}}
.bento-card .h3,.bento-c{min-width:0;overflow-wrap:anywhere}

/* ---------- Marcas que manejamos (dentro de Categorías) ---------- */
.brands{margin-top:72px;background:rgba(255,255,255,.55);border:1px solid rgba(255,255,255,.8);border-radius:40px;padding:28px 28px 22px;position:relative;z-index:1}
.brands-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px}
.brands-head>div:first-child{display:flex;flex-direction:column;gap:10px}
.brands-nav{display:flex;gap:8px}
.brands-btn{background:var(--blanco);box-shadow:var(--sombra-suave)}
.brands-btn:disabled{opacity:.35;pointer-events:none}
.brands.no-scroll .brands-nav{display:none}
.brands-track{list-style:none;margin:0 -28px;padding:8px 28px 18px;display:flex;gap:20px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding:0 28px;scrollbar-width:none;overscroll-behavior-x:contain}
.brands-track::-webkit-scrollbar{display:none}
.brands-track li{flex:none;scroll-snap-align:start}
.brand{display:flex;flex-direction:column;align-items:center;gap:10px;width:132px}
.brand-c{width:132px;height:132px;border-radius:50%;border:5px solid var(--blanco);box-shadow:var(--sombra-papel);display:grid;place-items:center;overflow:hidden;transition:transform .35s var(--ease),box-shadow .35s}
.brand-c img{width:100%;height:100%;object-fit:contain;padding:14px}
.brand-txt{font:400 20px/22px var(--f-display);font-variation-settings:"SOFT" 0,"WONK" 1;text-align:center;padding:10px}
.brand-n{font:600 13px/18px var(--f-ui);color:var(--texto-2);text-align:center}
.brand:hover .brand-c{transform:translateY(-4px) rotate(-3deg)}
.brand:focus-visible .brand-c{outline:2px solid var(--rosa-profundo);outline-offset:3px}
@media (max-width:720px){
  .brands{margin-top:40px;border-radius:32px;padding:22px 16px 14px}
  .brands-head{margin-bottom:10px}
  .brands-nav{display:none}
  .brands-track{margin:0 -16px;padding:8px 16px 16px;gap:14px;scroll-padding:0 16px}
  .brand{width:92px;gap:8px}
  .brand-c{width:92px;height:92px;border-width:4px}
  .brand-c img{padding:9px}
  .brand-txt{font-size:15px;line-height:17px}
  .brand-n{font-size:12px;line-height:16px}
}
.brand-c.fill img{padding:0;object-fit:cover}
.brand-c.wide img{padding:8px 6px}
