*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--fuente-texto);color:#1F1A22;background:#fff;font-size:16px;line-height:1.55}
a{color:var(--principal)}
img{max-width:100%}
h1,h2,h3{font-family:var(--fuente-titulos);line-height:1.15;margin:0 0 14px;color:var(--oscuro)}
h1{font-size:clamp(30px,4.5vw,46px)}
h2{font-size:clamp(24px,3.2vw,34px)}
h3{font-size:19px}
.contenedor{max-width:1120px;margin:0 auto;padding:0 16px}
.angosto{max-width:760px}
.fila{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.centrado{text-align:center}

.barra-previa{background:#FFF3D1;color:#5C3D00;text-align:center;padding:8px 16px;font-size:14px;font-weight:600}
.cabecera{background:#fff;border-bottom:1px solid #EEE;position:sticky;top:0;z-index:5}
.cabecera .fila{min-height:68px}
.logo{font-family:var(--fuente-titulos);font-weight:700;font-size:22px;color:var(--oscuro);text-decoration:none;display:flex;align-items:center}
.logo img{max-height:46px;width:auto}
.nav{display:flex;gap:18px;align-items:center}
.nav a{color:var(--oscuro);text-decoration:none;font-weight:600}
.burbuja{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--principal);color:#fff;font-size:12px}

.boton{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 24px;border-radius:10px;background:var(--principal);color:#fff;font:inherit;font-weight:700;text-decoration:none;border:1px solid transparent;cursor:pointer}
.boton:hover{filter:brightness(.9);color:#fff}
.boton.secundario{background:#fff;color:var(--oscuro);border-color:var(--oscuro)}
.boton.acento{background:var(--acento);color:var(--oscuro)}
.boton.ancho{width:100%}
.boton[disabled]{opacity:.5;cursor:not-allowed}
.acciones{display:flex;gap:12px;flex-wrap:wrap}
.acciones.centradas{justify-content:center}
.acciones.fin{justify-content:flex-end}

.portada{background:var(--oscuro);color:#fff;padding:clamp(64px,10vw,130px) 0;background-size:cover;background-position:center;position:relative}
.portada.con-imagen::before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.5)}
.portada .contenedor{position:relative}
.portada h1{color:#fff;max-width:760px}
.portada p{font-size:20px;max-width:620px;margin:0 0 26px;opacity:.95}

.seccion{padding:clamp(44px,6vw,76px) 0}
.seccion.clara{background:var(--fondo)}
.seccion>.contenedor>h2{text-align:center;margin-bottom:30px}
.rejilla-beneficios{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:20px}
.beneficio{border-top:4px solid var(--acento);padding-top:14px}
.beneficio p{margin:0;color:#4A4350}
.testimonio{margin:0;background:#fff;border-radius:14px;padding:22px;border:1px solid #EEE}
.testimonio p{margin:0 0 12px;font-size:17px}
.testimonio footer{font-weight:700;color:var(--oscuro)}
.galeria{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:12px}
.galeria img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px}
details{border-bottom:1px solid #E5E5E5;padding:16px 0}
summary{font-weight:700;cursor:pointer;font-size:18px}
details p{margin:10px 0 0;color:#4A4350}
.contacto{background:var(--oscuro);color:#fff}
.contacto h2{color:#fff}
.contacto .boton.secundario{background:transparent;color:#fff;border-color:#fff}

.rejilla-productos{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:22px;margin-bottom:28px}
.producto-tarjeta{display:flex;flex-direction:column;gap:6px;text-decoration:none;color:inherit}
.producto-tarjeta .foto{position:relative;display:block;aspect-ratio:1;border-radius:12px;overflow:hidden;background:var(--fondo)}
.producto-tarjeta img{width:100%;height:100%;object-fit:cover;transition:transform .2s}
.producto-tarjeta:hover img{transform:scale(1.03)}
.producto-tarjeta .nombre{font-weight:600}
.producto-tarjeta .precio{font-weight:700;color:var(--oscuro)}
s{color:#6B6470;font-weight:400;margin-left:6px}
.oferta{position:absolute;top:10px;left:10px;background:var(--acento);color:var(--oscuro);font-style:normal;font-weight:700;font-size:13px;padding:3px 10px;border-radius:999px}
.agotado{color:#B42318;font-weight:600}
.filtros{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}
.filtros a{padding:8px 14px;border-radius:999px;border:1px solid #DDD;text-decoration:none;color:var(--oscuro)}
.filtros a.activo{background:var(--oscuro);border-color:var(--oscuro);color:#fff}

.ficha{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}
.foto-principal{width:100%;aspect-ratio:1;object-fit:cover;border-radius:14px;background:var(--fondo);display:block}
.miniaturas{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.miniatura-boton{padding:0;border:2px solid transparent;border-radius:10px;background:none;cursor:pointer;width:72px;height:72px;overflow:hidden}
.miniatura-boton:focus-visible,.miniatura-boton:hover{border-color:var(--principal)}
.miniatura-boton img{width:100%;height:100%;object-fit:cover}
.precio-grande{font-size:28px;font-weight:800;color:var(--oscuro)}
.comprar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:20px 0}
.comprar label{width:100%;margin:0}
.comprar input{width:90px}
.descripcion{color:#3F3845;border-top:1px solid #EEE;padding-top:18px}

.tarjeta{background:#fff;border:1px solid #E5E5E5;border-radius:14px;padding:22px;margin-bottom:20px}
.campo{margin-bottom:16px}
label{display:block;font-weight:600;margin-bottom:6px}
fieldset{border:0;padding:0;margin:0 0 16px;min-width:0}
legend{font-weight:700;margin-bottom:8px;padding:0}
input[type=text],input[type=email],input[type=tel],input[type=number],textarea{width:100%;min-height:46px;padding:10px 12px;border:1px solid #BBB;border-radius:8px;font:inherit;color:inherit;background:#fff}
input[type=file]{font:inherit;max-width:100%}
input:focus,textarea:focus,a:focus-visible,button:focus-visible{outline:3px solid var(--acento);outline-offset:1px}
.opcion{display:flex;gap:10px;align-items:center;font-weight:500;border:1px solid #DDD;border-radius:10px;padding:12px 14px;margin-bottom:8px;cursor:pointer}
.opcion input{width:18px;height:18px}
.dos{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:0 16px}
.ayuda{color:#5C5561;font-size:14px}
.error-campo{color:#B42318;font-size:14px;margin:6px 0 0}
.aviso{padding:12px 16px;border-radius:8px;margin:16px 0;background:#E5F5EC;color:#0F6B3C}
.aviso.error{background:#FDECEA;color:#B42318}
.aviso.info{background:#FFF3D1;color:#5C3D00}
.estado{display:inline-block;padding:4px 12px;border-radius:999px;background:var(--fondo);color:var(--oscuro);font-weight:600}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pre{white-space:pre-line}

.lineas{list-style:none;padding:0;margin:0 0 16px}
.lineas li{display:grid;grid-template-columns:64px 1fr 76px auto 36px;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #EEE}
.linea-foto{width:64px;height:64px;border-radius:10px;overflow:hidden;background:var(--fondo)}
.linea-foto img{width:100%;height:100%;object-fit:cover}
.linea-nombre a{color:var(--oscuro);font-weight:600;text-decoration:none}
.cantidad{min-height:40px !important;padding:6px 8px !important}
.quitar{width:36px;height:36px;border-radius:50%;border:1px solid #DDD;background:#fff;font-size:20px;cursor:pointer;color:#555}
.total-linea{text-align:right;font-size:18px}
.checkout{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;align-items:start}
.checkout h1{font-size:30px}
.resumen{list-style:none;padding:0;margin:0}
.resumen li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #F0F0F0}
.resumen .total{font-weight:800;font-size:18px;border-bottom:0}
.datos{display:grid;grid-template-columns:max-content 1fr;gap:6px 14px;margin:0 0 16px}
.datos dt{color:#5C5561}
.datos dd{margin:0;font-weight:700;overflow-wrap:anywhere}

.pie{background:#141016;color:#E8E3EA;padding:36px 0 20px;margin-top:0}
.pie a{color:#fff}
.pie-rejilla{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap}
.pie-rejilla p{margin:6px 0 0;color:#C9C2CD}
.pie-enlaces{display:flex;flex-direction:column;gap:6px}
.creditos{font-size:13px;color:#B5ADB9;margin:24px auto 0}
.creditos a{color:#E8E3EA}
.whatsapp{position:fixed;right:18px;bottom:18px;width:58px;height:58px;border-radius:50%;background:#1E8E4F;color:#fff;display:grid;place-items:center;box-shadow:0 8px 24px rgba(0,0,0,.25);z-index:10}
.whatsapp:hover{color:#fff;background:#177A42}

@media (max-width:760px){
  .ficha,.checkout{grid-template-columns:1fr;gap:24px}
  .nav{gap:12px;font-size:15px}
  .lineas li{grid-template-columns:52px 1fr 64px 32px;}
  .lineas li strong{grid-column:2;grid-row:2}
  .linea-foto{width:52px;height:52px}
}

.seccion>.contenedor.legal>h2,.legal h2{text-align:left;font-size:22px;margin:28px 0 10px}
.legal ul{padding-left:20px}
.legal li{margin-bottom:6px}

/* ---------- v2: movimiento e interacción ---------- */
.cabecera{transition:box-shadow .2s ease}
.cabecera.con-sombra{box-shadow:0 6px 24px rgba(0,0,0,.08)}
.burbuja{transition:transform .2s ease}
.burbuja[data-cantidad="0"]{display:none}
.burbuja.salto{animation:salto .45s ease}
@keyframes salto{0%{transform:scale(1)}40%{transform:scale(1.45)}100%{transform:scale(1)}}

/* Portada: entrada única al cargar */
.portada{overflow:hidden;isolation:isolate;padding:clamp(80px,12vw,150px) 0}
.portada.con-imagen::before{display:none}
.portada-fondo{position:absolute;inset:0;z-index:-2;background-size:cover;background-position:center;animation:acercar 14s ease-out both}
.portada.con-imagen::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(0,0,0,.72) 0%,rgba(0,0,0,.45) 55%,rgba(0,0,0,.15) 100%)}
.portada-formas{position:absolute;inset:0;z-index:-1;pointer-events:none}
.portada-formas span{position:absolute;border-radius:50%}
.portada-formas span:first-child{width:min(52vw,560px);aspect-ratio:1;right:-8%;top:50%;background:var(--principal);opacity:.55;transform:translateY(-50%);animation:aparecer 1.2s cubic-bezier(.2,.8,.2,1) both}
.portada-formas span:last-child{width:min(22vw,220px);aspect-ratio:1;right:24%;bottom:-60px;background:var(--acento);animation:aparecer 1.2s cubic-bezier(.2,.8,.2,1) .25s both}
.portada-contenido>*{animation:entrar .7s cubic-bezier(.2,.8,.2,1) both}
.portada-contenido>*:nth-child(2){animation-delay:.12s}
.portada-contenido>*:nth-child(3){animation-delay:.24s}
.portada h1{font-size:clamp(34px,5.5vw,64px);line-height:1.04;max-width:16ch}
@keyframes acercar{from{transform:scale(1.12)}to{transform:scale(1)}}
@keyframes entrar{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes aparecer{from{opacity:0;scale:.6}to{opacity:1;scale:1}}
.portada-formas span:first-child{animation-name:aparecer}

/* Tarjetas de producto con botón para agregar */
.producto-tarjeta{display:flex;flex-direction:column;gap:10px}
.producto-enlace{display:flex;flex-direction:column;gap:6px;text-decoration:none;color:inherit}
.producto-enlace:hover .nombre{text-decoration:underline}
.agregar-boton{font:inherit;font-weight:700;min-height:44px;width:100%;border-radius:10px;border:2px solid var(--oscuro);background:#fff;color:var(--oscuro);cursor:pointer;transition:background-color .2s ease,color .2s ease,border-color .2s ease}
.agregar-boton:hover{background:var(--oscuro);color:#fff}
.agregar-boton.listo{background:var(--principal);border-color:var(--principal);color:#fff}
.comprar .agregar-boton{width:auto;border:0;background:var(--principal);color:#fff;padding:0 24px}
.comprar .agregar-boton:hover{filter:brightness(.9);background:var(--principal)}
.agregar-boton[disabled]{opacity:.7;cursor:progress}

/* Aviso flotante al agregar */
.aviso-flotante{position:fixed;left:50%;bottom:24px;z-index:30;transform:translate(-50%,140%);background:var(--oscuro);color:#fff;padding:14px 18px;border-radius:12px;display:flex;gap:16px;align-items:center;box-shadow:0 12px 30px rgba(0,0,0,.25);transition:transform .3s cubic-bezier(.2,.8,.2,1);max-width:calc(100% - 32px)}
.aviso-flotante.visible{transform:translate(-50%,0)}
.aviso-flotante a{color:var(--acento);font-weight:700;white-space:nowrap}

/* Barra de carrito en celular */
.barra-carrito{display:none}

/* Galería con visor */
.galeria-foto{padding:0;border:0;background:none;cursor:zoom-in;border-radius:12px;overflow:hidden;display:block}
.galeria-foto img{display:block;transition:transform .3s ease}
.galeria-foto:hover img{transform:scale(1.04)}
.visor{border:0;padding:0;background:transparent;max-width:min(92vw,1100px);max-height:90vh}
.visor::backdrop{background:rgba(0,0,0,.82)}
.visor[open]{animation:entrar .25s ease}
.visor img{display:block;max-width:100%;max-height:86vh;border-radius:12px}
.visor-cerrar{position:absolute;top:10px;right:10px;width:44px;height:44px;border-radius:50%;border:0;background:#fff;color:#111;font-size:26px;line-height:1;cursor:pointer}

/* Preguntas */
summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";font-size:28px;font-weight:400;line-height:1;color:var(--principal);transition:transform .25s ease;flex-shrink:0}
details[open] summary::after{transform:rotate(45deg)}
details[open] summary~*{animation:entrar .3s ease}

/* Ficha de producto: miniaturas */
.foto-principal{transition:opacity .2s ease}
.foto-principal.cambiando{opacity:.4}
.miniatura-boton[aria-current="true"]{border-color:var(--principal)}

@media (max-width:760px){
  .barra-carrito{display:flex;justify-content:space-between;align-items:center;position:fixed;left:12px;right:84px;bottom:18px;z-index:9;min-height:52px;padding:0 18px;border-radius:14px;background:var(--principal);color:#fff;font-weight:700;text-decoration:none;box-shadow:0 10px 28px rgba(0,0,0,.25);transition:transform .3s ease}
  .barra-carrito[data-cantidad="0"]{transform:translateY(160%)}
  .barra-cantidad{font-weight:500;opacity:.9}
  .aviso-flotante{bottom:84px}
  .portada-formas span:first-child{width:80vw;right:-35%;opacity:.4}
  .portada-formas span:last-child{right:6%;width:110px;bottom:-40px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}
@media (max-width:760px){
  .cabecera .fila{flex-wrap:nowrap;min-height:60px}
  .logo{max-width:46%;font-size:19px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .logo img{max-height:38px}
  .nav{gap:14px;font-size:15px}
  .rejilla-productos{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
  .producto-tarjeta .nombre{font-size:15px}
  .agregar-boton{min-height:44px;font-size:15px}
}
.aviso-flotante{opacity:0;visibility:hidden;transition:transform .3s cubic-bezier(.2,.8,.2,1),opacity .2s ease,visibility 0s linear .3s}
.aviso-flotante.visible{opacity:1;visibility:visible;transition:transform .3s cubic-bezier(.2,.8,.2,1),opacity .2s ease}
.nav a{white-space:nowrap}

/* Tallas y colores */
.opciones-producto{border:0;padding:0;margin:0;width:100%}
.opciones-producto legend{font-weight:600;margin-bottom:8px}
.pastillas{display:flex;flex-wrap:wrap;gap:8px}
.pastilla{position:relative;margin:0;width:auto!important}
.pastilla input{position:absolute;opacity:0;inset:0;width:100%!important;height:100%;margin:0;cursor:pointer}
.pastilla span{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:2px solid #D9D9D9;border-radius:999px;font-weight:600;background:#fff;transition:border-color .15s ease,background-color .15s ease,color .15s ease}
.pastilla input:hover+span{border-color:var(--oscuro)}
.pastilla input:checked+span{border-color:var(--oscuro);background:var(--oscuro);color:#fff}
.pastilla input:focus-visible+span{outline:3px solid var(--acento);outline-offset:2px}
.pastilla.sin-stock span{color:#999;text-decoration:line-through;border-style:dashed}
.pastilla.sin-stock input{cursor:not-allowed}
#quedan{margin:8px 0 0;color:#B42318;font-weight:600}
a.agregar-boton.opciones{display:flex;align-items:center;justify-content:center;text-decoration:none}

/* Carrito: opción, cupón y envío gratis */
.linea-opcion{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:999px;background:var(--fondo);font-size:13px;color:var(--oscuro)}
.totales-carrito{max-width:360px;margin-left:auto}
.resumen .descuento span:last-child{color:#1B7F3B;font-weight:600}
.enlace{background:none;border:0;padding:0;margin-left:6px;font:inherit;font-size:13px;color:var(--oscuro);text-decoration:underline;cursor:pointer}
.envio-gratis{text-align:right;margin:10px 0 0;font-size:15px}
.envio-gratis.listo{color:#1B7F3B;font-weight:600}
.cupon{margin:20px 0 0;max-width:360px;margin-left:auto}
.cupon label{display:block;font-weight:600;margin-bottom:6px}
.cupon-fila{display:flex;gap:8px}
.cupon-fila input{flex:1;min-width:0;text-transform:uppercase}
.envio-guia .guia{font-size:20px;letter-spacing:.04em;user-select:all}
@media (max-width:760px){.totales-carrito,.cupon{max-width:none}.envio-gratis{text-align:left}}
@media (max-width:760px){.pie{padding-bottom:96px}}

/* Mercado Pago */
.boton-mp{background:#009EE3;color:#fff;border-color:#009EE3}
.boton-mp:hover{background:#007EB5;border-color:#007EB5}
.pago-mp h2{margin-top:0}
.opcion-detalle{display:block;font-size:13px;color:#666;font-weight:400;margin-top:2px}
