/* ==========================================
   DR. TREVIÑO CARDIO — Versión Luz
   Estética: Medical Precision White
   Fondo blanco · Azul marino · Detalles rojo
   ========================================== */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

:root {
  --navy: #0F2952;
  --navy-mid: #1A3F7A;
  --navy-light: #2A5298;
  --navy-subtle: rgba(15, 41, 82, 0.06);
  --navy-border: rgba(15, 41, 82, 0.12);
  --crimson: #C0392B;
  --crimson-light: #E74C3C;
  --crimson-subtle: rgba(192, 57, 43, 0.07);
  --crimson-border: rgba(192, 57, 43, 0.18);
  --bg: #FFFFFF;
  --bg-off: #F7F9FC;
  --bg-card: #FFFFFF;
  --bg-surface: #F0F4FA;
  --border: rgba(15, 41, 82, 0.1);
  --text-primary: #0A1929;
  --text-secondary: #4A637A;
  --text-muted: #8EA4BA;
  --white: #FFFFFF;
  --nav-h: 72px;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 12px rgba(15, 41, 82, 0.07);
  --shadow-md: 0 8px 32px rgba(15, 41, 82, 0.1);
  --shadow-lg: 0 20px 60px rgba(15, 41, 82, 0.12);

  /* Font Default Tokens */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

/* THEME: Original */
body[data-theme="original"] {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

/* THEME: Modern */
body[data-theme="modern"] {
  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* THEME: Trust */
body[data-theme="trust"] {
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* THEME: Authority */
body[data-theme="authority"] {
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
}

/* THEME: Vanguard */
body[data-theme="vanguard"] {
  --font-display: 'Sora', sans-serif;
  --font-body: 'Manrope', sans-serif;
}

/* THEME: Pure */
body[data-theme="pure"] {
  --font-display: 'Public Sans', sans-serif;
  --font-body: 'Public Sans', sans-serif;
}

/* THEME: Sophisticated */
body[data-theme="sophisticated"] {
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
}

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

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

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

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--navy);
  border-radius: 2px;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: transparent;
  transition: all var(--transition);
  z-index: 1000;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav.scrolled .logo-mark {
  color: var(--crimson);
}

.nav.scrolled .nav-logo span:last-child {
  color: var(--navy);
}

.nav.scrolled .nav-links a {
  color: var(--text-main);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.logo-mark {
  color: var(--crimson);
  font-size: 1.4rem;
  animation: heartbeat 2.5s ease-in-out infinite;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.2);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.12);
  }

  56% {
    transform: scale(1);
  }
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-theme-toggle {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--navy-mid);
}

.nav-theme-toggle:hover {
  background: var(--white);
  border-color: var(--navy-light);
  box-shadow: var(--shadow-sm);
}

.theme-icon {
  width: 24px;
  height: 24px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.7rem;
}

.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 500 !important;
  transition: all var(--transition) !important;
}

.nav-cta:hover {
  background: var(--navy-mid) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15, 41, 82, 0.25) !important;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  width: 24px;
  height: 1.5px;
  background: var(--navy);
  border-radius: 1px;
  transition: var(--transition);
  display: block;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: 32px 24px 40px;
  display: none;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-100%);
  transition: transform var(--transition);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mm-link {
  display: block;
  padding: 14px 0;
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.mm-link:hover {
  color: var(--navy);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.mm-theme-btn {
  margin-top: 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  color: var(--navy);
  cursor: pointer;
}

.mm-social {
  display: flex;
  gap: 20px;
  margin-top: 24px;
}

.mm-social a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.mm-social a:hover {
  color: var(--crimson);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 41, 82, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--navy-border);
}

.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--navy-subtle);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 16px 28px;
  border-radius: var(--radius);
}

.btn-whatsapp:hover {
  background: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  top: -150px;
  right: -150px;
  background: radial-gradient(circle, rgba(15, 41, 82, 0.07) 0%, transparent 70%);
  animation: orbFloat1 10s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  bottom: 0;
  left: -100px;
  background: radial-gradient(circle, rgba(42, 82, 152, 0.05) 0%, transparent 70%);
  animation: orbFloat2 12s ease-in-out infinite;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  top: 40%;
  right: 20%;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.04) 0%, transparent 70%);
  animation: orbFloat2 7s ease-in-out infinite reverse;
}

@keyframes orbFloat1 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-20px, 30px);
  }
}

