/* ============================================================
   GUÍA GERIÁTRICA — style.css
   Brutalist Pharmacy · Space Grotesk + Inter
   ============================================================ */

/* ----------------------------------------------------------
   1. RESET & ROOT
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:        #FDFBF7;
  --white:        #FFFFFF;
  --terracotta:   #B3541E;
  --bordeaux:     #7A1F2A;
  --dark:         #2B2420;
  --beige:        #EFE6D8;
  --gold:         #B8912F;
  --grey-mid:     #8A7E78;
  --grey-light:   #F4F0E8;

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

  --radius-sm:    4px;
  --radius-md:    6px;
  --radius-none:  0px;

  --shadow-card:  0 2px 12px rgba(43,36,32,0.08);
  --shadow-lift:  0 8px 32px rgba(43,36,32,0.14);

  --transition:   0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------------------------
   2. TYPOGRAPHY
   ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--dark);
  font-weight: 700;
}

h1 { font-size: clamp(40px, 6vw, 88px); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 52px); letter-spacing: -0.01em; }
h3 { font-size: clamp(20px, 2.5vw, 32px); }
h4 { font-size: clamp(16px, 1.8vw, 22px); }

p { font-family: var(--font-body); color: var(--dark); }

.text-terracotta { color: var(--terracotta); }
.text-bordeaux   { color: var(--bordeaux); }
.text-gold       { color: var(--gold); }

/* T3 — one word in accent color */
.accent-word { color: var(--bordeaux); }

/* ----------------------------------------------------------
   3. CONTAINER
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.container--narrow {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ----------------------------------------------------------
   4. ON-DARK SCOPE
   ---------------------------------------------------------- */
.on-dark { color: rgba(255,255,255,0.85); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark p { color: rgba(255,255,255,0.75); }
.on-dark a:not(.btn) { color: rgba(255,255,255,0.85); }
.on-dark .accent-word { color: var(--terracotta); }

/* ----------------------------------------------------------
   5. BUTTONS (B1 — Sharp rectangle)
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-none);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
  position: relative;
}

.btn--primary {
  background: var(--bordeaux);
  color: #fff;
}
.btn--primary:hover {
  background: #9a2736;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(122,31,42,0.35);
}

.btn--secondary {
  background: var(--terracotta);
  color: #fff;
}
.btn--secondary:hover {
  background: #c45e25;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(179,84,30,0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--bordeaux);
  border: 2px solid var(--bordeaux);
}
.btn--ghost:hover {
  background: var(--bordeaux);
  color: #fff;
}

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.btn--full { width: 100%; }

.btn.is-loading { opacity: 0.8; cursor: not-allowed; }

/* spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------
   6. CARDS (C2 — Border only)
   ---------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1.5px solid var(--beige);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--terracotta);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

/* ----------------------------------------------------------
   7. NAVIGATION (V1 — Transparent → scrolled)
   ---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), border-bottom var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(253,251,247,0.97);
  border-bottom: 1px solid var(--beige);
  backdrop-filter: blur(12px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 48px);
  max-width: 1200px;
  margin-inline: auto;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav__logo span { color: var(--bordeaux); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav__links a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--bordeaux); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: transform var(--transition), opacity var(--transition);
}

/* mobile menu open state */
.nav__links--open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--cream);
  z-index: 999;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.nav__links--open a { font-size: 20px; }

