/* ===== SolerPharma — editorial brand system (inspired by loreal.com) ===== */
:root {
  --yellow: #FBDD00;
  --yellow-deep: #E0C300;
  --ink: #141412;
  --ink-soft: #3A3A38;

  --bg: #FFFFFF;
  --bg-alt: #F6F5F2;
  --surface: #FFFFFF;
  --border: #E7E5DF;

  --text: #141412;
  --text-soft: #5C5C58;
  --text-faint: #8C8C86;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-s: 3px;
  --radius-m: 4px;

  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.1; color: var(--ink); }
p { margin: 0; }
button { font: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; z-index: 999; font-weight: 700;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap; border: 1.5px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: var(--yellow); transform: translateY(-1px); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-outline-dark { border-color: var(--border); color: var(--ink); background: transparent; }
.btn-outline-dark:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--yellow); color: var(--ink); }
.btn-small { padding: 11px 22px; font-size: .82rem; }
.btn-large { padding: 17px 34px; font-size: .95rem; }

/* ===== Header — minimal, centered-logo style ===== */
.top-bar {
  background: var(--ink);
  color: #fff;
  font-size: .76rem;
  padding: 8px 0;
  font-weight: 500;
  letter-spacing: .02em;
}
.top-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.top-bar a { font-weight: 700; color: var(--yellow); }
.top-bar .top-bar-official strong { color: var(--yellow); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 82px; }
.brand-logo { height: 34px; width: auto; }
.main-nav { display: flex; gap: 32px; margin-left: auto; }
.main-nav a {
  font-weight: 500; font-size: .85rem; color: var(--ink);
  transition: color .15s ease; position: relative; padding-bottom: 4px;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }
.header-inner > .btn { margin-left: 26px; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; margin-left: 10px; }
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; }
.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 8px 28px 22px; border-top: 1px solid var(--border); }
.mobile-nav a { padding: 13px 4px; font-weight: 500; color: var(--ink); font-size: .92rem; }
.mobile-nav .btn { margin-top: 10px; align-self: flex-start; }
.site-header.nav-open .mobile-nav { display: flex; }

/* ===== Hero — full-bleed photography ===== */
.hero {
  position: relative;
  height: 86vh; min-height: 560px; max-height: 860px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 15%; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(8,8,7,.92) 0%, rgba(8,8,7,.25) 46%, rgba(8,8,7,0) 68%),
    linear-gradient(100deg, rgba(8,8,7,.95) 0%, rgba(8,8,7,.8) 24%, rgba(8,8,7,.35) 48%, rgba(8,8,7,.05) 72%, rgba(8,8,7,0) 90%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; padding-bottom: 72px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--yellow);
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 700; letter-spacing: -.01em;
  max-width: 16ch; color: #fff;
}
.text-accent { color: var(--yellow); }
.hero-sub { margin-top: 20px; font-size: 1.1rem; color: rgba(255,255,255,.88); max-width: 46ch; line-height: 1.6; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Sections ===== */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head.align-left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); color: var(--ink); }
.section-sub { margin-top: 16px; color: var(--text-soft); font-size: 1.05rem; line-height: 1.65; }
.eyebrow-dark { color: var(--ink); }
.eyebrow-dark::before { content:''; display:inline-block; width:22px; height:1.5px; background:var(--ink); }

/* ===== Discover rail — horizontal scroll portrait cards ===== */
.rail { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 20px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.rail-card {
  position: relative; flex: 0 0 260px; height: 360px; scroll-snap-align: start;
  overflow: hidden; background: var(--ink);
  display: flex; align-items: flex-end;
}
.rail-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.rail-card:hover img { transform: scale(1.06); }
.rail-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,8,.85) 0%, rgba(10,10,8,.05) 60%); }
.rail-card-label { position: relative; z-index: 1; padding: 22px; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.rail-card-label span { display: block; font-family: var(--font-body); font-weight: 500; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); margin-bottom: 8px; }