@keyframes orbFloat2 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(15px, -20px);
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--navy-border) 1px, transparent 1px), linear-gradient(90deg, var(--navy-border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 40%, rgba(0, 0, 0, 0.07) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-light);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--crimson);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--crimson);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 36px;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* CLINICAL CARD (Right Side) */
.hero-clinical-card {
  background: var(--white);
  border-radius: 24px;
  padding: 44px;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.clinical-card-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.focus-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crimson);
  font-weight: 600;
  margin-bottom: 24px;
}

.focus-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.focus-list li {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform var(--transition);
}

.focus-list li:hover {
  transform: translateX(5px);
  color: var(--crimson);
}

.focus-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.doctor-photo-wrap {
  position: relative;
}

.doctor-photo {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(15, 41, 82, 0.15));
  transform: scale(1.2) translateY(15px);
}

/* Floating Credentials */
.credentials-floating {
  position: absolute;
  bottom: -40px;
  left: -10px;
  right: -10px;
  display: flex;
  gap: 15px;
  z-index: 10;
}

.cred-card {
  flex: 1;
  background: var(--bg-off);
  padding: 18px 22px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all var(--transition);
  animation: badgeFloat 4s ease-in-out infinite;
}

.cred-high-specialty {
  animation-delay: 0.5s;
}

.cred-card:hover {
  transform: translateY(-5px);
}

.cred-icon {
  font-size: 1.4rem;
}

.cred-info strong {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.cred-info span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 6px;
}

.cred-info small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@keyframes badgeFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  writing-mode: vertical-lr;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--navy-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.8;
  }
}

/* SECTIONS */
.section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 56px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-light);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-tag::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--crimson);
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.15;
}

.section-desc {
  margin-top: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ESPECIALIDADES */
.especialidades {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.esp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.esp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.esp-card:hover {
  border-color: rgba(15, 41, 82, 0.22);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.esp-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 32px;
  border-top: 3px solid var(--crimson);
}

.esp-featured .esp-icon {
  grid-row: 1 / 2;
  grid-column: 1;
  align-self: start;
}

.esp-featured .esp-label {
  grid-column: 2;
  align-self: end;
}

.esp-featured h3,
.esp-featured p {
  grid-column: 2;
}

.esp-featured .esp-bullets {
  grid-column: 1 / -1;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.esp-bullets li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
}

.esp-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--navy-light);
}

.esp-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--navy-subtle);
  border: 1px solid var(--navy-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.esp-icon svg {
  width: 26px;
  height: 26px;
}

.esp-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 8px;
}

.esp-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.2;
}

.esp-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* PACIENTES */
.pac-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pac-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.pac-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pac-card:hover {
  border-color: rgba(15, 41, 82, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pac-card:hover::after {
  transform: scaleX(1);
}

.pac-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  color: rgba(15, 41, 82, 0.05);
  position: absolute;
  top: 12px;
  right: 18px;
  line-height: 1;
}

.pac-icon {
  width: 44px;
  height: 44px;
  color: var(--navy);
  margin-bottom: 18px;
}

.pac-icon svg {
  width: 100%;
  height: 100%;
}

.pac-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.2;
}

.pac-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
}

.pac-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-light);
  background: var(--navy-subtle);
  border: 1px solid var(--navy-border);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}

/* CONSULTA */
.consulta {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.consulta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.consulta-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.consulta-card:hover {
  border-color: rgba(15, 41, 82, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.consulta-online {
  border-top: 3px solid var(--navy);
}

.consulta-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 4px;
  width: fit-content;
}

.consulta-badge-online {
  color: var(--navy);
  background: var(--navy-subtle);
  border-color: var(--navy-border);
}

.consulta-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
}

.consulta-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.consulta-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.consulta-card ul li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.consulta-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 600;
}

/* REDES */
.redes {
  border-bottom: 1px solid var(--border);
}

.redes-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: center;
}

.redes-visual {
  min-width: 0; /* TRUCO VITAL: Evita que Swiper deforme el grid en PC */
  width: 100%;
  position: relative;
}

.redes-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 16px;
  margin-top: 12px;
  line-height: 1.15;
}

.redes-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

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

.red-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.red-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.red-link:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  background: var(--bg-surface);
}

.red-link:hover svg {
  transform: scale(1.1);
}

/* Platform Specific Colors (Always on Icon) */
.red-tiktok svg {
  color: #000;
}

.red-tiktok:hover {
  color: #000;
  border-color: rgba(0, 0, 0, 0.2);
}

.red-instagram svg {
  color: #E1306C;
}

.red-instagram:hover {
  color: #E1306C;
  border-color: rgba(225, 48, 108, 0.3);
}