/* ----------------------------------------------------------
   8. HERO (Variant I — Media-Only full bleed)
   ---------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(43,36,32,0.15) 0%,
    rgba(43,36,32,0.55) 60%,
    rgba(43,36,32,0.85) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(20px, 5vw, 48px) clamp(48px, 8vh, 80px);
  max-width: 1200px;
  margin-inline: auto;
}

.hero__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  display: inline-block;
  margin-bottom: 16px;
  background: rgba(179,84,30,0.85);
  border: 1px solid rgba(179,84,30,0.9);
  padding: 5px 14px;
}

.hero__title {
  color: #fff;
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 100px);
}
.hero__title .accent-word { color: var(--terracotta); }

.hero__subtitle {
  color: rgba(255,255,255,0.8);
  font-size: clamp(16px, 2vw, 20px);
  max-width: 520px;
  margin-bottom: 36px;
  font-family: var(--font-body);
}

.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  right: clamp(20px, 5vw, 48px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.4);
  animation: scroll-pulse 2s ease infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ----------------------------------------------------------
   9. ADVERTORIAL BANNER
   ---------------------------------------------------------- */
.adv-banner {
  background: var(--beige);
  border-bottom: 1px solid #DDD4C4;
  text-align: center;
  padding: 8px clamp(20px, 5vw, 48px);
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--grey-mid);
  letter-spacing: 0.04em;
}
.adv-banner strong { color: var(--dark); }

/* ----------------------------------------------------------
   10. MARQUEE STRIP
   ---------------------------------------------------------- */
.marquee-wrap {
  background: var(--bordeaux);
  overflow: hidden;
  padding: 14px 0;
  border-top: 2px solid var(--dark);
  border-bottom: 2px solid var(--dark);
}
.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  padding: 0 40px;
}
.marquee-track span.sep {
  color: var(--terracotta);
  padding: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----------------------------------------------------------
   11. SECTIONS — S5 Overlap
   ---------------------------------------------------------- */
.section {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0;
}

.section--overlap-up {
  margin-top: -40px;
  border-radius: 0;
}

.section--dark {
  background: var(--dark);
}
.section--beige {
  background: var(--beige);
}
.section--bordeaux {
  background: var(--bordeaux);
}
.section--white {
  background: var(--white);
}
.section--cream {
  background: var(--cream);
}

/* thick top border accent */
.section--accent-top { border-top: 4px solid var(--terracotta); }
.section--accent-top-gold { border-top: 4px solid var(--gold); }

/* ----------------------------------------------------------
   12. BRAND STATEMENT / INTRO SECTION
   ---------------------------------------------------------- */
.intro {
  background: var(--white);
  border-top: 4px solid var(--terracotta);
  position: relative;
  z-index: 2;
}

.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro__eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 20px;
}

.intro__heading {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 24px;
}

.intro__body { color: var(--grey-mid); font-size: 16px; line-height: 1.8; margin-bottom: 32px; }

.intro__stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--beige);
  flex-wrap: wrap;
}

.intro__stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--bordeaux);
  line-height: 1;
}
.intro__stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-top: 4px;
}

.intro__image {
  position: relative;
}
.intro__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}
.intro__image-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 20px;
}

/* ----------------------------------------------------------
   13. STATS STRIP (N4)
   ---------------------------------------------------------- */
.stats-strip {
  background: var(--dark);
  border-top: 2px solid var(--bordeaux);
  border-bottom: 2px solid var(--bordeaux);
  margin-top: 48px;
}
.stats-strip__inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}
.stats-strip__item {
  flex: 1 1 200px;
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stats-strip__item:last-child { border-right: none; }
.stats-strip__num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  color: var(--terracotta);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stats-strip__label {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ----------------------------------------------------------
   14. TRUST BADGES
   ---------------------------------------------------------- */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 48px 0;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1.5px solid var(--beige);
  background: var(--white);
  min-width: 200px;
}
.trust-badge__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
}
.trust-badge__text {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dark);
}
.trust-badge__sub {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--grey-mid);
  display: block;
  margin-top: 1px;
  font-family: var(--font-body);
}

/* ----------------------------------------------------------
   15. FEATURED PRODUCTS
   ---------------------------------------------------------- */
.products-section { background: var(--cream); }

.section-header {
  margin-bottom: 56px;
}
.section-header--center { text-align: center; }

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: block;
  margin-bottom: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1.5px solid var(--beige);
  border-radius: var(--radius-sm);
  overflow: visible;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  border-color: var(--terracotta);
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}

