/* ODÍN Mayorista · Identidad visual v2.0
   Paleta: Azul ODÍN #2A4C9B · Celeste #9CB7E1 · Azul noche #10213C · Blanco frío #F4F7FB
   Tipografías: Poppins (títulos) + Inter (textos) */

:root {
  --azul: #2A4C9B;
  --azul-700: #213E80;
  --azul-50: #E8EEF8;
  --celeste: #9CB7E1;
  --celeste-100: #DFE8F6;
  --noche: #10213C;
  --blanco: #F4F7FB;
  --white: #ffffff;
  --muted: #5B6B85;
  --borde: #D9E2EF;
  --hogar: #15A6A0;
  --textil: #7B61B5;
  --industrial: #D88728;
  --perfumeria: #BC5E89;
  --piscina: #249BC8;
  --ok: #15A6A0;
  --warn: #D88728;
  --err: #C2413A;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 33, 60, .06), 0 8px 24px rgba(16, 33, 60, .06);
  --f-title: 'Poppins', Arial, sans-serif;
  --f-text: 'Inter', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-text); font-size: 16px; line-height: 1.6; color: var(--noche); background: var(--blanco); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); }
h1, h2, h3, h4 { font-family: var(--f-title); line-height: 1.15; margin: 0 0 .5em; color: var(--noche); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; }
.hidden, [hidden] { display: none !important; }