.red-facebook svg {
  color: #4267B2;
}

.red-facebook:hover {
  color: #4267B2;
  border-color: rgba(66, 103, 178, 0.3);
}

.red-youtube svg {
  color: #FF0000;
}

.red-youtube:hover {
  color: #FF0000;
  border-color: rgba(255, 0, 0, 0.3);
}

/* VIDEO SHOWCASE & SWIPER */
.redes-video-swiper {
  width: 100%;
  padding-bottom: 50px !important;
  overflow: visible !important;
}

.swiper-slide {
  height: auto !important;
  display: flex;
  justify-content: center;
  transition: opacity var(--transition);
}

/* Efecto de difuminado solo para móviles */
@media (max-width: 900px) {
  .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.4; /* Bajamos a 0.4 para que el contraste en móvil sea aún más premium */
  }
}

/* Opacidad completa para PC */
@media (min-width: 901px) {
  .swiper-slide, 
  .swiper-slide:not(.swiper-slide-active) {
    opacity: 1 !important;
  }
}

.video-card {
  width: 100%;
  max-width: 240px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all var(--transition);
}

.video-card:hover {
  transform: translateY(-8px);
  z-index: 10;
}

.video-mockup {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  background: #000;
}

.video-mockup video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
  z-index: 2;
}

.video-platform {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-left: 3px solid var(--crimson);
}

.swiper-pagination-bullet {
  background: var(--navy-light) !important;
  opacity: 0.3 !important;
}

.swiper-pagination-bullet-active {
  background: var(--crimson) !important;
  opacity: 1 !important;
  width: 24px !important;
  border-radius: 4px !important;
  transition: width 0.3s ease !important;
}

/* STICKY WHATSAPP */
.whatsapp-sticky {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all var(--transition);
}

.whatsapp-sticky svg {
  width: 30px;
  height: 30px;
}

.whatsapp-sticky:hover {
  transform: scale(1.1) translateY(-4px);
  background: #22c55e;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

@media (max-width: 600px) {
  .hero {
    padding: calc(var(--nav-h) + 40px) 24px 60px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

  .pac-grid {
    grid-template-columns: 1fr;
  }

  .redes-video-showcase {
    flex-direction: column;
    align-items: center;
  }

  .video-card {
    width: 100%;
    max-width: 320px;
  }

  .section {
    padding: 72px 0;
  }

  .consulta-card,
  .cta-card,
  .esp-card {
    padding: 24px;
  }

  .hero-scroll {
    display: none;
  }
}

/* CONTACTO */
.contacto {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contacto .section-tag {
  color: rgba(255, 255, 255, 0.4);
}

.contacto .section-tag::before {
  background: var(--crimson);
}

.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contacto-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 16px;
  margin-top: 12px;
  line-height: 1.15;
}

.contacto-text p {
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 36px;
  font-size: 0.95rem;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.info-icon {
  font-size: 1.2rem;
  margin-top: 2px;
}

.info-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 2px;
}

.info-item span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.cta-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--crimson), transparent);
}

.cta-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  margin-bottom: 24px;
}

.cta-note {
  text-align: center;
  font-size: 0.76rem !important;
  color: rgba(255, 255, 255, 0.25) !important;
  margin-top: 14px !important;
  margin-bottom: 0 !important;
}

/* FOOTER */
.footer {
  padding: 48px 0;
  background: #0A1F42;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.footer-disclaimer {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.28);
  max-width: 480px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.65);
}

.footer-copy {
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.18);
}