.product-card__accent-bar {
  height: 3px;
  background: var(--terracotta);
  width: 100%;
}

.product-card__img-wrap {
  aspect-ratio: 1/1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-card__img-wrap img {
  transform: scale(1.04);
}

.product-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.product-card__desc {
  font-size: 13px;
  color: var(--grey-mid);
  flex: 1;
  margin-bottom: 16px;
  line-height: 1.6;
}
.product-card__price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--bordeaux);
  margin-bottom: 16px;
}

/* ----------------------------------------------------------
   16. CATEGORY STRIP (index highlights)
   ---------------------------------------------------------- */
.cat-strip {
  background: var(--bordeaux);
  padding: 60px 0;
  position: relative;
  z-index: 2;
}
.cat-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.cat-strip__item {
  padding: 32px;
  border-right: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}
.cat-strip__item:last-child { border-right: none; }
.cat-strip__icon { margin: 0 auto 16px; display: block; }
.cat-strip__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.cat-strip__text {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

/* ----------------------------------------------------------
   17. HOW IT WORKS — Horizontal numbered steps
   ---------------------------------------------------------- */
.how-section { background: var(--beige); }

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 60px;
}
.how-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 7%;
  right: 7%;
  height: 1px;
  background: var(--terracotta);
  z-index: 0;
}
.how-step {
  text-align: center;
  padding: 0 24px 40px;
  position: relative;
  z-index: 1;
}
.how-step__num {
  width: 56px;
  height: 56px;
  border-radius: 0;
  border: 2px solid var(--terracotta);
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--terracotta);
}
.how-step__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.how-step__text { font-size: 13px; color: var(--grey-mid); line-height: 1.6; }

/* ----------------------------------------------------------
   18. ABOUT / EDITORIAL BLOCK
   ---------------------------------------------------------- */
.editorial {
  background: var(--dark);
}
.editorial__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.editorial__tagline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 28px;
}
.editorial__tagline .accent-word { color: var(--terracotta); }
.editorial__body { color: rgba(255,255,255,0.7); font-size: 16px; line-height: 1.8; margin-bottom: 32px; }

.editorial__list { list-style: none; }
.editorial__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin-bottom: 16px;
}
.editorial__list li::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--terracotta);
  margin-top: 10px;
  flex-shrink: 0;
}

.editorial__aside { padding: 40px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.editorial__aside-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 20px;
  display: block;
}
.editorial__aside-stat {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.editorial__aside-stat:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.editorial__aside-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--terracotta);
  display: block;
  line-height: 1;
}
.editorial__aside-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

/* ----------------------------------------------------------
   19. ARTICLE PREVIEW (blog teaser on index)
   ---------------------------------------------------------- */
.article-preview {
  background: var(--white);
  border-top: 4px solid var(--gold);
}
.article-preview__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.article-preview__tag {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  border: 1px solid var(--gold);
  padding: 4px 12px;
  margin-bottom: 16px;
}
.article-preview__title {
  font-size: clamp(22px, 3vw, 36px);
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.25;
}
.article-preview__excerpt { color: var(--grey-mid); font-size: 15px; margin-bottom: 28px; line-height: 1.7; }
.article-preview__img {
  background: var(--grey-light);
  height: 360px;
  border: 1.5px solid var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.article-preview__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----------------------------------------------------------
   20. FAQ ACCORDION
   ---------------------------------------------------------- */
.faq-section { background: var(--cream); }

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-top: 1px solid var(--beige);
  overflow: hidden;
}
.faq-item:last-child { border-bottom: 1px solid var(--beige); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  gap: 20px;
}
.faq-question h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
}
.faq-question h4:hover { color: var(--bordeaux); }
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
  font-size: 16px;
  font-weight: 400;
  transition: transform var(--transition);
  line-height: 1;
}
.faq-item.faq--open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, padding 0.3s ease;
}
.faq-item.faq--open .faq-answer { max-height: 600px; }
.faq-answer p {
  font-size: 14px;
  color: var(--grey-mid);
  padding-bottom: 22px;
  line-height: 1.75;
}

