/* ===== Tokens ===== */
:root {
  --navy-deep: #070D14;
  --navy: #0B1420;
  --navy-card: #101B2B;
  --navy-card-2: #14213570;
  --orange: #E2691F;
  --orange-light: #F2A05C;
  --blue: #1E5FA0;
  --blue-light: #7EB4E0;
  --white: #FFFFFF;
  --text-muted: #9AA5B1;
  --text-dim: #64707C;
  --border: #1E2A3A;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--navy-deep);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
}

.text-orange { color: var(--orange); }

.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 300;
  background: var(--orange);
  color: var(--navy-deep);
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* ===== Ambient blob field (brand signature) ===== */
.blob-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  filter: blur(2px);
  opacity: 0.16;
  animation: morph 14s ease-in-out infinite, drift 22s ease-in-out infinite;
}

.blob-blue { background: var(--blue); }
.blob-orange { background: var(--orange); }

.b1 { width: 620px; height: 620px; top: -220px; left: -160px; animation-delay: 0s, 0s; }
.b2 { width: 480px; height: 480px; top: 40%; right: -220px; animation-delay: -4s, -6s; }
.b3 { width: 400px; height: 400px; bottom: -180px; left: 30%; animation-delay: -8s, -12s; }

@keyframes morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 45% 55% 59%; }
  25% { border-radius: 63% 37% 41% 59% / 55% 42% 58% 45%; }
  50% { border-radius: 37% 63% 55% 45% / 59% 63% 37% 41%; }
  75% { border-radius: 55% 45% 37% 63% / 42% 58% 41% 59%; }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}

/* Small brand blob used as accent/avatar shapes */
.mini-blob, .testimonial-blob {
  border-radius: 42% 58% 63% 37% / 41% 45% 55% 59%;
  animation: morph 10s ease-in-out infinite;
}
.mini-blue { background: var(--blue); }
.mini-orange { background: var(--orange); }

/* ===== Floating WhatsApp button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
  z-index: 200;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.6);
}
.whatsapp-float:focus-visible {
  outline: 2px solid var(--orange-light);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .whatsapp-float { width: 52px; height: 52px; bottom: 1.1rem; right: 1.1rem; }
}

/* ===== Logo strip (client logos marquee) ===== */
.logo-strip {
  padding: 3rem 0 3.4rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.logo-strip-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.8rem;
  letter-spacing: 0.02em;
}

.logo-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: logo-scroll 38s linear infinite;
}

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-chip {
  flex: 0 0 auto;
  width: 150px;
  height: 64px;
  background: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
}
.logo-chip img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* RedSalud y Skin Evolution se ven más pequeños con el padding estándar
   (uno es cuadrado, el otro de baja resolución) — se agrandan aparte */
.logo-chip--lg {
  width: 172px;
  height: 82px;
  padding: 0.4rem 0.6rem;
}

@media (max-width: 640px) {
  .logo-chip { width: 120px; height: 52px; padding: 0.5rem 0.8rem; }
  .logo-chip--lg { width: 138px; height: 66px; padding: 0.3rem 0.5rem; }
  .logo-track { gap: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
  .logo-marquee { overflow-x: auto; }
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 13, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
}

.brand-logo { height: 34px; width: auto; }

.nav {
  display: flex;
  gap: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav a { transition: color 0.2s ease; }
.nav a:hover { color: var(--white); }

.nav-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--orange);
  color: var(--navy-deep);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(226, 105, 31, 0.55); }

.btn-ghost {
  border-color: var(--border);
  color: var(--white);
  padding: 0.65rem 1.3rem;
  font-size: 0.9rem;
}
.btn-ghost:hover { border-color: var(--orange-light); color: var(--orange-light); }

.btn-text {
  padding: 0.85rem 0.2rem;
  color: var(--text-muted);
}
.btn-text:hover { color: var(--white); }

.btn-full { width: 100%; text-align: center; }

