/* ============================================================
   DRA. SONIA REVELO SALTOS — Sitio Web
   styles.css — Rediseño 2026 · base clara + bandas moradas
   ============================================================ */

/* ─── Custom Properties ────────────────────────────────────── */
:root {
  /* Paleta oficial (Pantone) */
  --color-primary:     #603259;   /* Pantone 519 C  */
  --color-secondary:   #955e84;   /* Pantone 5135 C */
  --color-accent:      #cdafc7;   /* Pantone 523 C  */
  --color-light:       #e2dce0;   /* Pantone 664 C  */
  --color-blush:       #e5d3d3;   /* Pantone 7604 C */
  --color-dark-mauve:  #83697d;   /* Pantone 5205 C */
  --color-deep:        #3d1f38;

  /* Neutros */
  --color-white:       #ffffff;
  --color-bg:          #fdfbfc;
  --color-bg-soft:     #f7f2f6;
  --color-text:        #2d1f2b;
  --color-text-light:  #6b5069;

  /* Sombras de marca */
  --shadow-sm:  0 2px 12px rgba(96,50,89,.08);
  --shadow-md:  0 10px 40px rgba(96,50,89,.12);
  --shadow-lg:  0 24px 70px rgba(96,50,89,.16);
  --shadow-xl:  0 40px 100px rgba(96,50,89,.22);

  /* Radios */
  --radius-sm:  10px;
  --radius-md:  18px;
  --radius-lg:  28px;
  --radius-xl:  44px;

  /* Transiciones */
  --ease-out:    cubic-bezier(.16,1,.3,1);
  --transition:  .35s var(--ease-out);
  --transition-slow: .7s var(--ease-out);

  /* Tipografías */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --header-h: 84px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; transition: var(--transition); }
ul  { list-style: none; }
button { font-family: inherit; }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* ─── Utilidades tipográficas ──────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-secondary);
}
.section-tag::before {
  content: "";
  width: 34px; height: 2px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--color-primary);
  margin-top: .9rem;
}
.section-title em {
  font-style: italic;
  color: var(--color-secondary);
}

.section-subtitle {
  max-width: 620px;
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--color-text-light);
}

/* ─── Animaciones de scroll ────────────────────────────────── */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  will-change: opacity, transform;
}
.reveal        { transform: translateY(36px); }
.reveal-left   { transform: translateX(-44px); }
.reveal-right  { transform: translateX(44px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: none;
}
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }
.delay-5 { transition-delay: .40s; }
.delay-6 { transition-delay: .48s; }

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

/* ─── Botones ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  box-shadow: 0 10px 28px rgba(96,50,89,.32);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(96,50,89,.42);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-3px);
}
.btn-white {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.btn-whatsapp {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-dark-mauve));
  color: #fff;
  box-shadow: 0 10px 28px rgba(149,94,132,.35);
}
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(149,94,132,.45); }

/* ═══════════════════════════════════════════════════════════
   TOP BAR
═══════════════════════════════════════════════════════════ */
.top-bar {
  background: var(--color-deep);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top-bar-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}
.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.top-bar-item svg { width: 13px; height: 13px; flex-shrink: 0; }
.top-bar a:hover { color: var(--color-accent); }
.top-bar-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.top-bar-social svg { width: 15px; height: 15px; fill: currentColor; }

/* ═══════════════════════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253,251,252,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(96,50,89,.07);
  transition: box-shadow .3s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}
.nav-logo img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.nav-logo-text { line-height: 1.25; }
.nav-logo-name {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-primary);
}
.nav-logo-role {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-dark-mauve);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  position: relative;
  font-size: .93rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--color-primary); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta { padding: 12px 24px; font-size: .88rem; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 26px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a:not(.btn) {
  padding: 13px 6px;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid rgba(96,50,89,.07);
}
.nav-mobile a:not(.btn):hover { color: var(--color-primary); padding-left: 12px; }
.nav-mobile .btn { margin-top: 16px; }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 88% 12%, rgba(205,175,199,.35), transparent 60%),
    radial-gradient(ellipse 45% 45% at 8% 90%, rgba(229,211,211,.5), transparent 65%),
    linear-gradient(160deg, var(--color-bg) 30%, var(--color-bg-soft) 100%);
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 5.5rem);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 1.4rem;
}
.hero-overline::before {
  content: "";
  width: 38px; height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5.6vw, 4.3rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--color-primary);
  letter-spacing: -.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--color-secondary);
}

.hero-tagline {
  margin-top: 1.4rem;
  max-width: 500px;
  font-size: 1.1rem;
  color: var(--color-text-light);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2.4rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(96,50,89,.14);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}
.hero-badge svg { width: 15px; height: 15px; color: var(--color-secondary); flex-shrink: 0; }

/* Visual */
.hero-visual { position: relative; }