/* ----------------------------------------------------------
   21. CTA SECTION
   ---------------------------------------------------------- */
.cta-section {
  background: var(--bordeaux);
  text-align: center;
  padding: clamp(60px, 8vw, 100px) 0;
}
.cta-section h2 { color: #fff; margin-bottom: 16px; text-align: center; max-width: 760px; margin-inline: auto; }
.cta-section h2 .accent-word { color: var(--terracotta); }
.cta-section p { color: rgba(255,255,255,0.75); font-size: 16px; margin-bottom: 36px; }

/* ----------------------------------------------------------
   22. DISCLAIMER STRIP
   ---------------------------------------------------------- */
.disclaimer-strip {
  background: var(--grey-light);
  border-top: 1px solid var(--beige);
  border-bottom: 1px solid var(--beige);
  padding: 16px clamp(20px, 5vw, 48px);
  text-align: center;
  font-size: 11px;
  color: var(--grey-mid);
  line-height: 1.5;
}
.disclaimer-strip a { color: var(--grey-mid); text-decoration: underline; }

/* ----------------------------------------------------------
   23. FOOTER
   ---------------------------------------------------------- */
.footer {
  background: var(--dark);
  padding: clamp(48px, 7vw, 80px) 0 0;
  border-top: 3px solid var(--bordeaux);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.footer__brand-name span { color: var(--terracotta); }
.footer__tagline { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 20px; line-height: 1.6; }
.footer__contact { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.8; }
.footer__contact a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color var(--transition); }
.footer__contact a:hover { color: var(--terracotta); }

.footer__heading {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 10px; }
.footer__links a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__links a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer__legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal-links a { font-size: 11px; color: rgba(255,255,255,0.4); text-decoration: none; }
.footer__legal-links a:hover { color: rgba(255,255,255,0.75); }

/* ----------------------------------------------------------
   24. CATALOG PAGE
   ---------------------------------------------------------- */
.catalog-hero {
  background: var(--dark);
  padding: clamp(100px, 12vw, 160px) 0 clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.catalog-hero::before {
  content: 'TENSIÓMETROS';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 180px);
  font-weight: 700;
  color: rgba(255,255,255,0.03);
  letter-spacing: -0.04em;
  pointer-events: none;
  white-space: nowrap;
}
.catalog-hero__label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
  display: block;
}
.catalog-hero h1 { color: #fff; margin-bottom: 16px; }
.catalog-hero p { color: rgba(255,255,255,0.65); font-size: 17px; max-width: 540px; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  padding: clamp(48px, 7vw, 80px) 0;
}

.catalog-card {
  background: var(--white);
  border: 1.5px solid var(--beige);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.catalog-card:hover {
  border-color: var(--terracotta);
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}
.catalog-card__top-bar { height: 3px; background: var(--terracotta); }
.catalog-card__img {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.catalog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.catalog-card:hover .catalog-card__img img { transform: scale(1.04); }
.catalog-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.catalog-card__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.catalog-card__snippet {
  font-size: 13px;
  color: var(--grey-mid);
  flex: 1;
  margin-bottom: 18px;
  line-height: 1.6;
}
.catalog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.catalog-card__price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--bordeaux);
}

/* ----------------------------------------------------------
   25. CHECKOUT PAGE
   ---------------------------------------------------------- */
.checkout-page {
  background: var(--cream);
  min-height: 100vh;
}

.checkout-header {
  background: var(--dark);
  padding: 18px clamp(20px, 5vw, 48px);
  border-bottom: 2px solid var(--bordeaux);
}
.checkout-header__inner {
  max-width: 1100px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.checkout-header__logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.checkout-header__logo span { color: var(--terracotta); }
.checkout-header__secure {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.checkout-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  padding: 48px clamp(20px, 5vw, 48px);
  align-items: start;
}

/* Order summary */
.order-summary {
  background: var(--white);
  border: 1.5px solid var(--beige);
  padding: 28px;
  position: sticky;
  top: 100px;
}
.order-summary__title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--beige);
}
.order-summary__product {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--beige);
}
.order-summary__product-img {
  width: 72px;
  height: 72px;
  background: var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.order-summary__product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.order-summary__product-info { flex: 1; }
.order-summary__product-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.order-summary__product-price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--bordeaux);
}
.order-summary__quantity { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.order-summary__quantity label { font-size: 12px; color: var(--grey-mid); }
.order-summary__quantity select {
  font-family: var(--font-display);
  font-size: 13px;
  border: 1px solid var(--beige);
  padding: 4px 8px;
  background: var(--white);
  color: var(--dark);
}
.order-summary__totals { }
.order-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--grey-mid);
  padding: 6px 0;
}
.order-summary__row--total {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  border-top: 2px solid var(--beige);
  margin-top: 8px;
  padding-top: 12px;
}