/* Barra de acento (azul / turquesa / violeta) como en las piezas de marca */
.accent-bar { display: flex; gap: 6px; margin: 14px 0 22px; }
.accent-bar span { height: 5px; border-radius: 3px; background: var(--azul); width: 64px; }
.accent-bar span:nth-child(2) { background: var(--hogar); width: 26px; }
.accent-bar span:nth-child(3) { background: var(--textil); width: 26px; }
.on-dark .accent-bar span:first-child, .site-footer .accent-bar span:first-child { background: var(--celeste); }
.center .accent-bar, .accent-bar.center { justify-content: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-title); font-weight: 600; font-size: .9rem; color: var(--azul); text-transform: none; }
.eyebrow::before { content: ""; width: 26px; height: 4px; border-radius: 2px; background: currentColor; }
.on-dark .eyebrow { color: var(--celeste); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--f-title); font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 15px 24px; border-radius: var(--radius-sm); border: 2px solid var(--azul); background: var(--azul); color: var(--white); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s; }
.btn:hover { background: var(--azul-700); border-color: var(--azul-700); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--celeste); outline-offset: 2px; }
.btn-outline { background: transparent; color: var(--azul); }
.btn-outline:hover { background: var(--azul-50); color: var(--azul); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--azul); }
.btn-light:hover { background: var(--celeste-100); border-color: var(--celeste-100); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-danger { background: var(--err); border-color: var(--err); }
.btn-danger:hover { background: #a3342e; border-color: #a3342e; }
.btn-sm { padding: 10px 16px; font-size: .88rem; }
.btn-xs { padding: 7px 11px; font-size: .8rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--azul); font: inherit; cursor: pointer; text-decoration: underline; }

/* ---------- Topbar / header ---------- */
.topbar { background: var(--noche); color: var(--celeste-100); font-size: .84rem; padding: 9px 0; text-align: center; }
.topbar strong { color: var(--white); }
.topbar em { font-style: normal; color: var(--celeste); }
/* Marca Blanca */
.mb-card { display: flex; flex-direction: column; gap: 6px; }
.mb-card h3 { margin: 6px 0 0; }
.mb-label { display: flex; gap: 8px; align-items: flex-end; height: 92px; padding: 10px; background: var(--azul-50); border-radius: 10px; }
.mb-label span { display: block; background: var(--white); border: 2px dashed var(--celeste, #9CB7E1); border-radius: 6px; }
.mb-label-chica span { width: 47px; height: 66px; }
.mb-label-grande span, .mb-label-doble span { width: 50px; height: 71px; }
.mb-price { margin-top: auto; font-family: var(--f-title); font-weight: 700; font-size: 1.3rem; color: var(--azul); }
.mb-price small { font-size: .78rem; font-weight: 500; color: var(--muted); }
.mb-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 24px 0; border-left: 4px solid var(--azul); }
.mb-cond ul { margin: 0; padding-left: 18px; line-height: 1.7; }
.mb-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mb-opts .radio-card { margin: 0; }
.mb-estimado { margin-top: 14px; background: var(--azul-50); border-radius: 12px; padding: 14px 16px; }
.mb-estimado:empty { display: none; }
.mb-estimado strong { font-family: var(--f-title); color: var(--azul); }
@media (max-width: 760px) { .mb-opts { grid-template-columns: 1fr; } }
.vac-bar { background: var(--azul-50, #F4F7FB); color: var(--azul-900, #10213C); font-size: .9rem; padding: 10px 0; border-bottom: 1px solid #9CB7E1; text-align: center; }
.vac-bar.is-on { background: #9CB7E1; font-weight: 600; }
.notice-bar { background: #FDF1E4; color: #7A4A10; font-size: .9rem; padding: 10px 0; border-bottom: 1px solid #F3D9B9; }
.site-header { background: var(--white); border-bottom: 1px solid var(--borde); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand img { width: 150px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-family: var(--f-title); font-weight: 500; font-size: .95rem; }
.main-nav a { color: var(--noche); text-decoration: none; padding: 6px 0; }
.main-nav a:not(.btn):hover, .main-nav a.is-active { color: var(--azul); }
.main-nav a.is-active { box-shadow: inset 0 -3px 0 var(--azul); }
.main-nav .btn { color: var(--white); padding: 11px 18px; }
.nav-sep { width: 1px; height: 22px; background: var(--borde); }
.cart-link { position: relative; display: inline-flex; color: var(--azul) !important; }
.cart-count { position: absolute; top: -4px; right: -10px; background: var(--hogar); color: var(--white); font-size: .7rem; font-weight: 700; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--noche); margin: 5px 0; border-radius: 2px; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--borde); box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--blanco); }
  .main-nav a.is-active { box-shadow: none; }
  .main-nav .btn { margin-top: 12px; }
  .nav-sep { display: none; }
  .cart-link { padding: 13px 0 !important; }
  .cart-count { position: static; margin-left: 8px; }
  .topbar em { display: block; }
}

/* ---------- Alertas ---------- */
.flashes { padding-top: 18px; }
.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 10px; font-size: .95rem; border: 1px solid; }
.alert-success { background: #E3F5F4; border-color: #A8DEDB; color: #0B5E5A; }
.alert-error { background: #FBEAE9; border-color: #F0C2BF; color: #8A2620; }
.alert-info { background: var(--azul-50); border-color: var(--celeste); color: var(--azul-700); }
.alert-warn { background: #FDF1E4; border-color: #F3D9B9; color: #7A4A10; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--azul); color: var(--white); }
.hero .wrap { position: relative; z-index: 2; padding-top: 84px; padding-bottom: 96px; }
.hero h1 { color: var(--white); max-width: 680px; }
.hero p.lead { font-size: 1.15rem; max-width: 560px; color: var(--celeste-100); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.motif { position: absolute; pointer-events: none; z-index: 1; }
.hero .motif { right: -120px; top: -40px; width: 620px; opacity: .95; }
@media (max-width: 760px) { .hero .motif { width: 380px; right: -170px; top: auto; bottom: -120px; opacity: .55; } .hero .wrap { padding-top: 56px; padding-bottom: 72px; } }

.page-hero { background: var(--white); border-bottom: 1px solid var(--borde); position: relative; overflow: hidden; }
.page-hero .wrap { padding-top: 46px; padding-bottom: 38px; position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .2em; }
.page-hero .motif { right: -80px; top: -60px; width: 340px; opacity: .55; }
.page-hero.dark { background: var(--azul); border: 0; }
.page-hero.dark h1, .page-hero.dark p { color: var(--white); }

/* ---------- Secciones ---------- */
.section { padding: 76px 0; }
.section-sm { padding: 44px 0; }
.wrap.section, .wrap.section-sm { padding-left: 20px; padding-right: 20px; }
.section-white { background: var(--white); }
.section-dark { background: var(--noche); color: var(--celeste-100); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 36px; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { font-family: var(--f-title); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--noche); }
.value small { display: block; font-family: var(--f-text); font-weight: 400; font-size: .95rem; color: var(--muted); margin-top: 6px; letter-spacing: 0; }

.grid { display: grid; gap: 22px; }
.grid > *, .cart-layout > *, .catalog-layout > *, .product-layout > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4, .values { grid-template-columns: 1fr; } .section { padding: 54px 0; } }

.card { background: var(--white); border: 1px solid var(--borde); border-radius: var(--radius); padding: 26px; }
.card-tight { padding: 18px; }
.card h3 { margin-bottom: .35em; }

.type-card { position: relative; overflow: hidden; border-radius: var(--radius); padding: 36px 32px; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; color: var(--white); background: var(--azul); transition: transform .2s; }
.type-card:hover { transform: translateY(-3px); }
.type-card.alt { background: var(--noche); }
.type-card h3 { color: var(--white); font-size: 1.7rem; font-weight: 700; }
.type-card p { color: var(--celeste-100); max-width: 380px; }
.type-card .go { font-family: var(--f-title); font-weight: 600; color: var(--celeste); }
.type-card .motif { right: -70px; top: -70px; width: 300px; opacity: .9; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--borde); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--azul); color: var(--white); font-family: var(--f-title); font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 1.05rem; }
.step p { font-size: .93rem; color: var(--muted); margin: 0; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.ship-callout { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; background: var(--white); border: 2px solid var(--celeste); border-radius: var(--radius); padding: 26px 30px; }
.ship-callout .ico { width: 64px; height: 64px; border-radius: 50%; background: var(--azul-50); display: grid; place-items: center; color: var(--azul); }
.ship-callout h3 { margin-bottom: 4px; font-size: 1.25rem; }
.ship-callout p { margin: 0; color: var(--muted); }
.ship-callout .only { display: inline-block; margin-top: 8px; background: var(--azul); color: var(--white); font-family: var(--f-title); font-size: .8rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
@media (max-width: 760px) { .ship-callout { grid-template-columns: 1fr; text-align: left; } }

.club-band { position: relative; overflow: hidden; background: var(--azul); border-radius: 22px; padding: 56px; color: var(--white); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.club-band h2 { color: var(--white); }
.club-band p { color: var(--celeste-100); }
.club-band .motif { right: -100px; bottom: -120px; width: 420px; }
.club-band ul { position: relative; z-index: 2; }
.club-price { font-family: var(--f-title); font-weight: 700; font-size: 2.4rem; color: var(--white); line-height: 1; }
.club-price small { font-size: 1rem; font-weight: 500; color: var(--celeste); }
@media (max-width: 860px) { .club-band { grid-template-columns: 1fr; padding: 36px 26px; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding: 6px 0 6px 32px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--hogar) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- Catálogo ---------- */
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding-top: 36px; padding-bottom: 70px; }
@media (max-width: 860px) { .catalog-layout { grid-template-columns: 1fr; } }
.filters h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 8px; }
.filters h4:first-child { margin-top: 0; }
.filters a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; text-decoration: none; color: var(--noche); font-size: .95rem; }
.filters a:hover { background: var(--white); }
.filters a.is-active { background: var(--white); color: var(--azul); font-weight: 600; box-shadow: inset 3px 0 0 var(--azul); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--azul)); flex: none; }
.search { display: flex; gap: 8px; margin-bottom: 22px; }
.search input { flex: 1; }
@media (max-width: 860px) { .filters { display: flex; flex-wrap: wrap; gap: 6px; } .filters h4 { width: 100%; margin: 10px 0 2px; } .filters a { margin: 0; background: var(--white); border: 1px solid var(--borde); padding: 6px 12px; font-size: .88rem; } }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.pcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--borde); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--noche); transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard-img { position: relative; aspect-ratio: 1 / 1; background: var(--blanco); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard-body { padding: 16px 18px 18px; border-top: 4px solid var(--linea, var(--azul)); flex: 1; display: flex; flex-direction: column; }
.pcard-linea { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--linea, var(--azul)); }
.pcard h3 { font-size: 1.05rem; margin: 4px 0 6px; }
.pcard p { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.pcard-price { margin-top: auto; }
.pcard-price strong { font-family: var(--f-title); font-size: 1.25rem; color: var(--azul); }
.pcard-price small { color: var(--muted); }
.lock { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--azul); background: var(--azul-50); padding: 6px 10px; border-radius: 8px; }
.tag { position: absolute; top: 12px; left: 12px; font-family: var(--f-title); font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--azul); color: var(--white); }
.tag-terminado { background: var(--noche); }
.tag-club { left: auto; right: 12px; background: var(--hogar); }

