/* ===========================================================================
   EcoAura Medical — sistema de diseño
   Bootstrap 5 maneja el grid y los componentes; este archivo define la marca.
   =========================================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-soft-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'InterVar';
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'InterVar';
  src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'InterVar';
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --paper: #ffffff;
  --cream: #ffffff;
  --cream-2: #ffffff;

  --brand-vivid: #dd0175;
  --brand: #c30168;
  --brand-deep: #a3005a;
  --brand-soft: #ffe7f3;

  --rose: #e15699;
  --rose-soft: #f3accd;
  --rose-bg: #ffffff;

  --accent: #2baae2;
  --accent-ink: #0a6d97;
  --accent-soft: #e2f4fd;
  --accent-bg: #ffffff;

  --ink: #121212;
  --ink-2: #3d3d3d;
  --ink-3: #5c5c5c;

  --line: #e6e6e6;
  --line-2: #cccccc;

  --focus: #c30168;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans:  'InterVar', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 1.85rem);
  --step-3:  clamp(1.8rem, 1.55rem + 1.25vw, 2.6rem);
  --step-4:  clamp(2.2rem, 1.75rem + 2.2vw, 3.6rem);

  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --wrap: 74rem;
  --wrap-narrow: 44rem;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;
  --shadow-sm: 0 1px 2px rgba(26,36,34,.05), 0 4px 14px -8px rgba(26,36,34,.12);
  --shadow-md: 0 2px 6px rgba(26,36,34,.05), 0 18px 40px -22px rgba(26,36,34,.28);

  /* Bootstrap overrides */
  --bs-font-sans-serif: var(--sans);
  --bs-body-font-family: var(--sans);
  --bs-body-color: var(--ink-2);
  --bs-body-bg: var(--paper);
  --bs-link-color: var(--brand);
  --bs-link-hover-color: var(--brand-deep);
  --bs-border-color: var(--line);
  --bs-border-radius: var(--r-sm);
  --bs-border-radius-lg: var(--r-md);
  --bs-border-radius-xl: var(--r-lg);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 70;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }
h4 { font-size: var(--step-0); font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
p { text-wrap: pretty; }

a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - var(--gutter) * 2, var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--rosa, .section--cian, .section--crema { border-top: 1px solid var(--line); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: .5rem; top: -100%; z-index: 100;
  background: var(--brand); color: #fff; padding: .7rem 1.1rem;
  border-radius: var(--r-sm); text-decoration: none;
}
.skip-link:focus { top: .5rem; color: #fff; }

/* ── Eyebrow / lead ─────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--step--1); font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before {
  content: ''; width: 1.9rem; height: 3px; border-radius: 3px; flex: none;
  background: linear-gradient(90deg, var(--brand-vivid), var(--accent));
}
.eyebrow--cyan { color: var(--accent-ink); }
.eyebrow--cyan::before { background: linear-gradient(90deg, var(--accent), var(--brand-vivid)); }

.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); }
.rule { border: 0; border-top: 1px solid var(--line); margin-block: 2.5rem; }

/* ── Botones ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.6em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: var(--step-0); line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand-vivid); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--brand-soft); border-color: var(--brand-soft); }
.btn--light { background: #fff; color: var(--brand); }
.btn--hero-2 { background: #fff; border-color: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.btn--hero-2:hover { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand-deep); }
.btn--sm { padding: .6em 1.15em; font-size: var(--step--1); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ── Tarjetas ────────────────────────────────────────────────────────────── */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.3rem, 3vw, 1.9rem);
}
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

/* ── Precio ──────────────────────────────────────────────────────────────── */
.price {
  font-family: var(--serif); font-variation-settings: 'SOFT' 70;
  font-size: var(--step-3); font-weight: 600; color: var(--brand-vivid);
  line-height: 1; letter-spacing: -.02em;
}
.price small { font-size: .45em; font-family: var(--sans); font-weight: 500; color: var(--ink-3); letter-spacing: 0; }

/* ── Tags ────────────────────────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: var(--step--1); font-weight: 600;
  padding: .32em .8em; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
}
.tag--accent { background: var(--accent-soft); color: var(--accent-ink); }
.tag--outline { background: transparent; border: 1px solid var(--line-2); color: var(--ink-3); }

/* ── Ticks ───────────────────────────────────────────────────────────────── */
.ticks { list-style: none; padding: 0; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.7rem; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: .7rem; height: .38rem;
  border-left: 2px solid var(--brand-vivid); border-bottom: 2px solid var(--brand-vivid);
  transform: rotate(-45deg);
}