.hero-photo-wrapper {
  position: relative;
  width: min(420px, 100%);
  margin-inline: auto;
}

.hero-photo {
  position: relative;
  z-index: 2;
  border-radius: 210px 210px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow-xl);
  background: linear-gradient(180deg, var(--color-light), var(--color-blush));
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: top center;
}

.hero-photo-ring {
  position: absolute;
  z-index: 1;
  inset: -26px -26px auto auto;
  width: 78%;
  aspect-ratio: 1;
  border: 2px dashed rgba(149,94,132,.45);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-blob {
  position: absolute;
  z-index: 0;
  inset: auto auto -34px -40px;
  width: 65%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--color-accent), var(--color-blush));
  border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
  opacity: .55;
  filter: blur(2px);
}

.hero-feather {
  position: absolute;
  z-index: 3;
  width: 92px;
  bottom: -18px;
  right: -14px;
  background: #fff;
  border-radius: 50%;
  padding: 14px;
  box-shadow: var(--shadow-md);
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-12px) rotate(4deg); }
}

/* ═══════════════════════════════════════════════════════════
   PAGE HERO (cabecera de páginas interiores)
═══════════════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 55% at 85% 0%, rgba(205,175,199,.35), transparent 60%),
    radial-gradient(ellipse 45% 45% at 10% 100%, rgba(229,211,211,.5), transparent 65%),
    linear-gradient(160deg, var(--color-bg) 30%, var(--color-bg-soft) 100%);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid rgba(96,50,89,.06);
}
.page-hero .section-tag { justify-content: center; }
.page-hero .section-tag::after {
  content: "";
  width: 34px; height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  border-radius: 2px;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--color-primary);
  margin-top: .9rem;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--color-secondary);
}
.page-hero-sub {
  max-width: 560px;
  margin: 1rem auto 0;
  font-size: 1.05rem;
  color: var(--color-text-light);
}

/* ═══════════════════════════════════════════════════════════
   STRIP DE DATOS (banda morada)
═══════════════════════════════════════════════════════════ */
.strip {
  background: linear-gradient(120deg, var(--color-deep), var(--color-primary) 55%, var(--color-secondary));
  color: #fff;
  padding: 2.6rem 0;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}
.strip-value {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
}
.strip-label {
  font-size: .82rem;
  color: rgba(255,255,255,.82);
  line-height: 1.4;
}
.strip-item + .strip-item { border-left: 1px solid rgba(255,255,255,.16); }

/* ═══════════════════════════════════════════════════════════
   SOBRE MÍ
═══════════════════════════════════════════════════════════ */
.about { padding: clamp(4.5rem, 8vw, 7.5rem) 0; background: var(--color-bg); }

.about-inner {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.about-photo-col { position: relative; }
.about-photo {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  object-position: top center;
}
.about-photo-frame {
  position: absolute;
  z-index: 0;
  inset: 26px -26px -26px 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-accent), var(--color-blush));
  opacity: .6;
}
.about-logo-badge {
  position: absolute;
  z-index: 2;
  right: -18px;
  top: -18px;
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: #fff;
}
.about-logo-badge img { width: 100%; height: 100%; object-fit: cover; }