/* Seller block */
.seller-block {
  margin-top: 20px;
  padding: 16px;
  background: var(--grey-light);
  border-left: 3px solid var(--terracotta);
}
.seller-block__title {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}
.seller-block__info { font-size: 12px; color: var(--grey-mid); line-height: 1.7; }
.seller-block__info a { color: var(--grey-mid); text-decoration: underline; }

/* Order terms */
.order-terms {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(179,84,30,0.06);
  border: 1px solid rgba(179,84,30,0.15);
  font-size: 11px;
  color: var(--grey-mid);
  line-height: 1.6;
}

/* Checkout form */
.checkout-form__section { margin-bottom: 32px; }
.checkout-form__section-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--beige);
}
.checkout-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.checkout-form__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.checkout-form__field label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
}
.checkout-form__field input,
.checkout-form__field select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--beige);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.checkout-form__field input:focus,
.checkout-form__field select:focus { border-color: var(--bordeaux); }
.checkout-form__field input.error,
.checkout-form__field select.error { border-color: #c0392b; }
.field-error {
  font-size: 11px;
  color: #c0392b;
  margin-top: 2px;
  display: none;
}
.field-error.visible { display: block; }

.checkout-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--grey-mid);
  margin-top: 4px;
}
.checkout-form__checkbox input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--bordeaux); flex-shrink: 0; }

.cod-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1.5px solid var(--beige);
  background: var(--white);
  margin-bottom: 24px;
}
.cod-badge__icon { flex-shrink: 0; color: var(--terracotta); }
.cod-badge__text { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--dark); }
.cod-badge__sub { font-size: 12px; color: var(--grey-mid); font-family: var(--font-body); }

/* ----------------------------------------------------------
   26. MODAL
   ---------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43,36,32,0.65);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--white);
  max-width: 480px;
  width: 100%;
  padding: 40px;
  border-top: 4px solid var(--bordeaux);
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal__icon { margin-bottom: 16px; }
.modal__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.modal__text { font-size: 15px; color: var(--grey-mid); line-height: 1.65; margin-bottom: 28px; }
.modal__close { margin-top: 8px; }

/* ----------------------------------------------------------
   27. PHOTO PLACEHOLDER
   ---------------------------------------------------------- */