/* RESPONSIVE */
/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-right {
    display: block;
  }

  .hero-clinical-card {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  :root {
    --nav-h: 46px;
    /* Reducimos el alto del header para que sea más delgado */
  }

  .nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0;
  }

  .nav-inner {
    padding: 6px 12px;
  }

  .nav-logo {
    font-size: 1.15rem;
    /* Hacemos el texto más grande */
    font-weight: 700;
    /* Le damos más grosor para que destaque */
    gap: 4px;
    /* Reducimos un poco la separación del ícono para ganar espacio */
  }

  /* Agregamos esta regla específica para que el texto encaje bien y no se amontone */
  .nav-logo span:not(.logo-mark) {
    letter-spacing: -0.02em;
  }

  .nav-logo span:last-child {
    color: var(--navy);
  }

  .nav-burger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: flex;
  }

  /* Hero Fixes */
  .hero {
    padding-top: 80px;
  }

  .hero-content {
    width: 100%;
    padding: 0 10px;
    overflow: hidden;
  }

  .hero-title {
    font-size: 2.4rem !important;
    line-height: 1.1;
    margin-top: 15px;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    max-width: 100%;
  }

  .hero-stats {
    flex-direction: row;
    gap: 10px;
    justify-content: center;
  }

  .hero-stats .stat {
    flex: 1;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  /* Clinical Card Mobile */
  .hero-clinical-card {
    width: 100%;
    max-width: 100%;
    padding: 24px 16px;
    margin: 30px 0;
    box-sizing: border-box;
  }

  .clinical-card-content {
    grid-template-columns: 1.3fr 0.7fr;
    gap: 10px;
  }

  .doctor-photo-wrap {
    order: 0;
  }

  .doctor-photo {
    transform: scale(1) translateY(0);
    max-width: 100%;
    height: auto;
  }

  .focus-label {
    font-size: 0.55rem;
    margin-bottom: 10px;
  }

  .focus-list {
    gap: 6px;
  }

  .focus-list li {
    font-size: 0.65rem;
    gap: 5px;
  }

  .focus-icon {
    font-size: 0.9rem;
    width: 18px;
  }

  .credentials-floating {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    flex-direction: column;
    margin-top: 20px;
    width: 100%;
    gap: 10px;
  }

  .cred-card {
    padding: 10px 14px;
  }

  .cred-info span {
    font-size: 0.75rem;
  }

  /* Redes Mobile Overflow Fix */
  .redes-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    overflow: hidden;
    width: 100%;
    padding: 0;
  }

  .redes-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .red-link {
    width: 100%;
    box-sizing: border-box;
    font-size: 0.8rem;
    padding: 12px 15px;
    margin: 0;
  }

  .red-link:hover {
    transform: none;
  }

  /* Sections */
  .section-title {
    font-size: 1.75rem;
    text-align: center;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .esp-grid {
    grid-template-columns: 1fr;
  }

  .esp-featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .esp-featured .esp-icon,
  .esp-featured .esp-label,
  .esp-featured h3,
  .esp-featured p {
    grid-column: 1;
  }

  .esp-featured .esp-bullets {
    grid-template-columns: 1fr;
  }

  .pac-grid {
    grid-template-columns: 1fr;
  }

  .consulta-grid {
    grid-template-columns: 1fr;
  }

  .redes-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  /* Utilidades Premium para evitar desbordamiento solo en móvil */
  .container,
  .section,
  .hero,
  .esp-grid,
  .pac-grid {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .hero-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    margin: 24px 0;
  }

  .hero-actions .btn {
    flex: 1;
    padding: 12px 8px;
    font-size: 0.85rem;
    height: auto;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {

  /* Video Carousel Centering */
  .redes-visual {
    width: 100%;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
  }

  .redes-video-swiper {
    width: 100%;
    margin: 0 auto;
    display: block !important;
    visibility: visible !important;
    min-height: 380px;
  }

  .video-card {
    max-width: 260px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }

  .hero-clinical-card .focus-label {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }

  .hero-clinical-card .focus-list li {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    justify-content: center;
  }
}

/* THEME MODAL */
.theme-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 41, 82, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

.theme-modal.open {
  display: flex;
  opacity: 1;
}

.theme-modal-content {
  background: var(--white);
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition);
}

.theme-modal.open .theme-modal-content {
  transform: translateY(0);
}

.tm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.tm-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
}

.tm-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
}

.tm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.tm-option {
  background: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tm-option strong {
  display: block;
  font-size: 1rem;
  color: var(--navy);
}

.tm-option span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tm-option:hover {
  border-color: var(--navy-light);
  background: var(--white);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.tm-option.active {
  border-color: var(--crimson);
  background: var(--crimson-subtle);
  border-width: 2px;
}


/* Forzar imágenes a no romper el layout */
img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

/* Evita que los textos largos (como correos o links) rompan la pantalla */
p,
h1,
h2,
h3,
span {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* PLYR PREMIUM OVERRIDES */
:root {
  /* Cambia el color principal del reproductor (botones y barra de progreso) al color azul Navy del Dr. */
  --plyr-color-main: var(--navy, #0f172a); 
  --plyr-video-control-background-hover: var(--navy, #0f172a);
}

/* Asegurarnos de que el reproductor no rompa el diseño curvo de tu mockup */
.video-mockup .plyr {
  border-radius: 12px; /* Ajusta según el borde de tu video actual */
  overflow: hidden;
  height: 100%;
  width: 100%;
}