/* ============================================
   Dra. Silvia Sandoval — Hematóloga La Paz, BCS
   styles.css — base, variables, tipografía, nav, hero
   ============================================ */

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

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

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ---------- Variables ---------- */
:root {
  --ivory:        #FAF7F2;
  --ivory-alt:    #F5EEE8;
  --mauve:        #7C5C7A;
  --mauve-light:  #B89AB6;
  --champagne:    #C4A876;
  --cafe-oscuro:  #2D1B35;
  --texto:        #2E2826;
  --suave:        #9A8F8A;
  --blanco:       #FFFFFF;

  --font-display: 'Bodoni Moda', serif;
  --font-body: 'Jost', sans-serif;
  --font-numbers: 'Cormorant Garamond', serif;

  --nav-height: 88px;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--texto);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: 300;
  line-height: 1.15;
}

h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 72;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: var(--font-numbers);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1 em, h2 em {
  font-family: var(--font-numbers);
  font-weight: 400;
  font-style: italic;
  color: var(--mauve);
}

h1 { font-size: clamp(3.25rem, 5vw, 4.5rem); }
h2 { font-size: clamp(3.25rem, 4.2vw, 4.25rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

em, .accent-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 72;
  -webkit-font-smoothing: antialiased;
  color: var(--mauve);
}

p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  color: var(--texto);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 18px;
}

.eyebrow--light {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  letter-spacing: 0.28em;
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
  cursor: pointer;
}

.btn--mauve {
  background: var(--mauve);
  color: var(--blanco);
}
.btn--mauve:hover {
  background: #6a4d68;
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--cafe-oscuro);
  color: var(--ivory);
}
.btn--dark:hover {
  background: #1F1325;
  transform: translateY(-2px);
}

.btn--outline-dark {
  border-color: var(--cafe-oscuro);
  color: var(--cafe-oscuro);
  background: transparent;
}
.btn--outline-dark:hover {
  background: var(--cafe-oscuro);
  color: var(--ivory);
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

section {
  position: relative;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.75s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.85s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.85s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(250,247,242,0.90);
  box-shadow: 0 1px 0 rgba(124,92,122,0.1);
}

.nav__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav__brand span {
  font-family: var(--font-display);
  font-weight: 300;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 72;
  -webkit-font-smoothing: antialiased;
  font-size: 22px;
  color: var(--texto);
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav__links a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texto);
  position: relative;
  padding-bottom: 4px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--mauve);
  transition: width 0.35s ease;
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  line-height: 1;
  vertical-align: middle;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  border-radius: 50px;
  background: var(--mauve);
  color: #FAF7F2;
  box-shadow: 0 4px 20px rgba(124,92,122,0.35);
  transition: all 0.3s ease;
}

.nav__cta:hover {
  background: #6A4A68;
  box-shadow: 0 8px 30px rgba(124,92,122,0.5);
  transform: translateY(-1px);
}

.nav__mobile-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__cta-mobile {
  display: none;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 50px;
  background: var(--mauve);
  color: white;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .nav__cta-mobile {
    display: none;
  }
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  z-index: 1100;
}

.nav__toggle span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--texto);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.nav__toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav__overlay {
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav__overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav__overlay ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.nav__overlay a {
  font-family: var(--font-display);
  font-weight: 300;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 72;
  -webkit-font-smoothing: antialiased;
  font-size: 28px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ivory);
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border: none;
  outline: none;
  will-change: transform;
}

.hero-bg-photo img {
  position: absolute;
  top: 0;
  right: 0;
  width: 72%;
  height: 110%;
  object-fit: cover;
  object-position: 18% 8%;
  filter: contrast(1.05) brightness(1.0) saturate(0.88);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 58%;
  padding: 140px 48px 80px 80px;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    #FAF7F2 0%,
    #FAF7F2 24%,
    rgba(250,247,242,0.90) 36%,
    rgba(250,247,242,0.50) 50%,
    rgba(250,247,242,0.10) 65%,
    transparent 78%
  );
}

.hero__number {
  position: absolute;
  top: 12%;
  right: -2%;
  font-family: var(--font-numbers);
  font-weight: 300;
  font-size: clamp(10rem, 22vw, 22rem);
  color: rgba(45,27,53,0.04);
  z-index: 1;
  pointer-events: none;
  line-height: 1;
}

.hero__line {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--champagne);
  margin-bottom: 14px;
}

.hero__title {
  max-width: 620px;
  margin-bottom: 18px;
}

.hero__paragraph {
  max-width: 460px;
  margin-bottom: 40px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--texto);
  opacity: 0.72;
}