.about-text {
  margin-top: 1.4rem;
  font-size: 1.06rem;
  color: var(--color-text-light);
}
.about-text strong { color: var(--color-primary); font-weight: 600; }
.about-quote {
  margin-top: 1.6rem;
  padding: 1.2rem 1.6rem;
  border-left: 3px solid var(--color-secondary);
  background: var(--color-bg-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--color-primary);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 2.2rem;
}
.about-stat {
  background: #fff;
  border: 1px solid rgba(96,50,89,.1);
  border-radius: var(--radius-md);
  padding: 1.2rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.about-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.about-stat-value {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}
.about-stat-label {
  font-size: .78rem;
  color: var(--color-text-light);
  margin-top: 4px;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════
   TRAYECTORIA
═══════════════════════════════════════════════════════════ */
.trayectoria {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(205,175,199,.22), transparent 60%),
    var(--color-bg-soft);
}

.trayectoria-header { max-width: 640px; margin-bottom: 3rem; }

.trayectoria-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 8px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 27px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  display: flex;
  gap: 22px;
  padding: 0 0 2rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-icon {
  position: relative;
  z-index: 1;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-secondary);
  display: grid;
  place-items: center;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.timeline-icon svg { width: 18px; height: 18px; }
.timeline-body {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(96,50,89,.08);
  box-shadow: var(--shadow-sm);
  padding: 1.15rem 1.4rem;
  flex: 1;
  transition: var(--transition);
}
.timeline-body:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.timeline-year {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-secondary);
}
.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 3px 0 4px;
}
.timeline-desc { font-size: .89rem; color: var(--color-text-light); }

/* Diplomados */
.diplomados {
  background: linear-gradient(160deg, var(--color-primary), var(--color-deep));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.diplomados-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
}
.diplomado-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.diplomado-item:last-of-type { border-bottom: none; }
.diplomado-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  display: grid;
  place-items: center;
  color: var(--color-accent);
}
.diplomado-icon svg { width: 17px; height: 17px; }
.diplomado-text { font-size: .84rem; color: rgba(255,255,255,.78); line-height: 1.5; }
.diplomado-text strong { display: block; color: #fff; font-size: .92rem; margin-bottom: 1px; }

.idiomas {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.16);
}
.idiomas h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .9rem;
}
.idiomas-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.idiomas-chips span {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
}

/* ═══════════════════════════════════════════════════════════
   SERVICIOS
═══════════════════════════════════════════════════════════ */
.servicios { padding: clamp(4.5rem, 8vw, 7.5rem) 0; background: var(--color-bg); }

.servicios-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.2rem;
}
.servicios-header .section-tag { justify-content: center; }
.servicios-header .section-tag::after {
  content: "";
  width: 34px; height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  border-radius: 2px;
}
.servicios-header .section-subtitle { margin-inline: auto; }

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

.servicio-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(96,50,89,.09);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}
.servicio-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: var(--transition);
}
.servicio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(96,50,89,.18);
}
.servicio-card:hover::before { opacity: 1; }

.servicio-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(96,50,89,.09), rgba(205,175,199,.25));
  display: grid;
  place-items: center;
  color: var(--color-primary);
  margin-bottom: 1.2rem;
  transition: var(--transition);
}
.servicio-icon svg { width: 26px; height: 26px; }
.servicio-card:hover .servicio-icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  transform: scale(1.06) rotate(-4deg);
}

.servicio-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: .5rem;
}
.servicio-desc { font-size: .87rem; color: var(--color-text-light); }

/* ═══════════════════════════════════════════════════════════
   ¿POR QUÉ ELEGIRME? (banda morada)
═══════════════════════════════════════════════════════════ */
.porque {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  background: linear-gradient(135deg, var(--color-deep) 0%, var(--color-primary) 60%, #7a4470 100%);
  color: #fff;
  overflow: hidden;
}
.porque::before {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,.14);
  top: -190px; right: -130px;
}
.porque::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205,175,199,.18), transparent 70%);
  bottom: -110px; left: -70px;
}

.porque-header { text-align: center; max-width: 640px; margin: 0 auto 3.2rem; position: relative; z-index: 1; }
.porque-header .section-tag { color: var(--color-accent); justify-content: center; }
.porque-header .section-tag::before,
.porque-header .section-tag::after { background: var(--color-accent); }
.porque-header .section-tag::after { content: ""; width: 34px; height: 2px; border-radius: 2px; }
.porque-header .section-title { color: #fff; }
.porque-header .section-subtitle { color: rgba(255,255,255,.78); margin-inline: auto; }

.porque-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.porque-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.porque-card:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.28);
}
.porque-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,.14);
  display: grid;
  place-items: center;
  color: var(--color-accent);
  margin-bottom: 1.2rem;
}
.porque-icon svg { width: 24px; height: 24px; }
.porque-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.porque-desc { font-size: .86rem; color: rgba(255,255,255,.75); }