/* ===== About / Nosotros ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-copy p { color: var(--text-soft); font-size: 1.04rem; line-height: 1.75; margin-bottom: 18px; }
.about-points { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.about-point { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--border); }
.about-point:last-child { border-bottom: 1px solid var(--border); }
.about-point-icon {
  flex-shrink: 0; width: 34px; height: 34px;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.about-point-icon svg { width: 21px; height: 21px; }
.about-point strong { display: block; font-size: .98rem; color: var(--ink); }
.about-point span { font-size: .87rem; color: var(--text-faint); }

/* ===== Próximamente (Quiénes somos) ===== */
.coming-soon-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
  max-width: 640px; margin: 0 auto; padding: 72px 44px;
  background: var(--surface); border: 1px solid var(--border);
}
.coming-soon-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  background: var(--yellow); padding: 9px 20px; border-radius: 999px;
}
.coming-soon-card h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); color: var(--ink); }
.coming-soon-card p { color: var(--text-soft); font-size: 1.02rem; line-height: 1.7; max-width: 48ch; }

/* ===== Category tiles (home) ===== */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); }
.category-card {
  position: relative; background: var(--ink); min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
  overflow: hidden; color: #fff;
}
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: transform .5s ease, opacity .3s ease; }
.category-card:hover img { transform: scale(1.06); opacity: .75; }
.category-card > * { position: relative; z-index: 1; }
.category-card.is-exclusive { background: var(--ink); }
.category-card h3 { font-size: 1.25rem; color: #fff; margin-bottom: 8px; }
.category-card p { color: rgba(255,255,255,.82); font-size: .89rem; line-height: 1.55; margin-bottom: 14px; }
.category-card .cat-link { font-size: .8rem; font-weight: 700; color: var(--yellow); text-transform: uppercase; letter-spacing: .04em; }
.exclusive-tag {
  display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: var(--yellow); padding: 5px 12px; border-radius: 999px; width: fit-content; margin-bottom: 10px;
}

/* ===== Representatives ===== */
.rep-filters { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.rep-filter-btn {
  font: inherit; font-size: .82rem; font-weight: 600; color: var(--text-soft);
  background: transparent; border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 20px; cursor: pointer; transition: color .15s ease, border-color .15s ease;
}
.rep-filter-btn:hover { color: var(--ink); border-color: var(--ink); }
.rep-filter-btn.is-active { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }

.rep-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.rep-grid.rep-grid-wide { display: flex; flex-wrap: wrap; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.rep-grid.rep-grid-wide .rep-card { flex: 1 1 190px; }
.rep-card {
  display: flex; flex-direction: column; align-items: center;
  background: var(--surface);
  padding: 32px 20px; text-align: center;
  transition: background .15s ease;
}
.rep-card:hover { background: var(--bg-alt); }
.rep-card.is-hidden { display: none; }
.rep-card h4 {
  font-size: .95rem; line-height: 1.3; color: var(--ink); width: 100%;
  min-height: 2.6em; margin: 0 0 4px;
  display: flex; align-items: center; justify-content: center;
}
.rep-card .rep-region {
  font-size: .78rem; line-height: 1.3; color: var(--text-faint); font-weight: 600; width: 100%;
  min-height: 2.6em; margin: 0 0 16px;
  display: flex; align-items: center; justify-content: center;
}
.rep-whatsapp, .rep-manager .rep-whatsapp {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700;
  color: #072e17; background: #25d366; padding: 9px 16px; border-radius: 999px;
  white-space: nowrap; margin-top: auto;
  transition: background .15s ease, transform .15s ease;
}
.rep-whatsapp:hover { background: var(--yellow); color: var(--ink); transform: translateY(-1px); }
.rep-whatsapp svg { width: 14px; height: 14px; flex-shrink: 0; }
.rep-whatsapp.is-disabled { background: var(--border); color: var(--text-faint); pointer-events: none; }
.rep-card .rep-photo {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 18px;
  overflow: hidden; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); color: var(--text-faint);
}
.rep-card .rep-photo img { width: 100%; height: 100%; object-fit: cover; }
.rep-card .rep-photo svg { width: 26px; height: 26px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.contact-card { background: var(--surface); padding: 30px; display: flex; gap: 18px; align-items: flex-start; }
.contact-card .icon { width: 38px; height: 38px; color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card .icon svg { width: 20px; height: 20px; }
.contact-card h4 { font-size: 1rem; color: var(--ink); margin-bottom: 4px; }
.contact-card p, .contact-card a.contact-value { font-size: .9rem; color: var(--text-soft); }
.contact-card a.contact-value { font-weight: 700; color: var(--ink); }
.contact-note { margin-top: 18px; font-size: .82rem; color: var(--text-faint); }

/* ===== CTA banner ===== */
.section-cta { position: relative; color: #fff; text-align: center; overflow: hidden; }
.section-cta-media { position: absolute; inset: 0; }
.section-cta-media img { width: 100%; height: 100%; object-fit: cover; }
.section-cta-media::after { content: ''; position: absolute; inset: 0; background: rgba(10,10,8,.68); }
.section-cta .container { position: relative; z-index: 1; padding: 120px 28px; }
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); color: #fff; }
.cta-inner p { margin-top: 16px; color: rgba(255,255,255,.85); font-size: 1.05rem; line-height: 1.6; }
.cta-inner .btn { margin-top: 32px; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.65); padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-logo { height: 30px; }
.footer-brand p { font-size: .82rem; color: rgba(255,255,255,.5); margin-top: 16px; line-height: 1.6; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; color: #fff; }
.footer-social a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-col p, .footer-col a { font-size: .87rem; line-height: 1.9; color: rgba(255,255,255,.6); display: block; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { padding-top: 24px; text-align: center; font-size: .78rem; color: rgba(255,255,255,.4); }

/* ===== Floating contact buttons ===== */
.floating-contact { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.floating-contact a { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); color: #fff; }
.floating-contact a svg { width: 23px; height: 23px; }
.fc-whatsapp { background: #25d366; }
.fc-phone { background: var(--ink); }
.fc-email { background: var(--yellow); color: var(--ink); }

/* ===== Scroll reveal ===== */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.16,.8,.28,1), transform .8s cubic-bezier(.16,.8,.28,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ===== Catalog page ===== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-faint); margin-bottom: 22px; }
.breadcrumb a { color: var(--ink); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

.cat-nav { position: sticky; top: 83px; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); overflow-x: auto; white-space: nowrap; }
.cat-nav .container { display: flex; gap: 4px; padding-top: 14px; padding-bottom: 14px; }
.cat-nav a { flex-shrink: 0; padding: 9px 16px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--text-soft); border: 1px solid var(--border); }
.cat-nav a:hover { border-color: var(--ink); color: var(--ink); }
.cat-nav a.cat-nav-exclusive { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.cat-nav a.cat-nav-exclusive:hover { background: #000; }

/* Editorial section banner — big lifestyle photo divider per línea */
.line-banner { position: relative; height: 56vh; min-height: 360px; max-height: 640px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.line-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.line-banner::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(8,8,7,.9) 0%, rgba(8,8,7,.25) 50%, rgba(8,8,7,0) 72%),
    linear-gradient(100deg, rgba(8,8,7,.85) 0%, rgba(8,8,7,.45) 32%, rgba(8,8,7,0) 65%);
}
.line-banner-inner { position: relative; z-index: 1; padding: 0 28px 48px; width: 100%; max-width: var(--container); margin: 0 auto; }
.line-banner .eyebrow { color: var(--yellow); }
.line-banner h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); color: #fff; max-width: 20ch; }
.line-banner p { margin-top: 14px; color: rgba(255,255,255,.88); max-width: 60ch; font-size: 1rem; line-height: 1.6; }

.cat-section { padding: 64px 0 88px; border-bottom: 1px solid var(--border); scroll-margin-top: 140px; }
.cat-section:last-child { border-bottom: none; }
.cat-subhead { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); margin: 36px 0 18px; }
.cat-subhead:first-of-type { margin-top: 0; }

.product-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.product-mini-card { background: var(--surface); padding: 0 0 26px; display: flex; flex-direction: column; }
.product-mini-card .photo-wrap { aspect-ratio: 1/1; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.product-mini-card .photo-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 22px; transition: transform .4s ease; }
.product-mini-card:hover .photo-wrap img { transform: scale(1.05); }
.product-mini-card .card-body { padding: 0 22px; display: flex; flex-direction: column; flex: 1; }
.product-mini-card h4 { font-size: 1rem; color: var(--ink); margin-bottom: 8px; }
.product-mini-card p { font-size: .87rem; color: var(--text-soft); line-height: 1.55; margin-bottom: 14px; }
.indication-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.indication-chip { font-size: .7rem; font-weight: 600; color: var(--ink); background: var(--bg-alt); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); }
.product-mini-card.no-photo { padding: 28px 22px; }
.product-mini-card.no-photo .card-body { padding: 0; }
.product-mini-card.no-photo::before { content: ''; width: 26px; height: 2px; background: var(--ink); margin-bottom: 18px; display: block; }
.spec-line { font-size: .76rem; color: var(--text-faint); line-height: 1.5; margin: 0 0 12px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .rep-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .main-nav, .header-inner > .btn.btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .hero { height: 92vh; }
  .category-grid { grid-template-columns: 1fr; }
  .rep-grid { grid-template-columns: repeat(2, 1fr); }
  .rep-whatsapp { font-size: .72rem; padding: 8px 12px; }
  .section { padding: 76px 0; }
  .cat-nav { top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .floating-contact { right: 16px; bottom: 16px; }
  .floating-contact a { width: 48px; height: 48px; }
  .rail-card { flex-basis: 220px; height: 320px; }
  .line-banner { height: 44vh; }
}

/* ===== Official strip ===== */
.official-strip { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; background: var(--bg-alt); border: 1px solid var(--border); padding: 28px 32px; margin-top: 44px; }
.official-strip img { height: 22px; width: auto; filter: brightness(0); }
.official-strip span { color: var(--text-soft); font-size: .92rem; line-height: 1.5; }
.official-strip strong { color: var(--ink); }

/* ===== B-TOX (apartado exclusivo) ===== */
.btox-hero { position: relative; height: 80vh; min-height: 540px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.btox-hero-media { position: absolute; inset: 0; }
.btox-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 92% center; }
.btox-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,10,8,.95) 0%, rgba(10,10,8,.9) 30%, rgba(10,10,8,.55) 50%, rgba(10,10,8,.2) 68%, rgba(10,10,8,.05) 100%); }
.btox-hero .container { max-width: 760px; margin-left: calc((100% - var(--container)) / 2); }
@media (max-width: 1280px) { .btox-hero .container { margin-left: 28px; } }
.btox-hero .container { position: relative; z-index: 1; }
.btox-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: 9px 18px; border-radius: 999px; margin-bottom: 24px; }
.btox-badge svg { width: 14px; height: 14px; }
.btox-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); color: #fff; max-width: 13ch; }
.btox-hero-sub { margin-top: 20px; font-size: 1.1rem; line-height: 1.65; max-width: 44ch; color: rgba(255,255,255,.88); }
.btox-hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.btox-hero-stats { margin-top: 44px; display: flex; gap: 36px; flex-wrap: wrap; }
.btox-hero-stats div strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--yellow); }
.btox-hero-stats div span { font-size: .76rem; color: rgba(255,255,255,.7); font-weight: 600; }

