/* ============================================================
   ELEVANNIA — Luxury Wellness
   style.css — variables, base, componentes, secciones
   ============================================================ */

:root {
  /* Primarios */
  --luxury-black: #0A0A0A;
  --obsidian: #111111;
  --charcoal: #1D1D1D;

  /* Dorados */
  --royal-gold: #D4AF37;
  --champagne-gold: #E5C76B;
  --soft-gold: #C7A24D;

  /* Neutros */
  --ivory: #F8F7F4;
  --pearl: #FAFAF8;
  --stone: #EAE8E2;

  /* Derivados */
  --text-muted: rgba(248, 247, 244, 0.62);
  --gold-line: rgba(212, 175, 55, 0.25);
  --gold-line-strong: rgba(212, 175, 55, 0.5);

  /* Tipografía */
  --font-display: 'Playfair Display', 'Cormorant Garamond', serif;
  --font-body: 'Manrope', 'Helvetica Neue', sans-serif;

  /* Ritmo */
  --section-pad: clamp(96px, 12vw, 160px);
  --content-width: 1280px;
  --gutter: clamp(24px, 5vw, 64px);

  /* Transiciones */
  --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--luxury-black);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--royal-gold); color: var(--luxury-black); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

/* Focus visible — WCAG */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--champagne-gold);
  outline-offset: 3px;
}

/* ============ Utilidades ============ */
.container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--royal-gold);
}

.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--royal-gold);
}

.eyebrow--center::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--royal-gold);
}

.section-title {
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: 0.01em;
}

.section-intro {
  max-width: 56ch;
  color: var(--text-muted);
  font-size: 18px;
}

.text-gold { color: var(--royal-gold); }
.italic-gold { font-style: italic; color: var(--champagne-gold); }

/* ============ Botones ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.4s var(--ease-luxury), color 0.4s var(--ease-luxury), border-color 0.4s var(--ease-luxury);
}

.btn--gold {
  background: var(--royal-gold);
  color: var(--luxury-black);
}
.btn--gold:hover { background: var(--champagne-gold); }

.btn--outline {
  background: transparent;
  color: var(--champagne-gold);
  border-color: var(--gold-line-strong);
}
.btn--outline:hover {
  border-color: var(--champagne-gold);
  color: var(--ivory);
}

.btn--ghost {
  background: transparent;
  color: var(--ivory);
  padding-inline: 8px;
  border-bottom: 1px solid var(--gold-line-strong);
}
.btn--ghost:hover { color: var(--champagne-gold); }

/* ============ Header ============ */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-line);
  transition: background 0.4s var(--ease-luxury);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 22px;
}

.brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-decoration: none;
  color: var(--champagne-gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  transition: color 0.3s var(--ease-luxury);
}

.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--royal-gold); }

.header-cta { flex-shrink: 0; min-height: 44px; padding: 12px 28px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold-line-strong);
  color: var(--champagne-gold);
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img, .hero__media .media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.35) 45%, rgba(10,10,10,0.55) 100%);
}

.hero__content {
  width: 100%;
  padding-block: 0 clamp(72px, 10vh, 128px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

.hero__title {
  font-size: clamp(56px, 8.5vw, 128px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.02;
  max-width: 14ch;
}

.hero__subtitle {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--text-muted);
  max-width: 44ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 28px;
  right: var(--gutter);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}

/* ============ Secciones ============ */
.section {
  padding-block: var(--section-pad);
  position: relative;
}

.section--obsidian { background: var(--obsidian); border-block: 1px solid var(--gold-line); }
.section--ivory { background: var(--ivory); color: var(--luxury-black); }
.section--ivory .section-intro { color: rgba(10,10,10,0.6); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-head--center {
  align-items: center;
  text-align: center;
}

/* ============ Beneficios ============ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gold-line);
  border: 1px solid var(--gold-line);
}

.benefit {
  background: var(--luxury-black);
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 0.5s var(--ease-luxury);
}

.benefit:hover { background: var(--obsidian); }

.benefit__numeral {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--royal-gold);
  letter-spacing: 0.1em;
}

.benefit__title { font-size: 26px; }

.benefit__copy { color: var(--text-muted); font-size: 16px; }

/* ============ Ingredientes ============ */
.ingredients {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.ingredients__media {
  position: relative;
}

.ingredients__media::after {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 1px solid var(--gold-line-strong);
  pointer-events: none;
}

.ingredient-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.ingredient-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid var(--gold-line);
}

.ingredient-list li:first-child { border-top: 1px solid var(--gold-line); }

.ingredient-list .ing-name {
  font-family: var(--font-display);
  font-size: 22px;
  min-width: 13ch;
}

.ingredient-list .ing-desc { color: var(--text-muted); font-size: 16px; }

/* ============ Ciencia ============ */
.science {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.science-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--gold-line);
  border: 1px solid var(--gold-line);
}

.stat {
  background: var(--obsidian);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  color: var(--champagne-gold);
}

.stat__label {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============ Comparativa ============ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--gold-line);
  font-size: 16px;
}

.compare-table th, .compare-table td {
  padding: 22px 28px;
  text-align: left;
  border-bottom: 1px solid var(--gold-line);
}

.compare-table thead th {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  border-bottom: 1px solid var(--gold-line-strong);
}

.compare-table thead th.col-elevannia {
  color: var(--royal-gold);
  background: rgba(212, 175, 55, 0.06);
}

.compare-table td.col-elevannia {
  background: rgba(212, 175, 55, 0.06);
  color: var(--ivory);
}

.compare-table td { color: var(--text-muted); }

.compare-table .check { color: var(--royal-gold); font-size: 18px; }
.compare-table .cross { color: rgba(248,247,244,0.3); font-size: 18px; }

/* ============ Testimonios ============ */
.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.8s var(--ease-luxury);
}