.hero__actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero__trust {
  margin-top: 20px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  color: var(--texto);
  opacity: 0.5;
  background: transparent;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  transition: opacity 0.4s ease;
}

.hero__scroll-indicator span {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--suave);
}

.hero__scroll-indicator .line {
  width: 1px;
  height: 36px;
  background: var(--mauve);
  overflow: hidden;
  position: relative;
}

.hero__scroll-indicator .line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--cafe-oscuro);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 0; }
  100% { top: 100%; }
}

.hero__scroll-indicator.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Custom cursor (desktop only) ---------- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mauve);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
  mix-blend-mode: normal;
}

.cursor-dot.grow {
  width: 24px;
  height: 24px;
  background: rgba(124,92,122,0.5);
}

/* ============================================
   RESPONSIVE — NAV & HERO
   ============================================ */
@media (max-width: 1023px) {
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }
}

@media (max-width: 767px) {
  .nav__cta {
    display: none;
  }
  .nav__cta-mobile {
    display: none;
  }
  .nav__inner {
    padding: 0 20px;
  }
  .nav__brand {
    min-width: 0;
    flex-shrink: 1;
  }
  .nav__brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav__mobile-actions {
    flex-shrink: 0;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 100vh;
  }
  .hero-bg-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
  }
  .hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 40px 24px 60px;
    background: transparent;
  }
  .hero-bg-overlay {
    background: linear-gradient(
      to bottom,
      rgba(250,247,242,0.15) 0%,
      rgba(250,247,242,0.7) 45%,
      rgba(250,247,242,0.97) 65%,
      #FAF7F2 100%
    );
  }
  .hero__number {
    display: none;
  }
  .hero__paragraph {
    max-width: none;
  }
  .cursor-dot {
    display: none;
  }
  .hero__scroll-indicator {
    display: none;
  }
  .hero__trust {
    background: transparent;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    padding: 0 32px;
  }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  background: var(--cafe-oscuro);
  height: 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  padding: 0 20px;
}

.marquee-track span::after {
  content: '·';
  color: var(--champagne);
  margin-left: 20px;
}

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

/* ============================================
   STATS
   ============================================ */
.stats {
  background: var(--ivory);
  padding: 90px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats__item {
  text-align: center;
  padding: 0 20px;
  border-left: 1px solid rgba(124,92,122,0.1);
}

.stats__item:first-child {
  border-left: none;
}

.stats__number {
  font-family: var(--font-numbers);
  font-weight: 300;
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--cafe-oscuro);
  line-height: 1;
  margin-bottom: 12px;
}

.stats__label {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto);
  opacity: 0.65;
}

@media (max-width: 767px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }
  .stats__item:nth-child(3) {
    border-left: none;
  }
}

/* ============================================
   QUIÉN SOY
   ============================================ */
.quien-soy {
  background: var(--cafe-oscuro);
  padding: 120px 0;
  overflow: hidden;
}

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

.quien-soy__text h2 {
  color: var(--blanco);
  font-size: clamp(36px, 3.8vw, 52px);
  margin-bottom: 30px;
}

.quien-soy__text h2 em {
  color: var(--mauve-light);
}

.quien-soy__text p {
  color: rgba(250,247,242,0.75);
  font-size: 15px;
  line-height: 2;
  margin-bottom: 26px;
}

.quien-soy__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 72;
  -webkit-font-smoothing: antialiased;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(250,247,242,0.6);
  margin-top: 34px;
  padding-left: 20px;
  border-left: 1px solid var(--champagne);
}

.quien-soy__photo {
  position: relative;
  z-index: 1;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(196,168,118,0.25), 0 40px 80px rgba(0,0,0,0.35);
}

.quien-soy__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201,168,118,0.45);
  border-radius: 2px;
  transform: translate(14px, 14px);
  z-index: -1;
}

.quien-soy__photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.quien-soy__photo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.06) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: photoShine 6s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}

@keyframes photoShine {
  0% { background-position: -100% 0; }
  50% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.quien-soy__photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(160deg, rgba(124,92,122,0.12) 0%, transparent 60%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.quien-soy__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  filter: contrast(1.08) brightness(0.97) saturate(0.85);
}

@media (max-width: 1023px) {
  .quien-soy__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .quien-soy__photo {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .quien-soy {
    padding: 80px 0;
  }
}

/* ============================================
   SERVICIOS
   ============================================ */
.servicios {
  background: var(--ivory-alt);
  padding: 120px 0;
}

.servicios__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  margin-bottom: 60px;
  border-bottom: 1px solid rgba(124,92,122,0.15);
  align-items: end;
}

.servicios__header h2 {
  margin: 0;
}

.servicios__header p {
  color: var(--suave);
  max-width: 440px;
}

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.serv-card {
  position: relative;
  overflow: hidden;
  background: #EDE6E0;
  border: 1px solid rgba(201,168,118,0.15);
  border-radius: 4px;
  padding: 36px 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.4s cubic-bezier(0.23,1,0.32,1);
  transform-style: preserve-3d;
}

.serv-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.25;
  transition: all 0.4s ease;
}