/* ═══════════════════════════════════════════════════════════
   TURNOS / CTA
═══════════════════════════════════════════════════════════ */
.turnos { padding: clamp(4.5rem, 8vw, 7rem) 0; background: var(--color-bg); }

.turnos-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 55% 65% at 90% 10%, rgba(205,175,199,.4), transparent 60%),
    linear-gradient(135deg, var(--color-bg-soft), var(--color-light));
  border: 1px solid rgba(96,50,89,.1);
  box-shadow: var(--shadow-md);
  padding: clamp(2.8rem, 6vw, 4.5rem);
  text-align: center;
}
.turnos-feather {
  position: absolute;
  width: 150px;
  opacity: .16;
  top: -18px; left: -14px;
  transform: rotate(-18deg);
  pointer-events: none;
}
.turnos-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 600;
  color: var(--color-primary);
  margin-top: .9rem;
}
.turnos-inner .section-subtitle { margin-inline: auto; }
.turnos-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 2.2rem;
}

/* ═══════════════════════════════════════════════════════════
   CONTACTO
═══════════════════════════════════════════════════════════ */
.contacto {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  background:
    radial-gradient(ellipse 45% 40% at 0% 100%, rgba(229,211,211,.35), transparent 60%),
    var(--color-bg-soft);
}

.contacto-header { text-align: center; max-width: 620px; margin: 0 auto 3.2rem; }
.contacto-header .section-tag { justify-content: center; }
.contacto-header .section-tag::after {
  content: "";
  width: 34px; height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  border-radius: 2px;
}
.contacto-header .section-subtitle { margin-inline: auto; }

.contacto-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

/* Formulario */
.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(96,50,89,.08);
  box-shadow: var(--shadow-md);
  padding: clamp(1.8rem, 4vw, 2.8rem);
}
.form-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.6rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .93rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid rgba(96,50,89,.14);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: var(--transition);
  outline: none;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(149,94,132,.12);
  background: #fff;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #b3a0af; }
.form-submit { width: 100%; margin-top: .4rem; padding: 15px 30px; }

/* Info de contacto */
.contact-info { display: flex; flex-direction: column; gap: 20px; }

.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(96,50,89,.08);
  box-shadow: var(--shadow-sm);
  padding: 1.8rem;
}
.contact-info-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.2rem;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: .7rem 0;
}
.contact-item + .contact-item { border-top: 1px solid rgba(96,50,89,.07); }
.contact-item-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(96,50,89,.08), rgba(205,175,199,.22));
  display: grid;
  place-items: center;
  color: var(--color-primary);
}
.contact-item-icon svg { width: 19px; height: 19px; }
.contact-item-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-dark-mauve);
}
.contact-item-value { font-size: .95rem; font-weight: 500; color: var(--color-text); }
.contact-item-value a:hover { color: var(--color-secondary); }

.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 1.2rem;
}
.contact-social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.contact-social a:hover { transform: translateY(-4px) scale(1.05); box-shadow: var(--shadow-md); }
.contact-social svg { width: 19px; height: 19px; fill: currentColor; }

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid #fff;
  line-height: 0;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER (banda morada profunda)
═══════════════════════════════════════════════════════════ */
.footer {
  background: linear-gradient(160deg, var(--color-deep), #33192e);
  color: rgba(255,255,255,.78);
  padding: 4.5rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
}

.footer-brand { max-width: 340px; }
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.1rem;
}
.footer-logo {
  width: 68px; height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.25);
}
.footer-logo-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.footer-logo-role {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.footer-tagline { font-size: .9rem; line-height: 1.7; }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 1.4rem;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  color: #fff;
}
.footer-social a:hover {
  background: var(--color-secondary);
  transform: translateY(-3px);
}
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.2rem;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-links a::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: .6;
  transition: var(--transition);
}
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-links a:hover::before { opacity: 1; }