.testimonial {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  padding-inline: clamp(16px, 8vw, 120px);
}

.testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 36px);
  font-style: italic;
  line-height: 1.4;
  max-width: 28ch;
}

.testimonial cite {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--royal-gold);
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
}

.slider-btn {
  width: 52px;
  height: 52px;
  background: none;
  border: 1px solid var(--gold-line-strong);
  color: var(--champagne-gold);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.slider-btn:hover { background: var(--royal-gold); color: var(--luxury-black); }

.slider-dots { display: flex; gap: 12px; }

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--gold-line-strong);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.slider-dot[aria-selected="true"] { background: var(--royal-gold); border-color: var(--royal-gold); }

/* ============ Lifestyle ============ */
.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lifestyle-grid figure {
  margin: 0;
  position: relative;
  overflow: hidden;
}

.lifestyle-grid figure:nth-child(1) { grid-row: span 2; }

.lifestyle-grid img, .lifestyle-grid .media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-luxury);
}

.lifestyle-grid figure:hover img { transform: scale(1.04); }

/* ============ Suscripción ============ */
.subscribe-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border: 1px solid var(--gold-line-strong);
  background: var(--obsidian);
}

.subscribe-panel__info {
  padding: clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.subscribe-panel__perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--text-muted);
  font-size: 16px;
}

.subscribe-panel__perks li {
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.subscribe-panel__perks li::before {
  content: "—";
  color: var(--royal-gold);
}

.subscribe-panel__media {
  position: relative;
  min-height: 360px;
  border-left: 1px solid var(--gold-line);
}

.subscribe-panel__media img, .subscribe-panel__media .media-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.price-line .price {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--champagne-gold);
}

.price-line .per {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--gold-line);
}

.faq-item { border-bottom: 1px solid var(--gold-line); }

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 28px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 21px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 26px;
  color: var(--royal-gold);
  transition: transform 0.4s var(--ease-luxury);
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .faq-answer {
  padding-bottom: 28px;
  color: var(--text-muted);
  max-width: 60ch;
}

/* ============ CTA Final ============ */
.final-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.final-cta h2 {
  font-size: clamp(44px, 6vw, 84px);
  max-width: 18ch;
}

.guarantee-note {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--gold-line);
  padding-block: clamp(48px, 6vw, 80px) 40px;
  background: var(--obsidian);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-col h4 {
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--royal-gold);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--champagne-gold); }

.footer-brand-blurb { color: var(--text-muted); font-size: 15px; max-width: 36ch; margin-top: 16px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--gold-line);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ============ Sticky Buy ============ */
.sticky-buy {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-luxury), transform 0.5s var(--ease-luxury);
}

.sticky-buy.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ============ Placeholders de imagen ============ */
.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(212,175,55,0.12), transparent 65%),
    var(--charcoal);
  border: 1px solid var(--gold-line);
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
  min-height: 240px;
}

/* ============ Páginas internas ============ */
.page-hero {
  padding-top: clamp(160px, 20vh, 220px);
  padding-bottom: clamp(56px, 8vw, 96px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-hero h1 { font-size: clamp(48px, 6.5vw, 92px); max-width: 16ch; }

/* Shop */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gold-line);
  background: var(--obsidian);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.4s var(--ease-luxury), transform 0.4s var(--ease-luxury);
}

.product-card:hover { border-color: var(--gold-line-strong); transform: translateY(-4px); }

.product-card__media { aspect-ratio: 4 / 5; position: relative; overflow: hidden; }

.product-card__media img, .product-card__media .media-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card__tag {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--royal-gold);
}

.product-card__name { font-size: 24px; }

.product-card__price {
  font-size: 15px;
  color: var(--text-muted);
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.product-detail__gallery { position: sticky; top: 120px; }

.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.qty-row { display: flex; gap: 16px; align-items: stretch; flex-wrap: wrap; }

.qty-input {
  width: 88px;
  background: var(--obsidian);
  border: 1px solid var(--gold-line-strong);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  text-align: center;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--gold-line);
  background: var(--obsidian);
  transition: border-color 0.4s var(--ease-luxury);
}

.blog-card:hover { border-color: var(--gold-line-strong); }

.blog-card__media { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }

.blog-card__media .media-placeholder { position: absolute; inset: 0; min-height: 0; }

.blog-card__body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }

.blog-card__meta {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--royal-gold);
}

.blog-card__title { font-size: 23px; }

.blog-card__excerpt { color: var(--text-muted); font-size: 15px; }

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field { display: flex; flex-direction: column; gap: 10px; }

.field label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--royal-gold);
}

.field input, .field textarea, .field select {
  background: var(--obsidian);
  border: 1px solid var(--gold-line);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  padding: 16px 18px;
  transition: border-color 0.3s;
}

.field input:focus, .field textarea:focus { border-color: var(--champagne-gold); outline: none; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info .info-block { display: flex; flex-direction: column; gap: 8px; }

.contact-info .info-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--royal-gold);
}

.contact-info .info-value {
  font-family: var(--font-display);
  font-size: 22px;
}

/* About */
.about-statement {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.35;
  max-width: 26ch;
  margin-inline: auto;
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gold-line);
  border: 1px solid var(--gold-line);
}

/* Skip link — accesibilidad */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--royal-gold);
  color: var(--luxury-black);
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.3s;
}

.skip-link:focus { top: 16px; }