.serv-card::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.18;
  transition: all 0.4s ease;
}

.serv-card:nth-child(1) { color: #C4887A; border-top: 2px solid #C4887A; }
.serv-card:nth-child(2) { color: #8B4A6A; border-top: 2px solid #8B4A6A; }
.serv-card:nth-child(3) { color: #6B4C8A; border-top: 2px solid #6B4C8A; }
.serv-card:nth-child(4) { color: #4A6B8A; border-top: 2px solid #4A6B8A; }
.serv-card:nth-child(5) { color: #C4877A; border-top: 2px solid #C4877A; }
.serv-card:nth-child(6) { color: #7A8B6A; border-top: 2px solid #7A8B6A; }
.serv-card:nth-child(7) { color: #8A6B4A; border-top: 2px solid #8A6B4A; }
.serv-card:nth-child(8) { color: #6A7A8A; border-top: 2px solid #6A7A8A; }

.serv-card__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.serv-card__num {
  position: relative;
  z-index: 2;
  display: block;
  font-family: var(--font-numbers);
  font-size: 60px;
  font-weight: 300;
  color: currentColor;
  opacity: 0.55;
  line-height: 1;
  margin-bottom: 16px;
  transition: opacity 0.4s ease;
}

.serv-card__line {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 2px;
  background: currentColor;
  opacity: 0.7;
  margin-bottom: 16px;
  transition: width 0.5s cubic-bezier(0.25,0.46,0.45,0.94),
              opacity 0.4s ease;
}

.serv-card__title {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: #1E1220;
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color 0.4s ease;
}

.serv-card__desc {
  position: relative;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 300;
  color: #5A4A55;
  line-height: 1.8;
  margin: 0;
  transition: color 0.4s ease;
}

.serv-card:hover {
  background: var(--cafe-oscuro, #2D1B35);
  border-color: rgba(201,168,118,0.3);
  box-shadow: 0 24px 60px rgba(45,27,53,0.35);
  transform: translateY(-6px);
}

.serv-card:hover::before {
  opacity: 0.3;
  transform: scale(1.1);
}

.serv-card:hover::after {
  opacity: 0.3;
  transform: scale(1.15);
}

.serv-card:hover .serv-card__num {
  opacity: 0.5;
  color: var(--champagne);
}

.serv-card:hover .serv-card__line {
  width: 100%;
  opacity: 0.4;
  background: var(--champagne);
}

.serv-card:hover .serv-card__title {
  color: white;
}

.serv-card:hover .serv-card__desc {
  color: rgba(250,247,242,0.7);
}

@media (max-width: 1023px) {
  .servicios__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .servicios__header {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .servicios {
    padding: 80px 0;
  }
  .servicios__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FORMACIÓN
   ============================================ */
.formacion {
  background: var(--ivory);
  padding: 120px 0;
}

.formacion__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
}

.formacion__timeline {
  position: relative;
  padding-left: 34px;
}

.formacion__timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  width: 1px;
  height: 0;
  background: var(--champagne);
  transition: height 1.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

.formacion__timeline.in-view::before {
  height: calc(100% - 12px);
}

.formacion__item {
  position: relative;
  padding-bottom: 46px;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}

.formacion__item.visible {
  opacity: 1;
  transform: translateX(0);
}

.formacion__item:last-child {
  padding-bottom: 0;
}

.formacion__item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--champagne);
}

.formacion__years {
  font-family: var(--font-numbers);
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--champagne);
  display: block;
  margin-bottom: 6px;
}

.formacion__item h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.formacion__item span.formacion__inst {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--suave);
  letter-spacing: 0.02em;
}

.formacion__cedulas {
  margin-top: 50px;
  border-top: 1px solid rgba(124,92,122,0.15);
  padding-top: 30px;
}

.formacion__cedulas table {
  width: 100%;
  border-collapse: collapse;
}

.formacion__cedulas td {
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 12px;
  border-bottom: 1px solid rgba(124,92,122,0.08);
}

.formacion__cedulas td:first-child {
  color: var(--suave);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
}

.formacion__cedulas td:last-child {
  text-align: right;
}

.formacion__cedulas a {
  color: var(--mauve);
  border-bottom: 1px solid rgba(124,92,122,0.3);
  transition: border-color 0.3s ease;
}

.formacion__cedulas a:hover {
  border-color: var(--mauve);
}

.formacion__photo {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(201,168,118,0);
  border-radius: 4px;
  min-height: 480px;
}

.formacion__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201,168,118,0.3);
  border-radius: 4px;
  transform: translate(12px, 12px);
  z-index: -1;
}

.formacion__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  border-radius: 4px;
  filter: contrast(1.08) brightness(0.96) saturate(0.85);
}

.formacion__photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(
    to top,
    rgba(45,27,53,0.75) 0%,
    rgba(45,27,53,0.2) 60%,
    transparent 100%
  );
  pointer-events: none;
}

.formacion__caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 72;
  -webkit-font-smoothing: antialiased;
  color: rgba(250,247,242,0.85);
  font-size: 18px;
  letter-spacing: 0.02em;
}

@media (max-width: 1023px) {
  .formacion__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .formacion__photo {
    min-height: 340px;
    order: -1;
  }
}

@media (max-width: 767px) {
  .formacion {
    padding: 80px 0;
  }
}

/* ============================================
   CONTACTO
   ============================================ */
.contacto {
  background: var(--cafe-oscuro);
  padding: 120px 0;
}

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

.contacto__info h2 {
  color: var(--blanco);
  margin-bottom: 44px;
}

.contacto__row {
  padding: 22px 0;
  border-top: 1px solid rgba(250,247,242,0.12);
}

.contacto__row:last-child {
  border-bottom: 1px solid rgba(250,247,242,0.12);
}

.contacto__row-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne);
  opacity: 1;
  margin-bottom: 8px;
}