/* ---------- Producto ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 40px; padding-bottom: 70px; align-items: start; }
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; gap: 28px; } }
.product-gallery { background: var(--white); border-radius: 18px; border: 1px solid var(--borde); overflow: hidden; aspect-ratio: 1/1; position: sticky; top: 96px; }
@media (max-width: 860px) { .product-gallery { position: static; } }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumbs a { color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--azul-50); color: var(--azul); margin-right: 6px; }
.option-group { margin: 22px 0; }
.option-group > label, .option-title { display: block; font-family: var(--f-title); font-weight: 600; margin-bottom: 10px; }
.pres-list { display: grid; gap: 10px; }
.pres { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; border: 2px solid var(--borde); background: var(--white); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.pres:hover { border-color: var(--celeste); }
.pres input { accent-color: var(--azul); width: 18px; height: 18px; }
.pres:has(input:checked) { border-color: var(--azul); background: var(--azul-50); }
.pres-name { font-family: var(--f-title); font-weight: 600; }
.pres-meta { font-size: .85rem; color: var(--muted); }
.pres-price { text-align: right; font-family: var(--f-title); font-weight: 700; color: var(--azul); font-size: 1.1rem; }
.pres-price small { display: block; font-family: var(--f-text); font-weight: 400; font-size: .76rem; color: var(--muted); }
.pres-price s { color: var(--muted); font-weight: 500; font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 2px solid var(--borde); background: var(--white); font-size: .9rem; font-weight: 500; transition: all .15s; }
.chip input:checked + span { border-color: var(--azul); background: var(--azul); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--celeste); outline-offset: 2px; }
.buy-box { background: var(--white); border: 1px solid var(--borde); border-radius: 16px; padding: 20px; display: grid; gap: 14px; }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--borde); border-radius: 10px; overflow: hidden; background: var(--white); }
.qty button { width: 42px; height: 46px; background: var(--blanco); border: 0; font-size: 1.2rem; cursor: pointer; color: var(--azul); }
.qty input, .qty input[type=number] { width: 72px; padding: 0; border-radius: 0; height: 46px; border: 0; text-align: center; font-weight: 600; font-size: 1rem; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-total { font-family: var(--f-title); font-size: 1.6rem; font-weight: 700; color: var(--noche); }
.min-note { font-size: .88rem; color: var(--muted); }
.min-note strong { color: var(--noche); }
.prose { font-size: .98rem; }
.prose h3 { margin-top: 1.4em; }
.locked-box { background: var(--azul); color: var(--white); border-radius: 16px; padding: 28px; position: relative; overflow: hidden; }
.locked-box h3 { color: var(--white); }
.locked-box p { color: var(--celeste-100); }

/* ---------- Selector multi-aroma ---------- */
.min-box { background: var(--azul-50); border-left: 4px solid var(--azul); border-radius: 12px; padding: 14px 18px; font-size: .9rem; margin-bottom: 8px; }
.min-box strong { font-family: var(--f-title); font-weight: 600; }
.min-box ul { margin: 6px 0; padding-left: 18px; }
.min-box span { color: var(--muted); font-size: .84rem; }
.step-title { display: flex; align-items: center; gap: 10px; font-family: var(--f-title); font-weight: 600; font-size: 1.02rem; margin: 26px 0 12px; }
.step-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--azul); color: var(--white); display: grid; place-items: center; font-size: .85rem; }
.pres-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pres-card { position: relative; display: grid; gap: 2px; padding: 14px 14px 12px; border: 2px solid var(--borde); border-radius: 12px; background: var(--white); cursor: pointer; transition: border-color .15s, background .15s; }
.pres-card:hover { border-color: var(--celeste); }
.pres-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pres-card:has(input:checked) { border-color: var(--azul); background: var(--azul-50); }
.pres-card:has(input:focus-visible) { outline: 3px solid var(--celeste); outline-offset: 2px; }
.pc-name { font-family: var(--f-title); font-weight: 600; font-size: .95rem; }
.pc-unit { font-size: .8rem; color: var(--muted); }
.pc-price { font-family: var(--f-title); font-weight: 700; color: var(--azul); font-size: 1.15rem; margin-top: 6px; }
.pc-price s { font-size: .78rem; color: var(--muted); font-weight: 500; }
.pc-min { position: absolute; top: 10px; right: 10px; font-size: .7rem; font-weight: 600; color: var(--azul); background: var(--white); border: 1px solid var(--celeste); padding: 2px 7px; border-radius: 999px; }
.aroma-tools { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.aroma-tools svg { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.aroma-tools input[type=search] { padding-left: 42px; }
.aroma-tools .link-btn { white-space: nowrap; }
.aroma-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 8px; max-height: 620px; overflow-y: auto; padding: 2px 4px 2px 2px; overscroll-behavior: contain; }
.aroma { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1.5px solid var(--borde); border-radius: 12px; background: var(--white); transition: border-color .15s, background .15s, box-shadow .15s; }
.aroma.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); box-shadow: inset 0 0 0 1px var(--c); }
.aroma-head { display: flex; align-items: center; gap: 9px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; color: var(--noche); min-height: 34px; }
.aroma-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(16, 33, 60, .14), 0 0 0 3px #fff, 0 0 0 4px color-mix(in srgb, var(--c) 45%, transparent); }
.aroma-name { font-size: .87rem; font-weight: 500; line-height: 1.2; }
.aroma-name small { display: block; font-size: .72rem; font-weight: 400; color: var(--muted); margin-top: 2px; }
.qty.qty-sm { width: 100%; justify-content: space-between; border-width: 1.5px; }
.qty.qty-sm button { width: 34px; height: 34px; font-size: 1.05rem; }
.qty.qty-sm input, .qty.qty-sm input[type=number] { width: 100%; min-width: 0; height: 34px; font-size: .95rem; }
.aroma.is-on .qty.qty-sm { border-color: var(--c); }
.builder-bar { position: sticky; bottom: 12px; z-index: 6; margin-top: 16px; background: var(--white); border: 1px solid var(--borde); border-radius: 16px; padding: 14px 16px; box-shadow: 0 -6px 28px rgba(16, 33, 60, .12); }
.sel-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 70px; overflow-y: auto; }
.sel-chips:not(:empty) { margin-bottom: 10px; }
.sel-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 9px; border-radius: 999px; background: var(--blanco); border: 1px solid var(--borde); font-size: .78rem; font-weight: 500; }
.sel-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.sel-chip button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 1rem; line-height: 1; padding: 0 4px; }
.sel-chip button:hover { color: var(--err); }
.bb-status { font-size: .86rem; }
.bb-status.ok { color: #0F7D78; font-weight: 600; }
.bb-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; }
.bb-row .buy-total { font-size: 1.45rem; line-height: 1.1; }
@media (max-width: 860px) {
  .aroma-grid { max-height: none; overflow: visible; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder-bar { bottom: 0; margin-left: -20px; margin-right: -20px; border-radius: 16px 16px 0 0; border-bottom: 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .pres-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) { .aroma { padding: 8px; } .qty.qty-sm button { width: 30px; } }

/* ---------- Fichas PDF y calculadora de reventa ---------- */
.product-extra { padding: 0 0 72px; }
.fichas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 28px; }
.ficha { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; padding: 20px 22px; background: var(--white); border: 1px solid var(--borde); border-radius: var(--radius); text-decoration: none; color: var(--noche); transition: border-color .15s, box-shadow .15s, transform .15s; }
.ficha:hover { border-color: var(--celeste); box-shadow: var(--shadow); transform: translateY(-2px); }
.ficha-ico { grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; background: var(--azul-50); color: var(--azul); display: grid; place-items: center; }
.ficha-body strong { display: block; font-family: var(--f-title); font-weight: 600; font-size: 1.02rem; }
.ficha-body span { font-size: .87rem; color: var(--muted); }
.ficha-go { font-family: var(--f-title); font-weight: 600; font-size: .9rem; color: var(--azul); }
.ficha-go small { font-family: var(--f-text); font-weight: 500; color: var(--muted); margin-left: 4px; }
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--white); border: 1px solid var(--borde); border-radius: 20px; overflow: hidden; }
.calc-intro { padding: 32px; }
.calc-intro h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 8px; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 8px; }
.calc-fields .field:first-child { grid-column: 1 / -1; }
.calc-out { position: relative; background: var(--azul); color: var(--white); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.calc-out .muted { color: var(--celeste-100); }
.calc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: rgba(255, 255, 255, .1); border: 1px solid rgba(156, 183, 225, .35); border-radius: 14px; padding: 14px; }
.kpi span { display: block; font-size: .78rem; color: var(--celeste-100); }
.kpi b { display: block; font-family: var(--f-title); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.2; margin-top: 4px; word-break: break-word; }
.kpi b.neg, .calc-min .neg { color: #FFB4AE; }
.kpi b.pos { color: #9BE7E2; }
.calc-min { background: var(--white); color: var(--noche); border-radius: 14px; padding: 16px 18px; }
.calc-min > strong { display: block; font-family: var(--f-title); font-weight: 600; margin-bottom: 6px; }
.calc-min .sum-row { font-size: .92rem; padding: 4px 0; }
.calc-min .sum-total { font-size: 1.15rem; }
.calc-min .neg { color: var(--err); }
@media (max-width: 980px) { .calc { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .calc-intro, .calc-out { padding: 22px 18px; }
  .calc-fields { grid-template-columns: 1fr; }
  .calc-kpis { grid-template-columns: 1fr 1fr; }
  .calc-kpis .kpi:first-child { grid-column: 1 / -1; }
  .fichas { grid-template-columns: 1fr; }
  .ficha { grid-template-columns: auto 1fr; }
}

/* ---------- Formularios ---------- */
label { font-weight: 500; font-size: .92rem; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input[type=date], input[type=time], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--noche); background: var(--white); border: 1.5px solid var(--borde); border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--azul); outline: none; }
textarea { min-height: 100px; resize: vertical; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; accent-color: var(--azul); width: 17px; height: 17px; flex: none; }
.auth-wrap { max-width: 560px; margin: 0 auto; padding: 48px 20px 80px; }
.auth-wrap.wide { max-width: 820px; }
.form-section-title { font-family: var(--f-title); font-weight: 600; font-size: 1.05rem; margin: 22px 0 12px; padding-top: 18px; border-top: 1px solid var(--borde); grid-column: 1 / -1; }

/* ---------- Carrito / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; padding-top: 36px; padding-bottom: 70px; align-items: start; }
@media (max-width: 920px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--borde); align-items: center; }
.cart-item img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; background: var(--blanco); }
.cart-item h3 { font-size: 1rem; margin: 0 0 2px; }
.cart-item .meta { font-size: .85rem; color: var(--muted); }
.cart-item .right { text-align: right; display: grid; gap: 8px; justify-items: end; }
.cart-item .qty button { height: 38px; width: 34px; }
.cart-item .qty input { height: 38px; width: 58px; }
@media (max-width: 560px) { .cart-item { grid-template-columns: 64px 1fr; } .cart-item img { width: 64px; height: 64px; } .cart-item .right { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: space-between; align-items: center; } }
.min-warn { font-size: .82rem; color: var(--err); font-weight: 600; margin-top: 4px; }
.summary { background: var(--white); border: 1px solid var(--borde); border-radius: 16px; padding: 22px; position: sticky; top: 96px; }
.summary h3 { font-size: 1.15rem; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .95rem; }
.sum-total { border-top: 1px solid var(--borde); margin-top: 8px; padding-top: 12px; font-family: var(--f-title); font-size: 1.3rem; font-weight: 700; }
.progress { height: 8px; background: var(--celeste-100); border-radius: 4px; overflow: hidden; margin: 8px 0; }
.progress span { display: block; height: 100%; background: var(--hogar); border-radius: 4px; }
.free-box { background: var(--azul-50); border-radius: 12px; padding: 14px; font-size: .87rem; margin: 14px 0; }
.free-box strong { color: var(--azul); }
.radio-card { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--borde); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; background: var(--white); }
.radio-card:has(input:checked) { border-color: var(--azul); background: var(--azul-50); }
.radio-card input { accent-color: var(--azul); margin-top: 4px; }
.radio-card strong { font-family: var(--f-title); font-weight: 600; display: block; }
.radio-card span { font-size: .87rem; color: var(--muted); }
.by-method { background: var(--blanco); border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.by-method .sum-row { font-size: .9rem; padding: 4px 0; }
.by-method .is-pref { font-weight: 700; color: var(--azul); }
.paymode { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; background: var(--white); border: 1px solid var(--borde); border-radius: 12px; padding: 8px 8px 8px 14px; margin: 4px 0 14px; }
.paymode-label { font-family: var(--f-title); font-weight: 600; font-size: .88rem; }
.paymode-opts { display: flex; gap: 4px; background: var(--azul-50); border-radius: 10px; padding: 4px; }
.paymode-opts button { border: 0; background: transparent; padding: 8px 14px; border-radius: 8px; font-family: var(--f-title); font-weight: 600; font-size: .85rem; color: var(--muted); cursor: pointer; }
.paymode-opts button.is-active { background: var(--azul); color: var(--white); }
.paymode-note { flex-basis: 100%; margin: 0; font-size: .82rem; font-weight: 600; color: var(--azul); }
.pc-cuotas { display: block; font-size: .78rem; font-weight: 600; color: var(--azul); margin-top: 2px; }
.pres-price .pc-cuotas { text-align: right; }
@media (max-width: 480px) { .paymode { padding: 10px; } .paymode-opts { width: 100%; } .paymode-opts button { flex: 1; padding: 8px 6px; } }
.radio-card.is-disabled { opacity: .45; cursor: not-allowed; }
.pay-card { align-items: center; }
.pay-card > div { flex: 1; }
.pay-total { text-align: right; font-family: var(--f-title); font-weight: 700; color: var(--azul); white-space: nowrap; }
.pay-total small { display: block; font-family: var(--f-text); font-weight: 400; font-size: .72rem; color: var(--muted); }
.quote-box { font-size: .9rem; padding: 12px 14px; border-radius: 10px; background: var(--blanco); margin-top: 6px; }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--borde); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-family: var(--f-title); font-weight: 600; font-size: .8rem; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--borde); white-space: nowrap; background: #FAFBFD; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--blanco); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.badge { display: inline-block; font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge-ok { background: #E0F4F3; color: #0F7D78; }
.badge-warn { background: #FDF1E4; color: #9A5A12; }
.badge-err { background: #FBEAE9; color: #A3342E; }
.badge-info { background: var(--azul-50); color: var(--azul); }
.badge-muted { background: #EEF1F5; color: var(--muted); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--celeste-100); margin-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--azul); }
.timeline li:last-child { border-color: transparent; }
.timeline .when { font-size: .8rem; color: var(--muted); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: .88rem; font-weight: 500; background: var(--white); border: 1px solid var(--borde); color: var(--noche); }
.tabs a.is-active { background: var(--azul); border-color: var(--azul); color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--noche); color: var(--celeste-100); padding: 56px 0 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid img { width: 150px; }
.footer-claim { font-family: var(--f-title); font-weight: 600; color: var(--white); margin: 16px 0 0; }
.site-footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 12px; }
.site-footer a, .site-footer span { display: block; color: var(--celeste-100); text-decoration: none; font-size: .9rem; padding: 3px 0; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(156,183,225,.2); margin-top: 40px; padding-top: 18px; padding-bottom: 18px; font-size: .8rem; color: var(--celeste); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Panel admin ---------- */
.admin-body { background: var(--blanco); }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--noche); padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side img { width: 130px; margin: 0 8px 26px; }
.admin-side a { display: flex; align-items: center; justify-content: space-between; color: var(--celeste-100); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: .93rem; font-family: var(--f-title); font-weight: 500; }
.admin-side a:hover { background: rgba(156,183,225,.12); color: var(--white); }
.admin-side a.is-active { background: var(--azul); color: var(--white); }
.admin-side .count { background: var(--industrial); color: var(--white); font-size: .72rem; border-radius: 10px; padding: 1px 8px; }
.admin-side hr { border: 0; border-top: 1px solid rgba(156,183,225,.2); margin: 14px 0; }
.admin-main { padding: 28px 34px 60px; min-width: 0; }
.admin-main h1 { font-size: 1.7rem; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.stat { background: var(--white); border: 1px solid var(--borde); border-radius: var(--radius); padding: 20px; }
.stat b { display: block; font-family: var(--f-title); font-size: 1.9rem; color: var(--azul); line-height: 1.1; }
.stat span { font-size: .87rem; color: var(--muted); }
.inline-form { display: inline; }
td.nowrap { white-space: nowrap; }
td.nowrap .inline-form { margin-left: 8px; }
.link-pago-box { background: var(--azul-50); border-radius: 12px; padding: 14px; margin: 4px 0 12px; }
.link-pago-box label { display: block; margin-bottom: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pres-editor .pres-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; background: var(--blanco); padding: 14px; border-radius: 12px; margin-bottom: 10px; position: relative; }
.pres-editor .pres-row .field { margin: 0; }
.pres-editor .pres-row label { font-size: .75rem; color: var(--muted); }
.pres-editor .pres-row input { padding: 9px 10px; font-size: .9rem; }
.pres-editor .pres-row .wide { grid-column: span 2; }
.pres-editor .rm { position: absolute; top: 8px; right: 10px; }
.pres-editor .pres-prices { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: var(--white); border: 1px solid var(--borde); border-radius: 10px; padding: 10px; }
.pres-editor .pp-title { grid-column: 1 / -1; font-family: var(--f-title); font-weight: 600; font-size: .8rem; color: var(--azul); }
@media (max-width: 600px) { .pres-editor .pres-prices { grid-template-columns: 1fr 1fr; } }
.pres-editor [data-precio-ver] { font-weight: 600; color: var(--azul, #2A4C9B); min-height: 1em; }
.pres-editor [data-precio-ver].is-bad { color: #c0392b; }
@media (max-width: 1100px) { .pres-editor .pres-row { grid-template-columns: repeat(3, 1fr); } }
/* Editor de producto: solapas, aromas y barra de guardado */
.ptabs { display: flex; gap: 4px; flex-wrap: wrap; background: var(--azul-50); border: 1px solid var(--borde); border-radius: 14px; padding: 6px; margin-bottom: 18px; }
.ptabs button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 11px 18px; border-radius: 10px; font-family: var(--f-title); font-weight: 600; font-size: .92rem; color: var(--muted); cursor: pointer; }
.ptabs button:hover { color: var(--azul); }
.ptabs button.is-active { background: var(--white); color: var(--azul); box-shadow: 0 1px 3px rgba(16, 33, 60, .1); }
.ptab-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--celeste-100); color: var(--azul); font-size: .75rem; display: inline-grid; place-items: center; }
.ae-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; }
.ae-toolbar input[type=search] { flex: 1 1 220px; width: auto; padding: 10px 14px; }
.ae-bulk { background: var(--blanco); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.ae-bulk label { display: block; margin-bottom: 6px; }
.ae-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.ae-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1.5px solid var(--borde); border-radius: 12px; background: var(--white); transition: border-color .15s; }
.ae-row:focus-within { border-color: var(--azul); }
.ae-swatch { position: relative; width: 44px; height: 44px; border-radius: 12px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(16, 33, 60, .15); cursor: pointer; overflow: hidden; }
.ae-swatch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.ae-swatch:focus-within { outline: 3px solid var(--celeste); outline-offset: 2px; }
.ae-fields { display: grid; gap: 4px; min-width: 0; }
.ae-fields input[type=text] { padding: 6px 9px; font-size: .9rem; border-radius: 8px; }
.ae-fields .ae-name { font-weight: 600; }
.ae-fields .ae-cname { font-size: .82rem; color: var(--muted); }
.ae-del { width: 30px; height: 30px; border-radius: 8px; border: 0; background: #FBEAE9; color: var(--err); font-size: 1.1rem; cursor: pointer; }
.ae-del:hover { background: var(--err); color: var(--white); }
.ae-row.is-dup { border-color: var(--warn); }
.save-bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px -34px -60px; padding: 14px 34px; background: var(--white); border-top: 1px solid var(--borde); box-shadow: 0 -6px 20px rgba(16, 33, 60, .06); }
.save-bar strong { display: block; font-family: var(--f-title); }

@media (max-width: 900px) {
  .save-bar { margin: 20px -16px -50px; padding: 12px 16px; }
  .ptabs button { padding: 9px 12px; font-size: .85rem; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; padding: 14px; }
  .admin-side img { width: 100px; margin: 4px 12px 4px 4px; }
  .admin-side hr { display: none; }
  .admin-main { padding: 22px 16px 50px; }
  .admin-main .grid[style] { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
  .pres-editor .pres-row { grid-template-columns: 1fr 1fr; padding-top: 34px; }
  .pres-editor .pres-row .wide { grid-column: 1 / -1; }
}