/* ── Prose ───────────────────────────────────────────────────────────────── */
.prose { max-width: 42rem; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .45em; }
.prose blockquote { border-left: 3px solid var(--rose); padding-left: 1.2rem; font-family: var(--serif); font-size: var(--step-1); color: var(--ink); }
.prose img { border-radius: var(--r-md); }

.disclaimer { font-size: var(--step--1); color: var(--ink-3); background: var(--cream); border-radius: var(--r-md); padding: .9rem 1.1rem; border-left: 3px solid var(--accent); }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.brand { display: block; color: var(--brand-vivid); line-height: 0; }
.brand:hover { color: var(--brand-deep); }
.brand img, .brand svg { height: 2.35rem; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { display: flex; gap: 1.15rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { font-size: .93rem; font-weight: 500; text-decoration: none; color: var(--ink-2); padding-block: .35rem; border-bottom: 2px solid transparent; }
.site-nav ul a:hover { color: var(--brand); }
.site-nav ul a.active { color: var(--brand); border-bottom-color: var(--accent); }
.site-nav__actions { display: flex; align-items: center; gap: .8rem; }
.tel-cta { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.tel-cta svg { color: var(--brand-vivid); flex: none; }
.tel-cta:hover { color: var(--brand); }
.lang-switch { font-size: .78rem; font-weight: 600; letter-spacing: .08em; border: 1px solid var(--line-2); border-radius: 999px; padding: .28rem .6rem; color: var(--ink-3); text-decoration: none; }
.lang-switch:hover { border-color: var(--brand); color: var(--brand); }

.nav-burger { display: none; }

@media (max-width: 991px) {
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 2.75rem; height: 2.75rem; cursor: pointer; padding: .6rem;
    border: 1px solid var(--line-2); border-radius: var(--r-sm);
    background: none;
  }
  .nav-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .site-nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .25s ease, visibility .25s;
  }
  .site-nav.open { max-height: 32rem; visibility: visible; overflow-y: auto; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav__actions { padding-top: 1rem; flex-wrap: wrap; }
  .tel-cta { flex-basis: 100%; justify-content: center; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav__actions .btn { flex: 1; }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: clamp(3rem, 7vw, 5rem); }
.footer-grid { display: grid; gap: 2.5rem clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 576px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.footer-brand img, .footer-brand svg { height: 2.6rem; width: auto; color: var(--brand-vivid); }
.footer-claim { font-size: var(--step--1); color: var(--ink-3); margin-top: 1rem; max-width: 22rem; }
.social { list-style: none; padding: 0; display: flex; gap: .8rem; margin-top: 1.2rem; }
.social a { color: var(--ink-3); transition: color .18s; }
.social a:hover { color: var(--brand-vivid); }
.footer-h { font-family: var(--sans); font-size: var(--step--1); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); margin-bottom: .9rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.footer-col a { font-size: var(--step--1); color: var(--ink-3); text-decoration: none; }
.footer-col a:hover { color: var(--brand); }
.footer-col address { font-style: normal; font-size: var(--step--1); color: var(--ink-3); line-height: 1.7; }
.footer-col address a { color: var(--ink-3); }
.footer-col address a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; justify-content: space-between; }
.footer-legal { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-legal a { font-size: var(--step--1); color: var(--ink-3); text-decoration: none; }
.footer-legal a:hover { color: var(--brand); }
.footer-copy { font-size: var(--step--1); color: var(--ink-3); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(4rem, 10vw, 8rem);
  background: rgb(var(--hero-fondo));
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; pointer-events: none;
}
.hero::before { width: clamp(20rem, 50vw, 40rem); height: clamp(20rem, 50vw, 40rem); top: -20%; right: -10%; background: rgb(var(--hero-luz-1)); }
.hero::after  { width: clamp(15rem, 40vw, 30rem); height: clamp(15rem, 40vw, 30rem); bottom: -15%; left: -5%; background: rgb(var(--hero-luz-2)); opacity: .2; }
.hero__inner { position: relative; z-index: 1; }
.hero__tagline { font-size: var(--step-1); color: var(--ink-3); margin-top: 1.2rem; max-width: 38rem; }
.hero__actions { margin-top: 2rem; }
.hero__img { margin-top: clamp(2.5rem, 5vw, 0); }
@media (min-width: 768px) {
  .hero .row { align-items: center; }
}

/* ── Barra de confianza ──────────────────────────────────────────────────── */
.trust-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 1.25rem; }
.trust-bar__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; }
.trust-bar__item { display: flex; align-items: center; gap: .5rem; font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }
.trust-bar__item svg { color: var(--brand-vivid); flex: none; }

/* ── Pack card ───────────────────────────────────────────────────────────── */
.pack-card { display: flex; flex-direction: column; height: 100%; }
.pack-card__weeks { font-size: var(--step--1); color: var(--ink-3); margin-bottom: .5rem; }
.pack-card__title { font-size: var(--step-1); font-family: var(--serif); font-variation-settings: 'SOFT' 70; font-weight: 600; color: var(--ink); margin-bottom: .5rem; }
.pack-card__short { font-size: var(--step--1); color: var(--ink-2); flex: 1; }
.pack-card__price { margin-top: 1.25rem; }
.pack-card__cta { margin-top: 1rem; }
.pack-card--featured { border-color: var(--brand-vivid); }
.pack-card--featured .pack-card__title { color: var(--brand-vivid); }

/* ── FAQ accordion (Bootstrap override) ─────────────────────────────────── */
.accordion-item { border: 0; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; }
.accordion-item:first-child { border-top: 1px solid var(--line) !important; }
.accordion-button { font-family: var(--sans); font-size: var(--step-0); font-weight: 600; color: var(--ink); background: transparent; box-shadow: none; padding: 1.15rem 0; }
.accordion-button:not(.collapsed) { color: var(--brand); background: transparent; box-shadow: none; }
.accordion-button::after { filter: none; }
.accordion-button:not(.collapsed)::after { filter: none; }
.accordion-body { font-size: var(--step-0); color: var(--ink-2); padding: 0 0 1.25rem; }

/* ── Garantía band ───────────────────────────────────────────────────────── */
.garantia-band { background: var(--accent-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 1.5rem; }
.garantia-band p { font-size: var(--step--1); color: var(--accent-ink); margin: 0; }

/* ── Sección de reseñas ──────────────────────────────────────────────────── */
.rev-list { list-style: none; padding: 0; }
.rev { border-bottom: 1px solid var(--line); padding-block: 1.5rem; }
.rev:first-child { padding-top: 0; }
.rev__author { font-weight: 600; font-size: var(--step-0); color: var(--ink); }
.rev__meta { font-size: var(--step--1); color: var(--ink-3); margin-top: .15rem; }
.rev__text { margin-top: .8rem; font-size: var(--step-0); color: var(--ink-2); }
.stars { color: #f4a100; letter-spacing: .05em; }

/* ── Respuesta directa ───────────────────────────────────────────────────── */
.rdir { }
.rdir__item + .rdir__item { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.rdir__q { font-size: var(--step-1); margin-bottom: .5rem; }
.rdir__a { font-size: var(--step-0); color: var(--ink); font-weight: 500; max-width: 46rem; }
.rdir__mas { margin-top: .6rem; font-size: var(--step--1); color: var(--ink-2); max-width: 46rem; }

/* ── WhatsApp float ──────────────────────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  display: flex; align-items: center; gap: .6rem;
  background: #25d366; color: #fff;
  padding: .7rem 1.1rem .7rem .85rem;
  border-radius: 999px; text-decoration: none;
  box-shadow: 0 4px 18px rgba(37,211,102,.35);
  font-size: .92rem; font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-float:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.45); }
.wa-float svg { flex: none; }

/* ── Cookie consent ──────────────────────────────────────────────────────── */
.cookie-bar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 1050;
  background: var(--ink); color: #fff; padding: 1rem var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
  transform: translateY(100%); transition: transform .3s ease;
}
.cookie-bar.show { transform: translateY(0); }
.cookie-bar p { flex: 1; min-width: 16rem; font-size: var(--step--1); color: rgba(255,255,255,.85); margin: 0; }
.cookie-bar a { color: #fff; }