.contacto__row-value {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  color: rgba(250,247,242,0.85);
}

.contacto__row-value a {
  transition: color 0.3s ease;
}

.contacto__row-value a:hover {
  color: var(--mauve-light);
}

.contacto__row-note {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-style: italic;
  color: rgba(250,247,242,0.45);
}

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

.btn--whatsapp {
  background: #25D366;
  color: var(--blanco);
  padding: 18px 36px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 3px;
  width: 100%;
}

.btn--whatsapp:hover {
  background: #1fb959;
  transform: translateY(-2px);
}

.btn--whatsapp__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.contacto__whatsapp-note {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  opacity: 0.4;
  text-align: center;
  color: var(--ivory);
}

.contacto__map {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  filter: grayscale(50%);
  aspect-ratio: 4/3;
}

.contacto__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contacto__map-tint {
  position: absolute;
  inset: 0;
  background: rgba(45,27,53,0.15);
  mix-blend-mode: multiply;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .contacto__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 767px) {
  .contacto {
    padding: 80px 0;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--cafe-oscuro);
  padding: 70px 0 30px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 40px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__brand img {
  width: 48px;
  height: auto;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 72;
  -webkit-font-smoothing: antialiased;
  color: #FAF7F2 !important;
  font-size: 17px;
  opacity: 1 !important;
}

.footer__brand-sub {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(250,247,242,0.6) !important;
  opacity: 1 !important;
  margin-top: 4px;
}

.footer__links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.footer__links a,
.footer a {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(250,247,242,0.55) !important;
  opacity: 1 !important;
  transition: color 0.3s ease;
}

.footer__links a:hover,
.footer a:hover {
  color: var(--champagne) !important;
}

.footer__bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__copyright,
.footer p,
.footer span {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 11px;
  color: rgba(250,247,242,0.35) !important;
  opacity: 1 !important;
}

.footer__cedulas {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 11px;
  color: rgba(250,247,242,0.35) !important;
  opacity: 1 !important;
}

@media (max-width: 767px) {
  .footer__top,
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   WHATSAPP FLOTANTE
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,0.4);
  animation: whatsappPulse 2.4s ease-in-out infinite;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: var(--blanco);
}

.whatsapp-float__tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--cafe-oscuro);
  color: var(--ivory);
  padding: 8px 14px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 767px) {
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float__tooltip {
    display: none;
  }
}

/* ============================================
   PÁGINA LEGAL (Aviso de privacidad)
   ============================================ */
.legal {
  background: var(--ivory);
  padding: 160px 0 120px;
}

.legal__content {
  max-width: 760px;
}

.legal__content h1 {
  margin-bottom: 10px;
}

.legal__updated {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--suave);
  margin-bottom: 44px;
}

.legal__content h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 72;
  -webkit-font-smoothing: antialiased;
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 14px;
}

.legal__content p {
  margin-bottom: 18px;
}

.legal__content ul {
  margin: 0 0 20px;
}

.legal__content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
}

.legal__content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mauve);
}

@media (max-width: 767px) {
  .legal {
    padding: 130px 0 80px;
  }
}