.photo-placeholder {
  background: linear-gradient(135deg, #ff6eb4, #ff3d9a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 200px;
  border-radius: inherit;
}
.photo-placeholder__icon { font-size: 32px; }
.photo-placeholder__label {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: sans-serif;
  text-align: center;
  padding: 0 16px;
}

/* ----------------------------------------------------------
   28. SCROLL ANIMATIONS
   ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

.stagger-child {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.stagger-visible .stagger-child { opacity: 1; transform: translateY(0); }
.stagger-visible .stagger-child:nth-child(1) { transition-delay: 0s; }
.stagger-visible .stagger-child:nth-child(2) { transition-delay: 0.1s; }
.stagger-visible .stagger-child:nth-child(3) { transition-delay: 0.2s; }
.stagger-visible .stagger-child:nth-child(4) { transition-delay: 0.3s; }
.stagger-visible .stagger-child:nth-child(5) { transition-delay: 0.4s; }
.stagger-visible .stagger-child:nth-child(6) { transition-delay: 0.5s; }

/* ----------------------------------------------------------
   29. HERO LOAD ANIMATIONS
   ---------------------------------------------------------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero__label   { animation: fade-up 0.7s ease 0.1s both; }
.hero__title   { animation: fade-up 0.8s ease 0.25s both; }
.hero__subtitle{ animation: fade-up 0.8s ease 0.45s both; }
.hero__cta-row { animation: fade-up 0.8s ease 0.6s both; }

/* ----------------------------------------------------------
   30. COOKIE BANNER
   ---------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 760px;
  background: var(--dark);
  border: 1.5px solid var(--bordeaux);
  z-index: 8000;
  padding: 24px 28px;
  display: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 48px rgba(43,36,32,0.35);
}
.cookie-banner.visible { display: block; }
.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.cookie-banner__text { font-size: 12px; color: rgba(255,255,255,0.65); margin-bottom: 16px; line-height: 1.6; }
.cookie-banner__text a { color: var(--terracotta); }
.cookie-banner__btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cookie-banner__configure {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: var(--font-body);
}
.cookie-banner__panel {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.cookie-banner__panel.open { display: block; }
.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cookie-toggle__label { font-size: 12px; color: rgba(255,255,255,0.75); }
.cookie-toggle__switch { position: relative; width: 36px; height: 20px; }
.cookie-toggle__switch input { opacity: 0; width: 0; height: 0; }
.cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}
.cookie-toggle__slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}
.cookie-toggle__switch input:checked + .cookie-toggle__slider { background: var(--terracotta); }
.cookie-toggle__switch input:checked + .cookie-toggle__slider::before { transform: translateX(16px); }
.cookie-toggle__switch input:disabled + .cookie-toggle__slider { opacity: 0.5; cursor: not-allowed; }

/* ----------------------------------------------------------
   31. UTILITY CLASSES
   ---------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* line divider */
.divider {
  width: 48px;
  height: 3px;
  background: var(--terracotta);
  margin: 20px 0 28px;
}
.divider--center { margin-inline: auto; }

/* ----------------------------------------------------------
   32. RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .intro__grid { grid-template-columns: 1fr; gap: 48px; }
  .editorial__inner { grid-template-columns: 1fr; gap: 48px; }
  .article-preview__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .how-steps::before { display: none; }
  .cat-strip__grid { grid-template-columns: 1fr; }
  .cat-strip__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .cat-strip__item:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .catalog-grid { grid-template-columns: 1fr 1fr; }
  .checkout-form__row { grid-template-columns: 1fr; }
  .intro__stats { gap: 24px; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__title { font-size: clamp(36px, 8vw, 60px); }
  .stats-strip__inner { flex-direction: column; }
  .stats-strip__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

@media (max-width: 540px) {
  .product-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .trust-row { flex-direction: column; align-items: center; }
  .hero__cta-row { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .catalog-hero::before { display: none; }
}

/* Progressive-enhancement safety (injected by builder): scroll-reveal blocks stay VISIBLE
   unless JS confirms it can animate them by adding .js-anim to <html>. Guarantees a
   truncated page or a failed script can never leave content permanently hidden. */
html:not(.js-anim) .reveal,
html:not(.js-anim) .reveal-left,
html:not(.js-anim) .reveal-right,
html:not(.js-anim) .reveal-scale,
html:not(.js-anim) .stagger-child {
  opacity: 1 !important;
  transform: none !important;
}