/* ===== Sections generic ===== */
main section { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 1.1rem;
}
.eyebrow-alt { color: var(--blue-light); }

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  max-width: 720px;
  margin-bottom: 3rem;
}
.section-title--light { color: var(--white); margin-bottom: 1.2rem; }

/* ===== Hero ===== */
.hero {
  padding: 8.5rem 0 6rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  max-width: 780px;
  letter-spacing: -0.01em;
}

.hero-sub {
  margin-top: 1.6rem;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
}

.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.hero-stat {
  margin-top: 4.5rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  max-width: 620px;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 320px;
}

/* ===== Advantages ===== */
.advantages { padding: 6rem 0; }

.advantage-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 2.5rem;
  padding: 2.6rem 0;
  border-bottom: 1px solid var(--border);
}
.advantage-row:first-of-type { border-top: 1px solid var(--border); }
.advantage-row--reverse { grid-template-columns: 1fr 200px; }
.advantage-row--reverse .advantage-visual { order: 2; }
.advantage-row--reverse .advantage-copy { order: 1; }

.advantage-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-blob {
  width: 120px;
  height: 120px;
}

.advantage-copy h3 {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}
.advantage-copy p {
  color: var(--text-muted);
  max-width: 520px;
  font-size: 1rem;
}

.stat-strip {
  margin-top: 3.5rem;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.6rem 2.8rem;
  display: flex;
  align-items: center;
  gap: 2.2rem;
  flex-wrap: wrap;
  position: relative;
}

.stat-block { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.stat-muted { color: var(--text-dim); }
.stat-highlight { color: var(--blue-light); }
.stat-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.6rem; }
.stat-arrow { font-size: 1.8rem; color: var(--orange); }
.stat-footnote {
  position: absolute;
  bottom: 1rem;
  right: 1.6rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ===== FAQ ===== */
.faq {
  padding: 5rem 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 720px;
}

.faq-item {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.3rem 1.6rem;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--orange-light);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ===== Testimonials ===== */
.testimonials { padding: 4rem 0 6.5rem; }

.section-note {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: -2.2rem;
  margin-bottom: 2.5rem;
}

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.testimonial-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.2rem;
}

.testimonial-blob {
  width: 46px;
  height: 46px;
  margin-bottom: 1.4rem;
}

.testimonial-quote {
  font-size: 1.02rem;
  line-height: 1.55;
  margin-bottom: 1.4rem;
}

.testimonial-author {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ===== Contact ===== */
.contact {
  padding: 6rem 0 7rem;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 3.5rem;
}

.contact-sub {
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  max-width: 460px;
}

.contact-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.9rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.contact-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--orange);
}

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field { display: flex; flex-direction: column; gap: 0.5rem; }

/* ===== Mini stats (advantages section) ===== */
.mini-stats {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.mini-stat {
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.mini-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--orange-light);
  margin-bottom: 0.5rem;
}
.mini-stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.field label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field input, .field textarea, .field select {
  background: var(--navy-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239AA5B1' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--orange-light);
  outline-offset: 1px;
  border-color: transparent;
}

.form-note {
  font-size: 0.88rem;
  color: var(--blue-light);
  min-height: 1.2em;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.6rem 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo { height: 24px; opacity: 0.75; }
.footer-copy { color: var(--text-dim); font-size: 0.82rem; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .advantage-row, .advantage-row--reverse {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .advantage-row--reverse .advantage-visual,
  .advantage-row--reverse .advantage-copy { order: initial; }
  .advantage-visual { justify-content: flex-start; }
  .mini-blob { width: 80px; height: 80px; }

  .testimonial-track { grid-template-columns: 1fr; }

  .mini-stats { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }

  .contact-inner {
    grid-template-columns: 1fr;
    padding: 2.2rem;
    border-radius: 20px;
  }

  .hero { padding: 6.5rem 0 4rem; }
}

@media (max-width: 480px) {
  .contact-inner { padding: 1.6rem; }
  .stat-strip { padding: 1.8rem; }
}

/* Focus visibility for keyboard nav */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange-light);
  outline-offset: 2px;
}