.footer-contact-list { display: flex; flex-direction: column; gap: 14px; font-size: .89rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 11px; }
.footer-contact-item svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-cta { margin-top: 1.5rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.6rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.footer-copyright { font-size: .8rem; }
.footer-disclaimer { font-size: .74rem; color: rgba(255,255,255,.45); }

/* ═══════════════════════════════════════════════════════════
   CARRUSEL DE INSTITUCIONES (MARQUEE)
═══════════════════════════════════════════════════════════ */
.institutions-carousel {
  background-color: var(--color-bg);
  padding: 4rem 0 3rem;
  overflow: hidden;
}
.institutions-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-primary);
  opacity: 0.8;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}
.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 3rem;
  /* Fade en los bordes para un look premium */
  mask-image: linear-gradient(
    to right,
    hsl(0 0% 0% / 0),
    hsl(0 0% 0% / 1) 10%,
    hsl(0 0% 0% / 1) 90%,
    hsl(0 0% 0% / 0)
  );
  -webkit-mask-image: linear-gradient(
    to right,
    hsl(0 0% 0% / 0),
    hsl(0 0% 0% / 1) 10%,
    hsl(0 0% 0% / 1) 90%,
    hsl(0 0% 0% / 0)
  );
}
.marquee-track {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: scrollX 30s linear infinite;
}
.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.marquee-item:hover {
  opacity: 1;
}
.inst-img {
  max-height: 55px;
  width: auto;
  object-fit: contain;
  /* Efecto unificado en gris que se enciende al hacer hover (opcional, pero queda premium) */
  filter: grayscale(100%) opacity(0.8);
  transition: filter 0.3s ease;
}
.marquee-item:hover .inst-img {
  filter: grayscale(0%) opacity(1);
}
.inst-img.invert {
  filter: invert(1) grayscale(100%) opacity(0.8);
}
.marquee-item:hover .inst-img.invert {
  filter: invert(1) grayscale(0%) opacity(1);
}

@keyframes scrollX {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 1.5rem));
  }
}

/* ═══════════════════════════════════════════════════════════
   FLOTANTES
═══════════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  z-index: 1200;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  border-radius: 100px;
  padding: 13px 20px;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(96,50,89,.4);
  animation: pulse 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.06); animation-play-state: paused; }
.whatsapp-float svg { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 12px 32px rgba(96,50,89,.4), 0 0 0 0 rgba(149,94,132,.45); }
  50%      { box-shadow: 0 12px 32px rgba(96,50,89,.4), 0 0 0 14px rgba(149,94,132,0); }
}

.back-to-top {
  position: fixed;
  z-index: 1100;
  right: 26px;
  bottom: 92px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { order: 1; }
  .hero-visual { order: 0; }
  .hero-overline { justify-content: center; }
  .hero-tagline { margin-inline: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-photo-wrapper { width: min(360px, 86%); }

  .strip-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .strip-item + .strip-item { border-left: none; }
  .strip-item:nth-child(even) { border-left: 1px solid rgba(255,255,255,.16); }

  .about-inner { grid-template-columns: 1fr; }
  .about-photo-col { max-width: 440px; margin-inline: auto; }

  .trayectoria-inner { grid-template-columns: 1fr; }
  .diplomados { position: static; }

  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .porque-grid { grid-template-columns: repeat(2, 1fr); }

  .contacto-inner { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  :root { --header-h: 74px; }
  .nav-logo img { width: 48px; height: 48px; }
}

@media (max-width: 640px) {
  .top-bar-info { gap: 12px; }
  .top-bar-item.top-bar-mail { display: none; }

  .hero-feather { width: 72px; right: 0; }

  .servicios-grid { grid-template-columns: 1fr; }
  .porque-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-value { font-size: 1.7rem; }
  .strip-item { flex-direction: column; text-align: center; gap: 6px; }
  .strip-item:nth-child(even) { border-left: none; }

  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .about-stat { padding: .9rem .5rem; }
  .about-stat-value { font-size: 1.5rem; }
  .about-logo-badge { width: 76px; height: 76px; right: -8px; }

  .timeline::before { left: 19px; }
  .timeline-icon { width: 32px; height: 32px; }
  .timeline-icon svg { width: 14px; height: 14px; }
  .timeline-item { gap: 14px; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .whatsapp-float .wa-text { display: none; }
  .whatsapp-float { padding: 14px; border-radius: 50%; }
  .back-to-top { bottom: 86px; right: 20px; }
}
