/* ==========================================================================
   DarteSalud — Landing Page Styles
   Dirección estética: corporativo-médico confiable, con acentos de
   gradiente "latido" (azul profundo → celeste), tipografía editorial,
   composición generosa y micro-interacciones cuidadas.
   ========================================================================== */

:root{
  /* Paleta */
  --navy-950: #060a14;
  --navy-900: #0b1120;
  --navy-800: #0f172a;
  --navy-700: #16213b;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --sky-400:  #38bdf8;
  --sky-300:  #7dd3fc;
  --ice-50:   #f4f8ff;
  --ice-100:  #e9f1ff;
  --white:    #ffffff;
  --ink:      #0b1120;
  --ink-soft: #445070;
  --line:     rgba(15, 23, 42, 0.08);

  --grad-pulse: linear-gradient(135deg, var(--sky-400) 0%, var(--blue-600) 55%, var(--navy-800) 100%);
  --grad-pulse-soft: linear-gradient(135deg, var(--sky-300) 0%, var(--blue-500) 100%);

  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-soft: 0 20px 60px -20px rgba(11, 17, 32, 0.25);
  --shadow-card: 0 12px 32px -14px rgba(11, 17, 32, 0.18);

  --container-w: 1180px;
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4{
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}

p{ margin: 0; }

ul{ margin: 0; padding: 0; list-style: none; }

.container{
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Grain overlay for texture */
.grain-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-large{ padding: 17px 32px; font-size: 1rem; }
.btn-small{ padding: 10px 18px; font-size: 0.85rem; }

.btn-primary{
  background: var(--grad-pulse-soft);
  color: var(--white);
  box-shadow: 0 14px 30px -10px rgba(37, 99, 235, 0.55);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(37, 99, 235, 0.65); }

.btn-ghost{
  background: var(--white);
  color: var(--blue-700);
  border-color: var(--line);
  box-shadow: var(--shadow-card);
}
.btn-ghost:hover{ transform: translateY(-2px); border-color: var(--blue-400); }

.btn-ghost-dark{
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost-dark:hover{ background: rgba(255,255,255,0.16); transform: translateY(-2px); }

.btn-outline-light{
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline-light:hover{ background: rgba(255,255,255,0.1); transform: translateY(-2px); }

.icon-wa{ width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.icon-arrow{ width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; transition: transform 0.25s ease; }
.btn-outline-light:hover .icon-arrow{ transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  gap: 24px;
  height: 78px;
}
.brand{ display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-logo{ width: 34px; height: 34px; object-fit: contain; }
.brand-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy-900);
}
.brand-name em{ font-style: normal; color: var(--blue-600); }

.main-nav{ display: flex; align-items: center; gap: 28px; }
.main-nav a{
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--grad-pulse-soft);
  transition: width 0.25s ease;
}
.main-nav a:hover{ color: var(--navy-900); }
.main-nav a:hover::after{ width: 100%; }
.main-nav a.header-cta:hover::after{ width: 0; }

.header-cta{ flex-shrink: 0; margin-left: 8px; }

.nav-toggle{
  display: none;
  width: 40px; height: 40px;
  border: none; background: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  cursor: pointer;
}
.nav-toggle span{
  width: 22px; height: 2px; background: var(--navy-900); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero-blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  z-index: 0;
}
.hero-blob-1{ width: 460px; height: 460px; top: -180px; right: -140px; background: var(--grad-pulse-soft); }
.hero-blob-2{ width: 340px; height: 340px; bottom: -140px; left: -120px; background: var(--sky-300); opacity: 0.3; }

.hero-inner{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 18px;
}
.eyebrow::before{
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-pulse-soft);
}
.eyebrow-light{ color: var(--sky-300); }
.eyebrow-light::before{ background: var(--sky-300); }

.hero h1{
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 .highlight{
  background: var(--grad-pulse-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede{
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions{ display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-trust{ display: flex; gap: 36px; }
.trust-item{ display: flex; flex-direction: column; }
.trust-num{
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy-900);
}
.trust-item span:last-child{ font-size: 0.82rem; color: var(--ink-soft); font-weight: 600; }

.hero-visual{ position: relative; }
.hero-visual-glow{
  position: absolute;
  inset: -30px;
  background: var(--grad-pulse-soft);
  filter: blur(60px);
  opacity: 0.35;
  border-radius: var(--radius-lg);
  z-index: 0;
}
.hero-img{
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ==========================================================================
   Specialties strip (marquee)
   ========================================================================== */
.specialties-strip{
  background: var(--navy-900);
  padding: 26px 0;
  overflow: hidden;
}
.strip-label{
  text-align: center;
  color: var(--sky-300);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.strip-marquee{ overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip-track{
  display: flex;
  gap: 14px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 32s linear infinite;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.95rem;
}
.strip-track span:nth-child(odd){ color: var(--sky-400); }
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ==========================================================================
   Section basics
   ========================================================================== */
.section{ padding: 110px 0; }
.section-alt{ background: var(--ice-50); }
.section-dark{ background: var(--navy-950); color: var(--white); }

.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-head h2{ font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 14px; }
.section-sub{ color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; margin-top: 14px; }

/* ==========================================================================
   Steps (Cómo funciona)
   ========================================================================== */
.steps-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step-card{
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
}
.step-card:hover{ transform: translateY(-6px); }
.step-number{
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--grad-pulse-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.step-card h3{ font-size: 1.25rem; margin-bottom: 10px; }
.step-card p{ color: var(--ink-soft); line-height: 1.6; font-size: 0.98rem; }

/* ==========================================================================
   Split layout (Para pacientes)
   ========================================================================== */
.split-layout{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.split-visual{ position: relative; }
.split-visual-glow{
  position: absolute;
  inset: -24px;
  background: var(--grad-pulse-soft);
  filter: blur(60px);
  opacity: 0.25;
  border-radius: var(--radius-lg);
}
.split-img{ position: relative; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }

.split-copy h2{ font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 18px; }
.split-copy > p{ color: var(--ink-soft); font-size: 1.05rem; line-height: 1.65; margin-bottom: 26px; }

.check-list{ display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.check-list li{
  position: relative;
  padding-left: 32px;
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.5;
}
.check-list li::before{
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--grad-pulse-soft);
}
.check-list li::after{
  content: "";
  position: absolute;
  left: 6px; top: 7px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}

/* ==========================================================================
   Benefits (Para profesionales)
   ========================================================================== */
.benefits-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.benefit-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.benefit-card:hover{ transform: translateY(-6px); border-color: var(--blue-400); }
.benefit-icon{
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--grad-pulse-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.benefit-icon svg{ width: 24px; height: 24px; fill: var(--white); }
.benefit-card h3{ font-size: 1.08rem; margin-bottom: 8px; }
.benefit-card p{ color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }

.cta-panel{
  background: var(--grad-pulse);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.cta-panel-text h3{ color: var(--white); font-size: 1.4rem; margin-bottom: 8px; }
.cta-panel-text p{ color: rgba(255,255,255,0.85); max-width: 460px; line-height: 1.55; }
.cta-panel .btn-primary{ background: var(--white); color: var(--blue-700); box-shadow: none; flex-shrink: 0; }
.cta-panel .btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,0,0,0.3); }

/* ==========================================================================
   DarteSalud B2B
   ========================================================================== */
.b2b-layout{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.b2b-copy h2{ color: var(--white); font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 18px; }
.b2b-copy p{ color: rgba(255,255,255,0.75); font-size: 1.05rem; line-height: 1.65; max-width: 480px; margin-bottom: 30px; }

.b2b-visual{ position: relative; height: 280px; }
.b2b-ring{
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.35);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.b2b-ring-1{ width: 180px; height: 180px; }
.b2b-ring-2{ width: 260px; height: 260px; border-color: rgba(96,165,250,0.25); }
.b2b-ring-3{ width: 340px; height: 340px; border-color: rgba(59,130,246,0.15); }
.b2b-ring-1::after{
  content: "";
  position: absolute; inset: 30px;
  border-radius: 50%;
  background: var(--grad-pulse-soft);
  filter: blur(6px);
  opacity: 0.7;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list{ display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.faq-item{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 8px 26px;
  box-shadow: var(--shadow-card);
}
.faq-item summary{
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--blue-600);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item p{ color: var(--ink-soft); line-height: 1.6; padding-bottom: 20px; font-size: 0.96rem; }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta{
  background: var(--navy-950);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.final-cta::before{
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: var(--grad-pulse-soft);
  opacity: 0.18;
  filter: blur(100px);
  top: -260px; left: 50%; transform: translateX(-50%);
}
.final-cta-inner{ position: relative; text-align: center; }
.final-cta h2{
  color: var(--white);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-bottom: 34px;
}
.final-cta .hero-actions{ justify-content: center; margin-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: var(--navy-900); color: rgba(255,255,255,0.8); padding: 70px 0 0; }
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand{ display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-logo{ width: 40px; height: 40px; object-fit: contain; }
.footer-brand .brand-name{ color: var(--white); }
.footer-brand .brand-name em{ color: var(--sky-400); font-style: normal; }
.footer-brand p{ font-size: 0.9rem; color: rgba(255,255,255,0.55); }

.social-links{ display: flex; gap: 12px; margin-top: 6px; }
.social-links a{
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}
.social-links a:hover{ background: var(--grad-pulse-soft); transform: translateY(-3px); }
.social-links svg{ width: 17px; height: 17px; fill: var(--white); }

.footer-col{ display: flex; flex-direction: column; gap: 12px; }
.footer-col h4{ color: var(--white); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 4px; }
.footer-col a{ font-size: 0.92rem; color: rgba(255,255,255,0.65); transition: color 0.2s ease; }
.footer-col a:hover{ color: var(--sky-400); }

.footer-bottom{ padding: 26px 0; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.4); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px){
  .steps-grid{ grid-template-columns: 1fr; }
  .benefits-grid{ grid-template-columns: repeat(2, 1fr); }
  .split-layout, .hero-inner, .b2b-layout{ grid-template-columns: 1fr; }
  .hero-visual, .split-visual{ order: -1; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .cta-panel{ flex-direction: column; text-align: center; }
}

@media (max-width: 860px){
  .main-nav{ display: none; }
  .nav-toggle{ display: flex; }

  .site-header.nav-open .main-nav{
    display: flex;
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-card);
  }
  .site-header.nav-open .header-cta{
    margin-left: 0;
    margin-top: 4px;
  }
}

@media (max-width: 640px){
  .section{ padding: 72px 0; }
  .hero{ padding: 56px 0 64px; }
  .hero-trust{ gap: 24px; flex-wrap: wrap; }
  .benefits-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 32px; }
  .cta-panel{ padding: 32px 26px; }
  .b2b-visual{ height: 200px; }
  .container{ padding-inline: 20px; }
}