.btox-band { background: var(--ink); padding: 18px 0; }
.btox-band .container { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center; }
.btox-band span { color: rgba(255,255,255,.85); font-size: .9rem; }
.btox-band strong { color: var(--yellow); font-weight: 800; }

.btox-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.btox-gallery figure { margin: 0; overflow: hidden; background: var(--surface); }
.btox-gallery img { width: 100%; height: 100%; aspect-ratio: 3/4; object-fit: cover; }

.btox-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 44px; background: var(--border); border: 1px solid var(--border); }
.btox-spec-card { background: var(--surface); padding: 26px; }
.btox-spec-card span.label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px; }
.btox-spec-card strong { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--ink); line-height: 1.4; font-weight: 600; }

.btox-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.btox-why-card { background: var(--surface); padding: 30px; }
.btox-why-card .icon { width: 40px; height: 40px; color: var(--ink); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.btox-why-card .icon svg { width: 24px; height: 24px; }
.btox-why-card h3 { font-size: 1.04rem; color: var(--ink); margin-bottom: 10px; }
.btox-why-card p { font-size: .9rem; color: var(--text-soft); line-height: 1.6; }

.indication-list { columns: 2; column-gap: 32px; }
.indication-list li { font-size: .88rem; color: var(--text-soft); line-height: 1.6; margin-bottom: 10px; break-inside: avoid; padding-left: 16px; position: relative; }
.indication-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }

.btox-legal { background: var(--bg-alt); border: 1px solid var(--border); padding: 30px 32px; font-size: .84rem; color: var(--text-soft); line-height: 1.65; }
.btox-legal strong { color: var(--ink); }

@media (max-width: 980px) {
  .btox-gallery { grid-template-columns: repeat(2, 1fr); }
  .btox-specs { grid-template-columns: repeat(2, 1fr); }
  .btox-why { grid-template-columns: 1fr; }
  .indication-list { columns: 1; }
}

/* ===== Historia: línea de tiempo ===== */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1.5px; background: var(--border); }
.timeline-item { position: relative; padding: 0 0 38px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -34px; top: 5px; width: 15px; height: 15px; border-radius: 50%; background: var(--yellow); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.timeline-year { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.timeline-item h3 { font-size: 1.25rem; margin-bottom: 8px; }
.timeline-item p { color: var(--text-soft); font-size: .98rem; line-height: 1.7; max-width: 62ch; }
.timeline-item blockquote { margin: 14px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--yellow); font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.brand-colors { display: flex; gap: 10px; margin-top: 16px; }
.brand-colors span { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); }
.about-lead { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.35; color: var(--ink); font-weight: 600; max-width: 24ch; margin-bottom: 22px; }
.about-link { display: inline-flex; margin-top: 10px; font-weight: 600; font-size: .9rem; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }
.about-link:hover { color: var(--text-soft); border-color: var(--text-soft); }

/* ===== Hero slider (rotación de productos y fotos) ===== */
.hero-slider { position: relative; height: 86vh; min-height: 580px; max-height: 860px; overflow: hidden; background: #0c0c0b; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; display: flex; align-items: flex-end; color: #fff; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide .hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-slide .hero-media img { transform: scale(1.06); transition: transform 7s ease-out; }
.hero-slide.is-active .hero-media img { transform: scale(1); }
.hero-slide .hero-inner { padding-bottom: 96px; }
.hero-slide .hero-title { max-width: 17ch; }

/* Slide de producto (fondo claro, producto a la derecha) */
.hero-slide.is-product { align-items: center; color: var(--ink); background: radial-gradient(120% 120% at 75% 40%, #ffffff 0%, #f1efe9 55%, #e6e3da 100%); }
.hero-slide.is-product .hero-inner { padding-bottom: 40px; position: relative; z-index: 2; }
.hero-slide.is-product .eyebrow { color: var(--ink); }
.hero-slide.is-product .eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--ink); display: inline-block; }
.hero-slide.is-product .hero-title { color: var(--ink); max-width: 13ch; font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
.hero-slide.is-product .text-accent { color: var(--ink); background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.hero-slide.is-product .hero-sub { color: var(--text-soft); }
.hero-slide.is-product .btn-outline { border-color: var(--ink); color: var(--ink); }
.hero-slide.is-product .btn-outline:hover { background: var(--ink); color: #fff; }
.hero-product { position: absolute; right: max(4vw, calc((100% - var(--container)) / 2 + 28px)); top: 0; bottom: 0; display: flex; align-items: center; width: min(42vw, 600px); }
.hero-product img { width: 100%; height: auto; max-height: 74vh; object-fit: contain; mix-blend-mode: multiply; transform: translateY(14px) scale(.96); opacity: 0; transition: transform 1.2s cubic-bezier(.16,.8,.28,1) .2s, opacity 1s ease .2s; }
.hero-slide.is-active .hero-product img { transform: none; opacity: 1; }

.hero-controls { position: absolute; z-index: 5; left: 0; right: 0; bottom: 30px; }
.hero-controls .container { display: flex; align-items: center; gap: 18px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 3px; border: 0; padding: 0; border-radius: 3px; background: rgba(255,255,255,.4); cursor: pointer; position: relative; overflow: hidden; }
.hero-dots button::after { content: ''; position: absolute; inset: 0; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.hero-dots button.is-active::after { transform: scaleX(1); transition: transform 6.5s linear; }
.hero-slider.is-paused .hero-dots button.is-active::after { transition: none; }
.hero-arrows { margin-left: auto; display: flex; gap: 10px; }
.hero-arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); background: rgba(10,10,8,.25); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.hero-arrows button:hover { background: #fff; color: var(--ink); }
.hero-arrows svg { width: 18px; height: 18px; }
.hero-slider[data-theme="light"] .hero-dots button { background: rgba(20,20,18,.25); }
.hero-slider[data-theme="light"] .hero-dots button::after { background: var(--ink); }
.hero-slider[data-theme="light"] .hero-arrows button { border-color: var(--ink); color: var(--ink); background: rgba(255,255,255,.4); }
.hero-slider[data-theme="light"] .hero-arrows button:hover { background: var(--ink); color: #fff; }

@media (max-width: 860px) {
  .hero-slider { height: 94vh; }
  .hero-slide.is-product { align-items: flex-start; }
  .hero-slide.is-product .hero-inner { padding-top: 40px; padding-bottom: 150px; }
  .hero-product { top: auto; bottom: 70px; left: 0; right: 0; margin: 0 auto; width: min(78vw, 360px); height: 36vh; }
  .hero-product img { max-height: 34vh; }
  .hero-slide.is-product .hero-sub { display: none; }
  .hero-arrows { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-slide .hero-media img, .hero-product img { transition: none !important; } }

/* ===== Bloque Promoitalia (foto + texto) ===== */
.feature-split { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--ink); color: #fff; margin-top: 56px; overflow: hidden; }
.feature-split-media { position: relative; min-height: 380px; }
.feature-split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.feature-split-body { padding: 56px 52px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.feature-split-body img { height: 28px; width: auto; align-self: flex-start; }
.feature-split-body p { color: rgba(255,255,255,.82); font-size: 1.02rem; line-height: 1.7; }
.feature-split-body strong { color: var(--yellow); }
.feature-split-body .btn { align-self: flex-start; margin-top: 6px; }
@media (max-width: 860px) { .feature-split { grid-template-columns: 1fr; } .feature-split-media { min-height: 260px; } .feature-split-body { padding: 36px 26px; } }

/* ===== Hero B-TOX en versión clara con foto de producto ===== */
.btox-hero.is-light { height: auto; min-height: 620px; color: var(--ink); background: radial-gradient(110% 120% at 78% 45%, #ffffff 0%, #eeece6 60%, #e4e1d8 100%); padding: 90px 0; }
.btox-hero.is-light .container { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.btox-hero.is-light h1 { color: var(--ink); max-width: 15ch; }
.btox-hero.is-light .btox-hero-sub { color: var(--text-soft); }
.btox-hero.is-light .btox-hero-stats div strong { color: var(--ink); }
.btox-hero.is-light .btox-hero-stats div span { color: var(--text-faint); }
.btox-hero.is-light .btn-outline { border-color: var(--ink); color: var(--ink); }
.btox-hero.is-light .btn-outline:hover { background: var(--ink); color: #fff; }
.btox-hero-photo img { width: 100%; max-width: 560px; margin-left: auto; mix-blend-mode: multiply; }
@media (max-width: 980px) { .btox-hero.is-light .container { grid-template-columns: 1fr; } .btox-hero-photo { order: -1; } .btox-hero-photo img { margin: 0 auto; max-width: 340px; } }
.fade-edges { -webkit-mask-image: radial-gradient(closest-side, #000 68%, transparent 100%); mask-image: radial-gradient(closest-side, #000 68%, transparent 100%); }

/* Rejilla de productos sin huecos grises en la última fila */
.product-mini-grid { gap: 0; background: none; border: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.product-mini-card { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Slides con foto clara: texto oscuro */
.hero-slide.is-photo-light { color: var(--ink); }
.hero-slide.is-photo-light .eyebrow { color: var(--ink); }
.hero-slide.is-photo-light .eyebrow::before { background: var(--ink); }
.hero-slide.is-photo-light .hero-title { color: var(--ink); max-width: 14ch; }
.hero-slide.is-photo-light .text-accent { color: var(--ink); background: linear-gradient(transparent 62%, rgba(255,255,255,.75) 62%); }
.hero-slide.is-photo-light .hero-sub { color: #2b2b27; }
.hero-slide.is-photo-light .btn-outline { border-color: var(--ink); color: var(--ink); }
.hero-slide.is-photo-light .btn-outline:hover { background: var(--ink); color: #fff; }
.hero-slide.is-photo-light { align-items: center; }
.hero-slide.is-photo-light .hero-inner { padding-bottom: 40px; }
.hero-slide.is-photo-light .hero-media::after { background: linear-gradient(90deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 55%); }

/* Tarjeta destacada B-TOX en el catálogo */
.product-mini-card.is-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; }
.product-mini-card.is-wide .photo-wrap { aspect-ratio: auto; margin-bottom: 0; border-bottom: 0; }
.product-mini-card.is-wide .photo-wrap img { padding: 0; }
.product-mini-card.is-wide .card-body { padding: 28px 28px 28px 0; }
@media (max-width: 720px) {
  .product-mini-card.is-wide { grid-template-columns: 1fr; }
  .product-mini-card.is-wide .photo-wrap { aspect-ratio: 1/1; border-bottom: 1px solid var(--border); }
  .product-mini-card.is-wide .card-body { padding: 4px 20px 24px; }
}

/* Botones flotantes más discretos en celular */
@media (max-width: 720px) {
  .floating-contact { right: 10px; bottom: 12px; gap: 8px; }
  .floating-contact a { width: 42px; height: 42px; opacity: .94; }
  .floating-contact a svg { width: 20px; height: 20px; }
  .floating-contact .fc-email { display: none; }
  .product-mini-card .card-body { padding-right: 22px; }
}

/* Ajustes celular: carrusel con 10 puntos y cabeceras de sección */
.hero-dots { min-width: 0; flex: 0 1 auto; }
.hero-dots button { flex: 1 1 0; min-width: 8px; max-width: 34px; }
.section-head { flex-wrap: wrap; gap: 14px 24px; }
@media (max-width: 720px) {
  .hero-controls .container { gap: 0; }
  .hero-dots { width: 100%; gap: 6px; }
  .hero-dots button { max-width: none; height: 4px; }
}
.hero-media picture { display: block; width: 100%; height: 100%; }
@media (max-width: 720px) { .hero-media picture img { object-position: 50% 100% !important; } }

/* Representantes con foto */
.rep-grid.rep-grid-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.rep-card.has-photo { padding: 0; align-items: stretch; }
.rep-card.has-photo .rep-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 0; margin: 0; border: 0; position: relative; background: #0c0c0b; }
.rep-card.has-photo .rep-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.rep-num { position: absolute; left: 12px; top: 12px; background: var(--yellow); color: var(--ink); font-size: .72rem; font-weight: 800; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; }
.rep-card.has-photo .rep-info { display: flex; flex-direction: column; align-items: center; padding: 18px 16px 22px; flex: 1; }
@media (max-width: 1000px) { .rep-grid.rep-grid-photos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .rep-grid.rep-grid-photos { grid-template-columns: repeat(2, 1fr); } .rep-card.has-photo .rep-info { padding: 14px 10px 18px; } .rep-card h4 { font-size: .86rem; } }

/* Representantes: gerente, filtros y tarjetas con WhatsApp */
.rep-manager-wrap { margin-bottom: 32px; }
.rep-manager { display: grid; grid-template-columns: 240px 1fr; background: #0c0c0b; color: #fff; border: 1px solid #0c0c0b; align-items: stretch; }
.rep-manager-photo { aspect-ratio: 4 / 5; background: #0c0c0b; }
.rep-manager-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.rep-manager-body { padding: 32px 36px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; }
.rep-manager-body h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 6px 0 0; }
.rep-manager-body p { color: rgba(255,255,255,.75); margin: 0 0 14px; }
.rep-manager .rep-whatsapp { margin-top: 0; }
.rep-whatsapp { text-decoration: none; }
.rep-card.has-photo[hidden] { display: none; }
.rep-card.has-photo h4 { min-height: 0; margin: 0 0 4px; }
.rep-card.has-photo .rep-region { min-height: 0; margin: 0 0 14px; }
@media (max-width: 720px) {
  .rep-manager { grid-template-columns: 1fr; }
  .rep-manager-photo { aspect-ratio: 1 / 1; }
  .rep-manager-body { padding: 22px 20px 26px; }
}

/* Volver arriba */
.back-to-top { position: fixed; left: 16px; bottom: 16px; z-index: 59; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: var(--yellow); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--ink); color: var(--yellow); }
@media (max-width: 720px) { .back-to-top { left: 10px; bottom: 12px; width: 42px; height: 42px; } }

/* Móvil: sin animación de aparición (evita secciones en blanco al hacer scroll rápido) y marcador de carga en las fotos */
@media (max-width: 900px) { [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; } }
.product-mini-card .photo-wrap { background: #f6f6f4; }

/* Carrusel: permite deslizar de lado con el dedo y mantener el scroll vertical */
.hero-slider { touch-action: pan-y; -webkit-user-select: none; user-select: none; }
