﻿/* ============================================
   PANEL DE CONTROL - EDITAR AQUI
   ============================================ */
:root {
  --color-celeste: #4abed6;
  --color-azul: #244d9c;
  --color-azul-oscuro: #1a3a7a;
  --color-celeste-hover: #35adc4;
  --color-blanco: #ffffff;
  --color-negro: #0a0a0a;
  --color-gris-claro: #f5f7fa;
  --color-gris-placeholder: #e0e0e0;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1da851;
  --color-texto: #2c2c2c;
  --font-principal: 'Plus Jakarta Sans', sans-serif;
  --font-size-base: 16px;
  --section-padding: 100px 0;
  --container-max: 1200px;
  --mask-izquierdo: 20px;  /* subir = más corte izquierdo | bajar = menos */
  --mask-derecho: 20px;    /* subir = más corte derecho   | bajar = menos */
  --border-radius-card: 16px;
  --navbar-height: 80px;
  --transition-suave: all 0.3s ease;
  --why-bleed: 80vw;  /* qué tan lejos llega el frame de "Por qué elegirnos" hacia la derecha. 100vw = borde exacto del viewport | bajar = más separado */
}

/* ============================================ */

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-celeste) transparent;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-celeste);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 8px rgba(74, 190, 214, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-celeste-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 14px rgba(74, 190, 214, 0.75);
}

::-webkit-scrollbar-corner {
  background: transparent;
}



body {
  font-family: var(--font-principal);
  color: var(--color-texto);
  background: var(--color-blanco);
  line-height: 1.65;
  overflow-x: hidden;
}


img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-suave);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.section {
  padding: var(--section-padding);
}

/* ============================================
   ANIMATION UTILITY CLASSES
   ============================================ */
.fade-up,
.fade-left,
.fade-right {
  opacity: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  min-height: 44px;
  border-radius: 50px;
  font-family: var(--font-principal);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-suave);
  border: 2px solid transparent;
}

.btn-outline {
  border-color: #fff;
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-azul);
}

.btn-celeste {
  background: var(--color-celeste);
  color: #fff;
  border-color: var(--color-celeste);
}

.btn-celeste:hover {
  background: var(--color-celeste-hover);
  border-color: var(--color-celeste-hover);
  transform: translateY(-2px);
}

.btn-cta {
  background: var(--color-azul);
  color: #fff;
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-principal);
  transition: var(--transition-suave);
  border: 2px solid var(--color-azul);
  outline: none;
}
.btn-cta:focus-visible {
  outline: 2px solid var(--color-celeste);
  outline-offset: 2px;
}

.btn-cta:hover {
  background: var(--color-azul-oscuro);
  border-color: var(--color-azul-oscuro);
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-whatsapp);
  color: var(--color-blanco);
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 28px;
  transition: var(--transition-suave);
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-hover);
  transform: translateY(-2px);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  color: var(--color-celeste);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--color-azul);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title .accent {
  color: var(--color-celeste);
}

.section-line {
  width: 60px;
  height: 4px;
  background: var(--color-celeste);
  border-radius: 2px;
  margin: 0 auto;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--navbar-height);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(36, 77, 156, 0.10);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--navbar-height);
  gap: 32px;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  position: relative;
}

.nav-logo .logo-blanco,
.nav-logo .logo-color {
  width: 140px;
  height: auto;
  transition: opacity 0.4s ease;
}

.nav-logo .logo-color {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  opacity: 0;
}

#navbar.scrolled .nav-logo .logo-blanco {
  opacity: 0;
}

#navbar.scrolled .nav-logo .logo-color {
  opacity: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  position: relative;
  transition: color 0.3s;
}

#navbar.scrolled .nav-link {
  color: var(--color-texto);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-celeste);
  transition: width 0.3s;
}

.nav-link.active::after {
  width: 100%;
}

.nav-link.active,
.nav-link:hover {
  color: var(--color-celeste);
}

#navbar.scrolled .nav-cta {
  background: var(--color-azul);
  color: #fff;
  border-color: var(--color-azul);
}

.nav-cta {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  margin-left: 16px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition-suave);
}

#navbar.scrolled .hamburger span {
  background: var(--color-azul);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 12, 38, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   MOBILE MENU DRAWER — slides from RIGHT
   Brand blue background matching #244d9c
   ============================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 88vw);
  background: linear-gradient(170deg, #0d2254 0%, #1a3a7a 35%, #244d9c 70%, #1e4490 100%);
  border-left: 1px solid rgba(74, 190, 214, 0.18);
  box-shadow: none;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.34, 1.08, 0.64, 1);
  overflow: hidden;
}

.mobile-menu.open {
  transform: translateX(0);
  box-shadow: -6px 0 32px rgba(4, 12, 38, 0.55), inset 1px 0 0 rgba(74, 190, 214, 0.08);
}

/* Gradient accent line on the left edge */
.mobile-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-celeste) 0%, rgba(74, 190, 214, 0.3) 50%, rgba(74, 190, 214, 0) 100%);
  opacity: 1;
}

/* Header */
.mob-menu-header {
  padding: 28px 24px 22px 56px;
  border-bottom: 1px solid rgba(74, 190, 214, 0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.mob-menu-header img {
  width: 110px;
  height: auto;
}

/* Close button — 44px tap area, rounded rectangle */
.mobile-close {
  position: absolute;
  top: 18px;
  left: 16px;
  width: 44px;
  height: 44px;
  background: rgba(74, 190, 214, 0.1);
  border: 1px solid rgba(74, 190, 214, 0.22);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-close:hover {
  background: rgba(74, 190, 214, 0.22);
  border-color: rgba(74, 190, 214, 0.5);
  color: #fff;
  transform: scale(1.06);
}

/* Nav list */
.mobile-menu ul {
  list-style: none;
  padding: 10px 0 4px;
  margin: 0;
  flex: 1;
}

/* Top-level nav list: scrolls independently so the footer CTA stays always visible */
.mobile-menu > ul {
  overflow-y: auto;
  min-height: 0;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.mobile-menu li {
  position: relative;
}

/* Nav links — stagger animation setup */
.mob-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  height: 58px;
  min-height: 44px;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-left: 3px solid transparent;
  border-radius: 0 10px 10px 0;
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 0.32s ease,
    transform 0.32s ease,
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    padding-left 0.18s ease;
}

/* Stagger: items appear one by one when drawer opens */
.mobile-menu.open .mob-link {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.open li:nth-child(1) .mob-link { transition-delay: 0.08s; }
.mobile-menu.open li:nth-child(2) .mob-link { transition-delay: 0.13s; }
.mobile-menu.open li:nth-child(3) .mob-link { transition-delay: 0.18s; }
.mobile-menu.open li:nth-child(4) .mob-link { transition-delay: 0.23s; }
.mobile-menu.open li:nth-child(5) .mob-link { transition-delay: 0.28s; }
.mobile-menu.open li:nth-child(6) .mob-link { transition-delay: 0.33s; }

/* Hover solo en dispositivos con puntero real (no touch) */
@media (hover: hover) {
  .mobile-menu.open li .mob-link:hover {
    color: #fff;
    background: rgba(74, 190, 214, 0.12);
    border-left-color: var(--color-celeste);
    padding-left: 25px;
    transition-delay: 0s;
  }
}

/* Feedback táctil en touch */
.mobile-menu.open li .mob-link:active {
  color: #fff;
  background: rgba(74, 190, 214, 0.12);
  border-left-color: var(--color-celeste);
  transition-delay: 0s;
}

/* Icon */
.mob-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 190, 214, 0.10);
  border: 1px solid rgba(74, 190, 214, 0.18);
  border-radius: 12px;
  color: var(--color-celeste);
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: background 0.18s ease, transform 0.18s ease;
}

@media (hover: hover) {
  .mobile-menu.open li .mob-link:hover .mob-icon {
    background: rgba(74, 190, 214, 0.25);
    border-color: rgba(74, 190, 214, 0.4);
    transform: scale(1.08);
  }
}

/* Footer with WhatsApp CTA */
.mob-menu-footer {
  padding: 10px 20px 36px;
  border-top: 1px solid rgba(74, 190, 214, 0.12);
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease 0.4s, transform 0.3s ease 0.4s;
}

.mobile-menu.open .mob-menu-footer {
  opacity: 1;
  transform: translateY(0);
}

/* WhatsApp button — gradient, pulse via box-shadow animation */
.mob-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--color-whatsapp) 0%, var(--color-whatsapp-hover) 100%);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  animation: mobWaPulse 2.4s ease-out infinite;
}

.mob-wa-btn:hover {
  background: linear-gradient(135deg, #20ba58 0%, #17963f 100%);
  transform: translateY(-2px);
  animation: none;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.5);
}

.mob-wa-btn i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.mob-wa-btn span {
  text-align: center;
}

@keyframes mobWaPulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  55% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35), 0 0 0 10px rgba(37, 211, 102, 0);
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-azul) 0%, #1a3a7a 100%);
}

.hero-bg-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#hero-bg {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.58) 0%, rgba(36, 77, 156, 0.42) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: var(--navbar-height);
}

.hero-tag {
  display: inline-block;
  background: rgba(74, 190, 214, 0.18);
  border: 1px solid rgba(74, 190, 214, 0.4);
  color: var(--color-celeste);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title .accent {
  color: var(--color-celeste);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 36px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.fade-item {
  opacity: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  font-size: 1.2rem;
  animation: bounce 2s infinite;
  opacity: 0.7;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ============================================
   ESTADISTICAS
   ============================================ */
.stats-section {
  background: var(--color-azul);
  padding: 60px 0;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 24px 16px;
}

.stat-number {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--color-blanco);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.stat-row {
  display: contents;
}

/* ============================================
   SERVICIOS
   ============================================ */
.services-section {
  background: var(--color-blanco);
}

.services-section .container {
  max-width: 1440px;
}


.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.service-card {
  background: var(--color-blanco);
  border-radius: var(--border-radius-card);
  box-shadow: 0 4px 20px rgba(36, 77, 156, 0.07), inset 0 4px 0 0 transparent, 0 0 0 2px transparent;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(36, 77, 156, 0.18), inset 0 4px 0 0 var(--color-celeste), 0 0 0 2px var(--color-celeste);
}

.service-card:hover .service-icon {
  color: var(--color-celeste);
}

.service-img-wrap {
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  background: var(--color-gris-placeholder);
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.04);
}

.service-img-wrap.img-fallback {
  background: #e8edf5;
}

.service-img-wrap.img-fallback::after {
  content: '\f03e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 2rem;
  color: #b0b8cc;
}

.service-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-icon {
  font-size: 1.6rem;
  color: var(--color-azul);
  margin-bottom: 12px;
  transition: color 0.3s;
}

.service-body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-azul);
  margin-bottom: 8px;
}

.service-body p {
  font-size: 0.9rem;
  color: #5a6478;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-ver-mas {
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-azul);
  border-radius: 999px;
  letter-spacing: 0.04em;
  transition: background 0.2s ease;
}

.service-card:hover .card-ver-mas {
  background: var(--color-celeste);
}

/* ============================================
   POR QUE ELEGIRNOS
   ============================================ */
.why-section {
  background: var(--color-gris-claro);
  overflow-x: clip;
  padding: 50px 0;
}

.why-section .container {
  max-width: 1440px;
}

.why-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 36px;
  align-items: stretch;
}


.why-text {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.why-text .why-points {
  flex: 1;
  justify-content: space-between;
}

.why-text .section-tag {
  margin-bottom: 4px;
}

.why-text .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.why-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.why-icon {
  width: 38px;
  height: 38px;
  background: rgba(74, 190, 214, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-celeste);
  font-size: 1rem;
  flex-shrink: 0;
}

.why-point h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-azul);
  margin-bottom: 6px;
}

.why-point p {
  font-size: 1rem;
  color: #5a6478;
  line-height: 1.65;
}

.why-image {
  align-self: stretch;
  min-height: 0;
  margin-right: calc(-1 * (clamp(16px, 4vw, 40px) + max(0px, (var(--why-bleed) - var(--container-max)) / 2)));
  display: flex;
  align-items: center;
}

.why-img-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-gris-placeholder);
}

.why-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   EQUIPO MEDICO (Team Swiper)
   ============================================ */
.team-section {
  background: var(--color-blanco);
}

.team-swiper {
  /* Full-bleed: rompe del contenedor hacia los bordes del viewport */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  padding-top: 12px;
  padding-bottom: 48px !important; /* Swiper sobreescribe esto inline para la paginación */
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
  overflow: visible !important; /* visible para que las sombras de las tarjetas no se recorten */
  /* Máscara — ajustá --mask-izquierdo y --mask-derecho en :root */
  -webkit-mask-image: linear-gradient(to right,
    transparent var(--mask-izquierdo),
    black var(--mask-izquierdo),
    black calc(100% - var(--mask-derecho)),
    transparent calc(100% - var(--mask-derecho))
  );
  mask-image: linear-gradient(to right,
    transparent var(--mask-izquierdo),
    black var(--mask-izquierdo),
    black calc(100% - var(--mask-derecho)),
    transparent calc(100% - var(--mask-derecho))
  );
}

.doctor-card {
  background: var(--color-blanco);
  border-radius: var(--border-radius-card);
  box-shadow: 0 4px 18px rgba(36, 77, 156, 0.08), inset 0 0 0 2px transparent;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(36, 77, 156, 0.14), inset 0 0 0 2px var(--color-celeste);
}

.doctor-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--color-gris-placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-img.img-fallback::after {
  content: '\f007';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 3rem;
  color: #b0b8cc;
}

.doctor-info {
  padding: 16px 18px 20px;
}

.doctor-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-azul);
  margin-bottom: 4px;
}

.doctor-info p {
  font-size: 0.82rem;
  color: var(--color-celeste);
  font-weight: 600;
}

/* Flechas del carrusel — Swiper sobreescribe posición y tamaño, de ahí los !important */
.team-prev { left: calc(var(--mask-izquierdo) + 12px) !important; }
.team-next { right: calc(var(--mask-derecho) + 12px) !important; }

.team-prev,
.team-next {
  color: var(--color-azul) !important;
  background: #fff;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(36, 77, 156, 0.14);
  transition: var(--transition-suave);
}

.team-prev:hover,
.team-next:hover {
  background: var(--color-azul);
  color: #fff !important;
}

.team-prev::after,
.team-next::after {
  font-size: 16px !important;
}

.team-pagination .swiper-pagination-bullet {
  background: var(--color-azul);
}

.team-pagination .swiper-pagination-bullet-active {
  background: var(--color-celeste);
}

/* ============================================
   TESTIMONIOS
   ============================================ */
.testimonios-section {
  background: var(--color-gris-claro);
}

.testimonios-section .container {
  max-width: 100%;
  padding-left: clamp(12px, 3vw, 48px);
  padding-right: clamp(12px, 3vw, 48px);
}

.testimonios-swiper {
  padding-bottom: 48px !important;
  padding-top: 8px !important;
}

.testimonio-card {
  background: var(--color-blanco);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(36, 77, 156, 0.07);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonio-stars {
  color: #f5a623;
  font-size: 1rem;
  display: flex;
  gap: 4px;
}

.testimonio-text {
  font-size: 1rem;
  color: var(--color-texto);
  font-style: italic;
  line-height: 1.75;
  flex: 1;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.testimonio-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--color-blanco);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonio-avatar--azul        { background: var(--color-azul); }
.testimonio-avatar--celeste     { background: var(--color-celeste); }
.testimonio-avatar--azul-oscuro { background: var(--color-azul); }

.testimonio-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-azul);
  font-weight: 700;
}

.testimonio-author span {
  font-size: 0.8rem;
  color: #8a96a8;
}

.test-prev,
.test-next {
  color: var(--color-azul) !important;
  background: #fff;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(36, 77, 156, 0.10);
  transition: var(--transition-suave);
}

.test-prev:hover,
.test-next:hover {
  background: var(--color-azul);
  color: #fff !important;
}

.test-prev::after,
.test-next::after {
  font-size: 14px !important;
  font-weight: 900;
}

.test-pagination .swiper-pagination-bullet {
  background: var(--color-azul);
}

.test-pagination .swiper-pagination-bullet-active {
  background: var(--color-celeste);
}

/* ============================================
   SECCION: GALERIA
   ============================================ */
.galeria-section {
  background: var(--color-blanco);
}

.galeria-section .container {
  max-width: 100%;
  padding-left: clamp(12px, 3vw, 48px);
  padding-right: clamp(12px, 3vw, 48px);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.galeria-item--mobile-only {
  display: none;
}

.galeria-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3/2;
  cursor: pointer;
  touch-action: manipulation;
  background: var(--color-gris-placeholder);
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.galeria-item.img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.galeria-item.img-fallback::after {
  content: '\f03e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 2.5rem;
  color: #b0b8cc;
  z-index: 1;
}

.galeria-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
  opacity: 1;
}

.galeria-item:hover img {
  transform: scale(1.06);
}



.galeria-overlay-titulo {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Sombra sutil en items de galería */
.galeria-item {
  box-shadow: 0 4px 16px rgba(36,77,156,0.08);
}

/* Botón Ver galería completa sobre fondo blanco */
.galeria-section .btn-outline {
  border-color: var(--color-azul);
  color: var(--color-azul);
}

.galeria-section .btn-outline:hover {
  background: var(--color-azul);
  color: #fff;
}

.btn-ver-galeria {
  background: var(--color-azul);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 16px 48px;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-ver-galeria:hover {
  background: var(--color-celeste);
  transform: translateY(-2px);
}

/* Lightbox - SECCION: GALERIA */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#lightbox.active {
  display: flex;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 16px;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.2s;
}

#lightbox-close:hover {
  opacity: 0.7;
}

/* FIN SECCION: GALERIA */

/* ============================================
   CONTACTO
   ============================================ */
.contacto-section {
  background: var(--color-gris-claro);
}

.contacto-section .container {
  max-width: 1440px;
}

.contacto-section.contacto-blanca {
  background: #fff;
}

.contacto-section.contacto-oscura {
  background: #0d2254;
}
.contacto-section.contacto-oscura .section-tag {
  color: var(--color-celeste);
}
.contacto-section.contacto-oscura .section-title {
  color: #fff;
}
.contacto-section.contacto-oscura .section-title .accent {
  color: var(--color-celeste);
}
.contacto-section.contacto-oscura .contact-list {
  color: rgba(255,255,255,0.85);
}
.contacto-section.contacto-oscura .contact-item strong {
  color: #fff;
}
.contacto-section.contacto-oscura .contact-item p,
.contacto-section.contacto-oscura .contact-item a {
  color: rgba(255,255,255,0.75);
}
.contacto-section.contacto-oscura .contact-icon {
  background: rgba(74,190,214,0.15);
  color: var(--color-celeste);
}

.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contacto-info .section-title {
  text-align: left;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(74, 190, 214, 0.12);
  color: var(--color-celeste);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-azul);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  font-size: 0.95rem;
  color: var(--color-texto);
}

.contact-item a:hover {
  color: var(--color-celeste);
}

.mapa-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(36, 77, 156, 0.12);
  background: var(--color-gris-placeholder);
}

.mapa-wrapper iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: 0;
}

/* ============================================
   WHATSAPP FLOTANTE
   ============================================ */
#whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 990;
  width: 60px;
  height: 60px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--color-blanco);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-ping {
  position: absolute;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  background: var(--color-whatsapp);
  animation: waPing 2.2s ease-out infinite;
  opacity: 0.5;
  top: 0;
  left: 0;
}

@keyframes waPing {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  70% {
    transform: scale(1.55);
    opacity: 0;
  }

  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: var(--color-azul);
  padding: 64px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 10px;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  margin-top: 24px;
}

.footer-col h4, .footer-col h3 {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-nav ul li+li {
  margin-top: 12px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--color-celeste);
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: var(--transition-suave);
}

.social-icons a:hover {
  background: var(--color-celeste);
  transform: translateY(-3px);
}

.footer-contact-mini p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-mini i {
  color: var(--color-celeste);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

.footer-logo { width: 160px; height: auto; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* --- TABLET: hasta 1023px --- */
@media (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .why-inner {
    grid-template-columns: 1fr;
  }

  .why-image {
    margin-right: 0;
    max-height: 320px;
  }

  .why-img-frame {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
  }

  .contacto-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mapa-wrapper iframe {
    height: 360px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- MÓVIL: hasta 767px --- */
@media (max-width: 767px) {
  :root {
    --section-padding: 60px 0;
    --navbar-height: 68px;
    --mask-izquierdo: 0px; /* ajustá este valor para móvil */
    --mask-derecho: 0px;   /* ajustá este valor para móvil */
  }

  /* Navbar */
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hamburger {
    margin-left: auto;
  }

  .nav-logo .logo-blanco,
  .nav-logo .logo-color {
    width: 122px;
  }

  /* Hero */
  .hero {
    min-height: 100svh;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-btns {
    flex-direction: column;
    gap: 12px;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  /* Stats: grilla 2×2 con separadores visuales */
  .stats-section {
    padding: 40px 0;
  }

  .stats-grid {
    flex-wrap: wrap;
    gap: 0;
  }

  .stat-divider {
    display: none;
  }

  .stat-row {
    display: flex;
    flex: 0 0 100%;
  }

  .stat-item {
    flex: 1;
    padding: 24px 12px;
  }

  .stat-row:first-child .stat-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .stat-row .stat-item:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  /* Secciones */
  .section-header {
    margin-bottom: 40px;
  }

  /* Servicios: 1 columna */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Galería: 2 columnas (no 1) */
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .galeria-item--mobile-only {
    display: block;
  }

  /* Contacto */
  .btn-whatsapp {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 14px 20px;
  }

  .mapa-wrapper iframe {
    height: 300px;
  }

  /* Footer: 1 columna */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Ocultar flechas Swiper en móvil (se usa swipe) */
  .team-prev,
  .team-next,
  .test-prev,
  .test-next {
    display: none !important;
  }

  /* FAQ */
  .faq-list {
    gap: 16px;
  }

  .faq-question {
    padding: 18px 20px;
  }
}

/* --- MÓVIL PEQUEÑO: hasta 479px --- */
@media (max-width: 479px) {
  :root {
    --section-padding: 48px 0;
  }

  /* Logo más pequeño */
  .nav-logo .logo-blanco,
  .nav-logo .logo-color {
    width: 96px;
  }

  /* Menú móvil */
  .mob-link {
    font-size: 0.82rem;
  }

  /* Títulos escalados para pantallas chicas */
  .section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  /* Stats más compactos */
  .stat-number {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
  }

  .stat-label {
    font-size: 0.78rem;
  }

  /* Hero buttons más compactos */
  .hero-btns .btn {
    font-size: 0.9rem;
    padding: 12px 20px;
  }

  /* Testimonios */
  .testimonio-card {
    padding: 22px 16px;
  }

  .testimonio-text {
    font-size: 0.9rem;
  }

  /* Mapa más chico */
  .mapa-wrapper iframe {
    height: 260px;
  }

  /* Footer */
  .footer-copy {
    font-size: 0.72rem;
  }

  /* Galería: mantener 2 col con menos gap */
  .galeria-grid {
    gap: 8px;
  }
}

/* ============================================
   PÁGINAS DE SERVICIOS
   ============================================ */

/* Hero de servicio */
.servicio-hero {
  min-height: 480px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0d2254 0%, #1a3a7a 50%, #244d9c 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.servicio-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.35;
}

.servicio-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(74,190,214,0.15) 0%, transparent 65%);
  pointer-events: none;
}

.servicio-hero .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.servicio-hero-tag {
  display: inline-block;
  background: rgba(74,190,214,0.18);
  color: var(--color-celeste);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 99px;
  border: 1px solid rgba(74,190,214,0.3);
  margin-bottom: 20px;
}

.servicio-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
}

.servicio-hero h1 .accent {
  color: var(--color-celeste);
}

.servicio-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.65;
}

.servicio-hero .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  min-height: 44px;
}

/* Info */
.servicio-info {
  padding: var(--section-padding);
  background: #fff;
}

.servicio-info .container {
  max-width: var(--container-max);
}

.servicio-info .info-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 32px;
}

.servicio-info-img {
  border-radius: var(--border-radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-gris-claro);
}

.servicio-info-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.servicio-info-imgs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.servicio-info-imgs .servicio-info-img {
  aspect-ratio: 4 / 3;
}

.servicio-info p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-texto);
  margin-bottom: 20px;
}

/* Beneficios */
.servicio-beneficios {
  padding: var(--section-padding);
  background: var(--color-gris-claro);
}

.servicio-beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.servicio-beneficio-card {
  background: #fff;
  border-radius: var(--border-radius-card);
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(36,77,156,0.07);
  transition: var(--transition-suave);
}

.servicio-beneficio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(36,77,156,0.12);
}

.servicio-beneficio-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(74,190,214,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-celeste);
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.servicio-beneficio-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-azul);
  margin-bottom: 8px;
}

.servicio-beneficio-card p {
  font-size: 0.9rem;
  color: #5a6478;
  line-height: 1.6;
}

/* Pasos */
.servicio-pasos {
  padding: var(--section-padding);
  background: #fff;
}

.servicio-pasos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.servicio-paso {
  text-align: center;
  padding: 32px 20px;
}

.servicio-paso-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-azul);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.servicio-paso h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-azul);
  margin-bottom: 10px;
}

.servicio-paso p {
  font-size: 0.9rem;
  color: #5a6478;
  line-height: 1.65;
}

/* FAQ */
.servicio-faq {
  padding: var(--section-padding);
  background: var(--color-azul);
}

.servicio-faq .section-tag {
  color: rgba(255,255,255,0.65);
}

.servicio-faq .section-title {
  color: #fff;
}

.servicio-faq .section-title .accent {
  color: var(--color-celeste);
}

.servicio-faq .section-line {
  background: var(--color-celeste);
}

.servicio-faq .container {
  max-width: 760px;
}

.faq-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(36,77,156,0.06);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-principal);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-azul);
  text-align: left;
  transition: background 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.faq-question:hover {
  background: rgba(74,190,214,0.06);
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(74,190,214,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-celeste);
  font-size: 0.78rem;
  transition: transform 0.28s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.32s ease, opacity 0.28s ease;
  opacity: 0;
}

.faq-answer-inner {
  padding: 14px 24px 22px;
  font-size: 0.93rem;
  color: #5a6478;
  line-height: 1.7;
}

/* ============================================
   PÁGINA DE GALERÍA
   ============================================ */

.galeria-page-hero {
  background: linear-gradient(135deg, #0d2254 0%, #1a3a7a 50%, #244d9c 100%);
  padding: 120px 0 60px;
  text-align: center;
}

.galeria-page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.galeria-page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
}

.galeria-page-section {
  padding: var(--section-padding);
  background: #fff;
}

.galeria-page-grid {
  columns: 4;
  column-gap: 16px;
  margin-top: 48px;
}

.galeria-page-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--color-gris-claro);
  box-shadow: 0 4px 16px rgba(36,77,156,0.08);
}

.galeria-page-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.galeria-page-item:nth-child(1) img { height: 280px; }
.galeria-page-item:nth-child(2) img { height: 200px; }
.galeria-page-item:nth-child(3) img { height: 320px; }
.galeria-page-item:nth-child(4) img { height: 240px; }
.galeria-page-item:nth-child(5) img { height: 200px; }
.galeria-page-item:nth-child(6) img { height: 300px; }
.galeria-page-item:nth-child(7) img { height: 220px; }
.galeria-page-item:nth-child(8) img { height: 260px; }

.galeria-page-item:hover img {
  transform: scale(1.06);
}

.galeria-page-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.galeria-page-item:hover .galeria-page-overlay {
  opacity: 1;
}

.galeria-page-overlay-titulo {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Botón "Ver galería" en index */
.galeria-cta-wrap {
  text-align: center;
  margin-top: 40px;
}

/* Responsive — páginas de servicios */
@media (max-width: 768px) {
  .servicio-hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .servicio-beneficios-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .servicio-pasos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .servicio-beneficios-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   NAVBAR DROPDOWN (Servicios)
   ============================================ */
.nav-item-dropdown {
  position: relative;
}

.nav-link-services {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-dropdown-arrow {
  font-size: 0.6rem;
  transition: transform 0.3s;
  margin-left: 1px;
}

.nav-item-dropdown:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 14px 0 0 0;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 999;
  list-style: none;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(36,77,156,0.15);
  z-index: -1;
}

.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown li:first-child a {
  padding-top: 16px;
}

.nav-dropdown li:last-child a {
  padding-bottom: 16px;
}

.nav-dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-texto);
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
}

.nav-dropdown li a:hover {
  color: var(--color-celeste);
  background: var(--color-gris-claro);
  padding-left: 28px;
}

.nav-dropdown li:first-child a {
  border-radius: 12px 12px 0 0;
}

.nav-dropdown li:last-child a {
  border-radius: 0 0 12px 12px;
}

/* Ocultar dropdown en móvil */
@media (max-width: 1023px) {
  .nav-dropdown {
    display: none;
  }
}

/* ============================================
   MOBILE MENU — Acordeón Servicios
   ============================================ */
.mob-services-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  height: 58px;
  min-height: 44px;
  width: 100%;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 0 10px 10px 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-principal);
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 0.32s ease,
    transform 0.32s ease,
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    padding-left 0.18s ease;
}

.mobile-menu.open .mob-services-toggle {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.open li:nth-child(2) .mob-services-toggle { transition-delay: 0.13s; }

.mob-services-item.open .mob-services-toggle {
  color: #fff;
  background: rgba(74, 190, 214, 0.12);
  border-left-color: var(--color-celeste);
}

@media (hover: hover) {
  .mob-services-toggle:hover {
    color: #fff;
    background: rgba(74, 190, 214, 0.12);
    border-left-color: var(--color-celeste);
  }
}

.mob-services-toggle:active {
  color: #fff;
  background: rgba(74, 190, 214, 0.12);
  border-left-color: var(--color-celeste);
}

.mob-services-arrow {
  margin-left: auto;
  font-size: 0.6rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.mob-services-item.open .mob-services-arrow {
  transform: rotate(180deg);
}

.mob-services-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mob-services-item.open .mob-services-list {
  max-height: 600px;
}

.mob-sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 56px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s, padding-left 0.2s, background 0.2s;
}

@media (hover: hover) {
  .mob-sublink:hover {
    color: var(--color-celeste);
    padding-left: 62px;
    background: rgba(74,190,214,0.07);
  }
}

.mob-sublink:active {
  color: var(--color-celeste);
  background: rgba(74,190,214,0.07);
}

.mob-sublink-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74,190,214,0.10);
  border: 1px solid rgba(74,190,214,0.18);
  border-radius: 8px;
  color: var(--color-celeste);
  font-size: 0.65rem;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.2s, background 0.2s;
}

@media (hover: hover) {
  .mob-sublink:hover .mob-sublink-icon {
    opacity: 1;
    background: rgba(74,190,214,0.22);
  }
}

.mob-sublink:active .mob-sublink-icon {
  opacity: 1;
  background: rgba(74,190,214,0.22);
}

/* ============================================
   SERVICIO INFO — 2 columnas responsive
   ============================================ */
@media (max-width: 900px) {
  .servicio-info .info-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .servicio-info-img {
    order: -1;
  }
}

/* ============================================
   GALERÍA PÁGINA — responsive masonry
   ============================================ */
@media (max-width: 1023px) {
  .galeria-page-grid {
    columns: 3;
    column-gap: 12px;
  }

  .galeria-page-item {
    margin-bottom: 12px;
  }
}

@media (max-width: 600px) {
  .galeria-page-grid {
    columns: 2;
    column-gap: 8px;
  }

  .galeria-page-item {
    margin-bottom: 8px;
  }
}

/* ===================================================================
   LANDSCAPE MÓVIL — rehecho desde cero (2026-05-10)
   Filosofía: NO adaptar el diseño desktop. REDIMENSIONAR todo
   proporcionalmente a un viewport de ~430px de alto.
   Reglas de escala aplicadas:
   - Padding de sección: 100px → 18px (82% menos)
   - Font-size títulos: 2.6rem → 1.05rem (60% menos)
   - Font-size body: 1rem → 0.72rem (28% menos)
   - Imágenes y cards: 50-70% más chicas o reorganizadas
   Detección: html.phone-landscape (clase JS, ver script.js).
   =================================================================== */

html.phone-landscape {
  --section-padding: 18px 0;
  --navbar-height: 50px;
  /* Máscara activa también en landscape para ocultar el peek de las
     tarjetas anterior/siguiente del carrusel del equipo */
  --mask-izquierdo: 1px;
  --mask-derecho: 1px;
  --border-radius-card: 10px;
}

/* Bloqueo total de scroll horizontal en iOS.
   touch-action: pan-y le dice al browser "solo permito pan vertical y zoom,
   NADA de pan horizontal". Combinado con overflow + overscroll-behavior,
   bloquea por completo cualquier deslizamiento lateral. */
html.phone-landscape {
  overflow-x: hidden !important;
  overscroll-behavior-x: none !important;
  touch-action: pan-y pinch-zoom !important;
  max-width: 100vw !important;
  width: 100% !important;
}

/* Body con padding del safe-area lateral SIMÉTRICO: usamos max() de
   los dos lados para que ambas franjas tengan el mismo ancho y el
   contenido quede CENTRADO (no pegado al borde sin notch). */
html.phone-landscape body {
  overflow-x: hidden !important;
  overscroll-behavior-x: none !important;
  touch-action: pan-y pinch-zoom !important;
  max-width: 100vw !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) !important;
  padding-right: max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) !important;
  box-sizing: border-box !important;
}

html.phone-landscape main {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  touch-action: pan-y pinch-zoom !important;
}

html.phone-landscape section,
html.phone-landscape .section {
  max-width: 100vw !important;
  overflow-x: hidden;
}

/* Los Swipers (equipo, testimonios) sí necesitan touch-action horizontal
   para el swipe interno, así que se lo devolvemos solo a ellos */
html.phone-landscape .swiper,
html.phone-landscape .team-swiper,
html.phone-landscape .testimonios-swiper {
  touch-action: pan-x pan-y !important;
}

/* === NAVBAR — más bajo y compacto === */
html.phone-landscape #navbar {
  padding: 6px 0 !important;
}

html.phone-landscape .nav-links,
html.phone-landscape .nav-cta {
  display: none !important;
}

html.phone-landscape .hamburger {
  display: flex !important;
  margin-left: auto;
  transform: scale(0.85);
}

/* === MENÚ MÓVIL (drawer) MÁS COMPACTO — solo en landscape === */
html.phone-landscape .mob-link {
  height: 38px !important;
  min-height: 0 !important;
  font-size: 0.72rem !important;
  padding: 0 16px !important;
  gap: 10px !important;
  letter-spacing: 0.04em !important;
}

html.phone-landscape .mob-icon {
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
}

html.phone-landscape .mob-icon i {
  font-size: 0.72rem !important;
}

html.phone-landscape .mob-sublink {
  padding: 5px 20px 5px 44px !important;
  font-size: 0.68rem !important;
}

html.phone-landscape .mob-sublink-icon {
  width: 16px !important;
  height: 16px !important;
}

html.phone-landscape .mob-sublink-icon i {
  font-size: 0.62rem !important;
}

html.phone-landscape .mobile-menu ul {
  padding: 4px 0 !important;
}

/* Botón WhatsApp del footer del drawer también más compacto */
html.phone-landscape .mob-wa-btn {
  padding: 10px 14px !important;
  font-size: 0.78rem !important;
}

html.phone-landscape .mob-menu-footer {
  padding: 10px 14px 12px !important;
}

/* === HERO DE PÁGINAS DE SERVICIO / NOSOTROS / GALERÍA / CONTACTO ===
   Como no tienen stats bar abajo, el hero llena el viewport completo.
   Usamos 100svh (small viewport height) que respeta la chrome del browser
   móvil (back buttons, address bar, etc) y env(safe-area-inset-bottom) por
   si acaso para evitar overlay con el home indicator del iPhone. */
html.phone-landscape .servicio-hero,
html.phone-landscape .nosotros-hero,
html.phone-landscape .galeria-page-hero,
html.phone-landscape .contacto-page-hero {
  min-height: 100dvh !important;
  padding-top: calc(var(--navbar-height) + 12px) !important;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  display: flex !important;
  align-items: center !important;
}

/* Textos del hero de servicio compactos */
html.phone-landscape .servicio-hero-tag {
  font-size: 0.6rem !important;
  padding: 3px 10px !important;
  margin-bottom: 10px !important;
}

html.phone-landscape .servicio-hero h1 {
  font-size: clamp(1.1rem, 3vw, 1.6rem) !important;
  line-height: 1.15 !important;
  margin-bottom: 8px !important;
}

html.phone-landscape .servicio-hero p {
  font-size: 0.78rem !important;
  line-height: 1.5 !important;
  margin-bottom: 14px !important;
}

html.phone-landscape .servicio-hero .btn {
  font-size: 0.78rem !important;
  padding: 8px 16px !important;
}

/* Hero de nosotros / galería / contacto: títulos compactos */
html.phone-landscape .nosotros-hero h1,
html.phone-landscape .galeria-page-hero h1,
html.phone-landscape .contacto-page-hero h1 {
  font-size: clamp(1.1rem, 3vw, 1.6rem) !important;
  line-height: 1.15 !important;
  margin-bottom: 8px !important;
}

html.phone-landscape .nosotros-hero p,
html.phone-landscape .galeria-page-hero p,
html.phone-landscape .contacto-page-hero p {
  font-size: 0.78rem !important;
  line-height: 1.5 !important;
  max-width: 600px !important;
}

html.phone-landscape .nosotros-hero {
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
}

html.phone-landscape .nosotros-hero-btns {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  margin-top: 14px !important;
  gap: 10px !important;
}

/* Secciones internas de páginas de servicio — más compactas */
html.phone-landscape .servicio-beneficios-grid,
html.phone-landscape .servicio-pasos-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  margin-top: 14px !important;
}

html.phone-landscape .servicio-beneficio-card,
html.phone-landscape .servicio-paso {
  padding: 14px 12px !important;
}

html.phone-landscape .servicio-beneficio-icon {
  width: 36px !important;
  height: 36px !important;
  font-size: 0.95rem !important;
  margin-bottom: 8px !important;
}

html.phone-landscape .servicio-beneficio-card h3,
html.phone-landscape .servicio-paso h3 {
  font-size: 0.82rem !important;
  margin-bottom: 4px !important;
}

html.phone-landscape .servicio-beneficio-card p,
html.phone-landscape .servicio-paso p {
  font-size: 0.7rem !important;
  line-height: 1.45 !important;
}

/* === BOTONES CTA NOSOTROS — mismo tamaño y alineados solo en landscape ===
   - width 260px + nowrap para que "Ver información de contacto" entre en 1 línea
   - inline-flex + align-items center para que tengan idéntica caja vertical
     (btn-whatsapp usa flex para el ícono y btn-celeste usaba inline-block — eso
     causaba el desalineamiento sutil) */
html.phone-landscape .nosotros-hero-btns--center {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
}

html.phone-landscape .nosotros-hero-btns--center .btn-whatsapp,
html.phone-landscape .nosotros-hero-btns--center .btn-celeste {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: 0 1 auto !important;
  height: auto !important;
  margin: 0 !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

html.phone-landscape .nav-logo .logo-blanco,
html.phone-landscape .nav-logo .logo-color {
  width: 88px !important;
}

/* === HERO — hero + stats fill viewport (stats bottom = screen bottom) ===
   Stats height calculada: ~74px (padding 12+12 + content 50px).
   Usamos svh para que respete la chrome del browser móvil. */
html.phone-landscape .hero {
  height: auto !important;
  min-height: calc(100dvh - 74px) !important;
  padding-top: calc(var(--navbar-height) + 6px) !important;
  padding-bottom: 10px !important;
}

html.phone-landscape .hero-content {
  max-width: 540px !important;
  padding-top: 0 !important;
}

html.phone-landscape .hero-title {
  font-size: clamp(0.95rem, 2.4vw, 1.25rem) !important;
  line-height: 1.15 !important;
  margin-bottom: 4px !important;
}

html.phone-landscape .hero-tag {
  font-size: 0.58rem !important;
  letter-spacing: 0.1em !important;
  margin-bottom: 6px !important;
  padding: 2px 8px !important;
}

html.phone-landscape .hero-subtitle {
  font-size: 0.7rem !important;
  line-height: 1.45 !important;
  margin-bottom: 10px !important;
}

html.phone-landscape .hero-btns {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

html.phone-landscape .hero-btns .btn {
  font-size: 0.7rem !important;
  padding: 6px 12px !important;
  width: auto !important;
  border-radius: 999px !important;
}

html.phone-landscape .scroll-indicator {
  display: none !important;
}

/* === STATS — barra delgada con números chicos === */
html.phone-landscape .stats-section {
  padding: 12px 0 !important;
}

html.phone-landscape .stat-item {
  padding: 6px 6px !important;
}

html.phone-landscape .stat-number {
  font-size: clamp(0.95rem, 2.6vw, 1.35rem) !important;
  margin-bottom: 2px !important;
  line-height: 1 !important;
}

html.phone-landscape .stat-label {
  font-size: 0.55rem !important;
  letter-spacing: 0.04em !important;
}

html.phone-landscape .stat-divider {
  height: 24px !important;
  display: block !important;
}

/* Forzar 4 items en fila (sin 2x2 portrait) en landscape ===
   La base usa .stat-row { display: contents } pero la media query
   (max-width: 767px) la convierte en flex 100% creando 2x2. */
html.phone-landscape .stat-row {
  display: contents !important;
  flex: unset !important;
}

html.phone-landscape .stats-grid {
  flex-wrap: nowrap !important;
  gap: 0 !important;
}

html.phone-landscape .stat-item {
  flex: 1 !important;
  min-width: 0 !important;
  border: none !important;
}

/* === SECTION HEADERS — chicos y al ras === */
html.phone-landscape .section-title {
  font-size: clamp(0.92rem, 2.5vw, 1.2rem) !important;
  line-height: 1.2 !important;
  margin-bottom: 0 !important;
}

html.phone-landscape .section-tag {
  font-size: 0.6rem !important;
  margin-bottom: 4px !important;
  letter-spacing: 0.1em !important;
}

html.phone-landscape .section-header {
  margin-bottom: 10px !important;
}

html.phone-landscape .section-header p {
  font-size: 0.72rem !important;
  margin-top: 4px !important;
}

/* === SERVICIOS — 3 columnas para aprovechar el ancho, cards compactas === */
html.phone-landscape .services-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
}

html.phone-landscape .service-card {
  border-radius: 10px !important;
}

html.phone-landscape .service-img-wrap {
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
}

html.phone-landscape .service-card-body {
  padding: 8px 10px 10px !important;
}

html.phone-landscape .service-card h3 {
  font-size: 0.78rem !important;
  margin-bottom: 2px !important;
}

html.phone-landscape .service-card p {
  font-size: 0.65rem !important;
  line-height: 1.4 !important;
  margin-bottom: 4px !important;
}

html.phone-landscape .service-card .service-link {
  font-size: 0.62rem !important;
}

html.phone-landscape .servicios-cta {
  margin-top: 12px !important;
}

html.phone-landscape .servicios-cta .btn {
  font-size: 0.72rem !important;
  padding: 8px 16px !important;
}

/* === NOSOTROS / POR QUÉ — imagen visible al lado del texto ===
   Layout 2-col: texto+points izquierda, imagen derecha (proporción 1.4:1).
   La imagen toma 240px de alto para no dominar el viewport. */
html.phone-landscape .why-inner {
  grid-template-columns: 1.4fr 1fr !important;
  gap: 18px !important;
  align-items: center !important;
}

html.phone-landscape .why-image {
  display: flex !important;
  margin-right: 0 !important;
  max-height: 240px !important;
  align-items: center !important;
}

html.phone-landscape .why-img-frame {
  aspect-ratio: auto !important;
  width: 100% !important;
  height: 240px !important;
  border-radius: 12px !important;
}

html.phone-landscape .why-text .section-title {
  margin-bottom: 10px !important;
}

html.phone-landscape .why-points {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px 14px !important;
}

html.phone-landscape .why-point {
  gap: 8px !important;
}

html.phone-landscape .why-point h3 {
  font-size: 0.74rem !important;
  margin-bottom: 1px !important;
}

html.phone-landscape .why-point p {
  font-size: 0.62rem !important;
  line-height: 1.35 !important;
}

html.phone-landscape .why-icon {
  width: 24px !important;
  height: 24px !important;
  font-size: 0.7rem !important;
  border-radius: 6px !important;
  flex-shrink: 0;
}

/* === EQUIPO — 5 slides/vista forzado vía JS, foto cuadrada,
   máscara y full-bleed cancelados === */
html.phone-landscape .team-section {
  overflow-x: hidden;
}

/* Swiper landscape: width:100% (sin el truco full-bleed),
   padding lateral mínimo (4px) — los bordes los oculta la máscara
   definida en :root (--mask-izquierdo / --mask-derecho 22px).
   Cards naturalmente un poco más anchas con menos padding interno. */
html.phone-landscape .team-swiper {
  position: relative !important;
  left: 0 !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 4px 4px 28px !important;
}

html.phone-landscape .doctor-card {
  border-radius: 10px !important;
  box-shadow: 0 2px 10px rgba(36, 77, 156, 0.08) !important;
}

/* Aspect 3/4 (portrait) en lugar de cuadrado — muestra el doctor de
   cabeza a cintura sin recortes. La sección queda más alta pero la foto
   se ve completa. */
html.phone-landscape .doctor-img {
  aspect-ratio: 3 / 4 !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
}

html.phone-landscape .doctor-img img {
  object-position: center 15% !important;
}

html.phone-landscape .doctor-info {
  padding: 6px 9px 8px !important;
}

html.phone-landscape .doctor-info h3 {
  font-size: 0.7rem !important;
  margin-bottom: 1px !important;
  line-height: 1.2 !important;
}

html.phone-landscape .doctor-info p {
  font-size: 0.6rem !important;
  line-height: 1.2 !important;
}

html.phone-landscape .team-pagination {
  margin-top: 4px !important;
}

html.phone-landscape .team-pagination .swiper-pagination-bullet {
  width: 5px !important;
  height: 5px !important;
}

/* === TESTIMONIOS — todas las cards mismo tamaño (chicas) ===
   Forzar igualar alto vía flex stretch y limitar texto a 3 líneas. */
html.phone-landscape .testimonios-swiper .swiper-wrapper {
  align-items: stretch !important;
}

html.phone-landscape .testimonios-swiper .swiper-slide {
  height: auto !important;
  display: flex !important;
}

html.phone-landscape .testimonio-card {
  padding: 10px 12px !important;
  border-radius: 10px !important;
  height: 100% !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

html.phone-landscape .testimonio-text {
  font-size: 0.66rem !important;
  line-height: 1.35 !important;
  margin-bottom: 8px !important;
  /* Truncar a 3 líneas para que el texto largo no haga la card más alta */
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  overflow: hidden !important;
  flex: 1 !important;
}

html.phone-landscape .testimonio-stars {
  font-size: 0.65rem !important;
  margin-bottom: 6px !important;
}

html.phone-landscape .testimonio-avatar {
  width: 28px !important;
  height: 28px !important;
  font-size: 0.62rem !important;
}

html.phone-landscape .testimonio-author strong {
  font-size: 0.66rem !important;
}

html.phone-landscape .testimonio-author span {
  font-size: 0.56rem !important;
}

/* === GALERÍA — 4 columnas pequeñas + mostrar la 4ta imagen
   (que está oculta por default fuera de mobile portrait) === */
html.phone-landscape .galeria-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 6px !important;
}

html.phone-landscape .galeria-item--mobile-only {
  display: block !important;
}

html.phone-landscape .galeria-item {
  border-radius: 8px !important;
}

/* === CONTACTO — 2 columnas: info | mapa === */
html.phone-landscape .contacto-inner {
  grid-template-columns: 1fr 1.3fr !important;
  gap: 14px !important;
}

html.phone-landscape .contacto-item {
  margin-bottom: 8px !important;
}

html.phone-landscape .contacto-item h3 {
  font-size: 0.72rem !important;
  margin-bottom: 2px !important;
}

html.phone-landscape .contacto-item p,
html.phone-landscape .contacto-item a {
  font-size: 0.66rem !important;
}

html.phone-landscape .btn-whatsapp {
  width: auto !important;
  font-size: 0.7rem !important;
  padding: 8px 14px !important;
  margin-top: 10px !important;
}

/* Mapa alto para que su borde inferior alinee con el último item
   de la columna de contacto (horario 8:00-4:00 pm) */
html.phone-landscape .mapa-wrapper iframe {
  height: 320px !important;
}

/* === FOOTER — todo en 2-3 columnas chicas === */
html.phone-landscape #footer {
  padding: 18px 0 12px !important;
}

html.phone-landscape .footer-inner {
  grid-template-columns: 1.5fr 1fr 1fr !important;
  gap: 14px !important;
}

html.phone-landscape .footer-brand {
  grid-column: auto !important;
}

html.phone-landscape .footer-logo {
  width: 110px !important;
  margin-bottom: 6px !important;
}

html.phone-landscape .footer-brand p,
html.phone-landscape .footer-col p,
html.phone-landscape .footer-col a {
  font-size: 0.62rem !important;
  line-height: 1.4 !important;
}

html.phone-landscape .footer-col h4 {
  font-size: 0.7rem !important;
  margin-bottom: 6px !important;
}

html.phone-landscape .footer-col li {
  margin-bottom: 4px !important;
}

html.phone-landscape .footer-bottom {
  padding-top: 10px !important;
  margin-top: 12px !important;
}

html.phone-landscape .footer-copy {
  font-size: 0.58rem !important;
}

html.phone-landscape .social-icons a {
  width: 28px !important;
  height: 28px !important;
  font-size: 0.7rem !important;
}

/* === SWIPER: sin flechas (se usa swipe) === */
html.phone-landscape .team-prev,
html.phone-landscape .team-next,
html.phone-landscape .test-prev,
html.phone-landscape .test-next {
  display: none !important;
}

/* === FAQ (en home y subpáginas) === */
html.phone-landscape .faq-item {
  padding: 10px 12px !important;
  margin-bottom: 6px !important;
}

html.phone-landscape .faq-question {
  font-size: 0.74rem !important;
  padding: 0 !important;
}

html.phone-landscape .faq-answer {
  font-size: 0.66rem !important;
  line-height: 1.45 !important;
}

/* === WHATSAPP FLOTANTE — más chico para no tapar contenido === */
html.phone-landscape #whatsapp-float {
  width: 44px !important;
  height: 44px !important;
  font-size: 1.2rem !important;
  bottom: 14px !important;
  right: 14px !important;
}

/* ====================================================================
   PÁGINAS INTERNAS EN LANDSCAPE — Nosotros / Contacto / Servicios
   ==================================================================== */

/* === NOSOTROS PAGE — stats bar (4 en fila, no 2x2) === */
html.phone-landscape .nosotros-stats-bar {
  padding: 18px 0 !important;
}

html.phone-landscape .nosotros-stats-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
}

html.phone-landscape .nosotros-stat-num {
  font-size: clamp(1.1rem, 2.6vw, 1.6rem) !important;
  margin-bottom: 2px !important;
}

html.phone-landscape .nosotros-stat-label {
  font-size: 0.55rem !important;
  letter-spacing: 0.04em !important;
}

/* === NOSOTROS PAGE — sección de valores === */
html.phone-landscape .nosotros-valores-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  margin-top: 14px !important;
}

html.phone-landscape .valor-card {
  padding: 14px 12px !important;
  border-radius: 10px !important;
}

html.phone-landscape .valor-card-icon {
  width: 36px !important;
  height: 36px !important;
  font-size: 0.95rem !important;
  margin: 0 auto 8px !important;
}

html.phone-landscape .valor-card h3 {
  font-size: 0.82rem !important;
  margin-bottom: 4px !important;
}

html.phone-landscape .valor-card p {
  font-size: 0.68rem !important;
  line-height: 1.45 !important;
}

/* === SERVICIO PAGE — sección "Qué incluye / Por qué hacer" === */
html.phone-landscape .servicio-info {
  padding: var(--section-padding) !important;
}

html.phone-landscape .servicio-info .section-header p,
html.phone-landscape .servicio-info p {
  font-size: 0.72rem !important;
  line-height: 1.5 !important;
}

/* === SERVICIO PAGE — FAQ === */
html.phone-landscape .servicio-faq {
  padding: var(--section-padding) !important;
}

html.phone-landscape .servicio-faq .faq-list {
  margin-top: 14px !important;
  gap: 6px !important;
}

/* === CONTACTO PAGE — cards de contacto === */
html.phone-landscape .contacto-page-cards {
  padding: var(--section-padding) !important;
}

html.phone-landscape .contacto-cards-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  margin-top: 14px !important;
}

html.phone-landscape .contacto-card-item {
  padding: 12px 14px !important;
  gap: 12px !important;
  border-radius: 10px !important;
}

html.phone-landscape .contacto-card-icon {
  width: 36px !important;
  height: 36px !important;
  font-size: 0.9rem !important;
  border-radius: 10px !important;
}

html.phone-landscape .contacto-card-label {
  font-size: 0.58rem !important;
  margin-bottom: 2px !important;
}

html.phone-landscape .contacto-card-value {
  font-size: 0.72rem !important;
  line-height: 1.35 !important;
}

html.phone-landscape .contacto-cta-row {
  margin-top: 14px !important;
}

html.phone-landscape .contacto-cta-row .btn {
  font-size: 0.78rem !important;
  padding: 8px 16px !important;
}

/* === CONTACTO PAGE — mapa === */
html.phone-landscape .contacto-mapa-section {
  padding: 24px 0 !important;
}

html.phone-landscape .contacto-mapa-intro {
  font-size: 0.72rem !important;
  margin-top: 6px !important;
}

html.phone-landscape .contacto-mapa-frame {
  margin-top: 14px !important;
  height: 220px !important;
  border-radius: 12px !important;
}

/* === CONTACTO PAGE — FAQ === */
html.phone-landscape .contacto-faq-section .faq-list {
  margin-top: 14px !important;
  gap: 6px !important;
}

html.phone-landscape .contacto-faq-section .faq-item {
  padding: 12px 14px !important;
  border-left-width: 3px !important;
  border-radius: 8px !important;
}

html.phone-landscape .contacto-faq-section .faq-item h3 {
  font-size: 0.78rem !important;
  margin-bottom: 4px !important;
}

html.phone-landscape .contacto-faq-section .faq-item p {
  font-size: 0.7rem !important;
  line-height: 1.5 !important;
}

/* === CONTACTO PAGE — social channels === */
html.phone-landscape .contacto-social-section .section-header p {
  font-size: 0.72rem !important;
}

html.phone-landscape .social-channels-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  margin-top: 14px !important;
}

html.phone-landscape .social-channel-card {
  padding: 18px 14px 14px !important;
  border-radius: 10px !important;
}

html.phone-landscape .social-channel-card i {
  font-size: 1.6rem !important;
  margin-bottom: 8px !important;
}

html.phone-landscape .social-channel-card h3 {
  font-size: 0.82rem !important;
  margin-bottom: 3px !important;
}

html.phone-landscape .social-channel-card p {
  font-size: 0.62rem !important;
  line-height: 1.4 !important;
}

/* ============================================
   ACCESIBILIDAD — prefers-reduced-motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ CONTACTO PAGE — REDES SOCIALES ============ */
.contacto-social-row {
  margin-top: 24px;
}
.contacto-social-row .social-icons {
  margin-bottom: 0;
}
.contacto-social-row .social-icons a {
  background: var(--color-celeste);
  color: #fff;
}
.contacto-social-row .social-icons a:hover {
  background: var(--color-azul);
}

/* ============ CONTACTO PAGE — CTA ============ */
.cta-tratamientos-section {
  background: var(--color-gris-claro);
}

/* ============================================
   NOSOTROS PAGE
   ============================================ */
.nosotros-hero {
  padding-bottom: 80px;
  text-align: left;
}
.nosotros-hero p {
  max-width: 680px;
}
.nosotros-hero-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.nosotros-hero-btns--center {
  justify-content: center;
}
.nosotros-hero-btns .btn-whatsapp {
  margin-top: 0;
  padding: 13px 28px;
}

.nosotros-stats-bar {
  background: var(--color-azul);
  padding: 56px 0;
}
.nosotros-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.nosotros-stat-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.nosotros-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nosotros-valores-section {
  background: #fff;
}
.nosotros-valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}
.valor-card {
  background: var(--color-gris-claro);
  border-radius: var(--border-radius-card);
  padding: 32px 28px;
  text-align: center;
  transition: var(--transition-suave);
}
.valor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(36,77,156,0.1);
}
.valor-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-azul), var(--color-celeste));
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.valor-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-azul);
  margin-bottom: 10px;
}
.valor-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.65;
}

.nosotros-cta-section {
  background: var(--color-gris-claro);
  text-align: center;
}
.nosotros-cta-section .section-tag {
  color: var(--color-azul);
}
.nosotros-cta-section .section-title {
  color: var(--color-azul);
}
.nosotros-cta-section .section-title .accent {
  color: var(--color-celeste);
}
.nosotros-cta-section p {
  color: var(--color-texto);
  max-width: 540px;
  margin: 0 auto 32px;
}

.why-cta {
  text-align: center;
  margin-top: 24px;
}


/* ============================================
   CONTACTO PAGE — REDISEÑO
   ============================================ */
.contacto-page-cards {
  background: #fff;
}
.contacto-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.contacto-card-item {
  background: var(--color-gris-claro);
  border-radius: var(--border-radius-card);
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: var(--transition-suave);
}
.contacto-card-item:hover {
  box-shadow: 0 6px 24px rgba(36,77,156,0.1);
  transform: translateY(-2px);
}
.contacto-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-azul), var(--color-celeste));
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contacto-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-celeste);
  margin-bottom: 4px;
}
.contacto-card-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-texto);
  line-height: 1.5;
}
.contacto-card-value a {
  color: var(--color-texto);
  text-decoration: none;
  transition: color 0.2s;
}
.contacto-card-value a:hover {
  color: var(--color-celeste);
}
.contacto-cta-row {
  text-align: center;
  margin-top: 40px;
}

.contacto-mapa-section {
  background: var(--color-azul);
  padding: 70px 0;
}
.contacto-mapa-section .section-tag {
  color: var(--color-celeste);
}
.contacto-mapa-section .section-title {
  color: #fff;
}
.contacto-mapa-section .section-title .accent {
  color: var(--color-celeste);
}
.contacto-mapa-intro {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  max-width: 560px;
  margin: 16px auto 0;
  line-height: 1.65;
  text-align: center;
}
.contacto-mapa-frame {
  border-radius: 20px;
  overflow: hidden;
  margin-top: 44px;
  height: 420px;
}
.contacto-mapa-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.contacto-faq-section {
  background: var(--color-gris-claro);
}
.contacto-faq-section .faq-list {
  display: grid;
  gap: 16px;
  margin-top: 50px;
}
.contacto-faq-section .faq-item {
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  border-left: 4px solid var(--color-celeste);
}
.contacto-faq-section .faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-azul);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contacto-faq-section .faq-item h3 i {
  color: var(--color-celeste);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.contacto-faq-section .faq-item p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

.contacto-social-section {
  background: #fff;
}
.contacto-social-section .section-header p {
  color: #666;
  margin-top: 12px;
  font-size: 1rem;
}
.social-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.social-channel-card {
  border-radius: var(--border-radius-card);
  padding: 40px 24px 32px;
  text-align: center;
  transition: var(--transition-suave);
  text-decoration: none;
  display: block;
}
.social-channel-card.sc-facebook { background: #1877f2; }
.social-channel-card.sc-instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-channel-card.sc-tiktok { background: #010101; }
.social-channel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.2);
}
.social-channel-card i {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 16px;
  display: block;
}
.social-channel-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.social-channel-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

/* Responsive — Nosotros & Contacto redesign */
@media (max-width: 1024px) {
  .nosotros-valores-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .social-channels-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nosotros-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .nosotros-stat-num {
    font-size: 2.2rem;
  }
  .nosotros-valores-grid {
    grid-template-columns: 1fr;
  }
  .nosotros-hero-btns {
    flex-direction: column;
    align-items: flex-start;
  }
  .nosotros-hero-btns--center {
    align-items: center;
  }
  .nosotros-hero-btns--center .btn-whatsapp {
    order: 2;
    width: 100%;
    justify-content: center;
    margin-top: 0;
  }
  .nosotros-hero-btns--center .btn-celeste {
    order: 1;
    width: 100%;
    justify-content: center;
  }
  .contacto-cards-grid {
    grid-template-columns: 1fr;
  }
  .social-channels-grid {
    grid-template-columns: 1fr;
  }
  .contacto-mapa-frame {
    height: 300px;
  }
}

/* ====================================================================
   FALLBACK @MEDIA QUERY — landscape móvil sin depender de JS
   En caso de que la clase html.phone-landscape no se aplique en algún
   navegador (iOS Safari a veces tiene quirks), estas reglas vía @media
   garantizan que los estilos críticos de landscape se apliquen igual.
   Sin !important porque las reglas con .phone-landscape tienen mayor
   especificidad y ganan donde el JS sí funciona.
   ==================================================================== */
@media (orientation: landscape) and (max-height: 500px) {
  :root {
    --section-padding: 18px 0;
    --navbar-height: 50px;
    --mask-izquierdo: 22px;
    --mask-derecho: 22px;
    --border-radius-card: 10px;
  }

  /* Bloqueo total de scroll horizontal: touch-action pan-y impide
     que iOS interprete swipes horizontales sobre la página. */
  html {
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y pinch-zoom;
    max-width: 100vw;
    width: 100%;
  }

  body {
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y pinch-zoom;
    max-width: 100vw;
    width: 100%;
    margin: 0;
    /* Padding simétrico para que el contenido quede centrado, no pegado
       al borde sin notch (iPhone landscape: notch solo en un lado). */
    padding-left: max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    padding-right: max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }

  main {
    overflow-x: hidden;
    touch-action: pan-y pinch-zoom;
    max-width: 100vw;
  }

  section, .section {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Devolverle touch-action horizontal solo a los Swipers (necesitan swipe lateral) */
  .swiper, .team-swiper, .testimonios-swiper {
    touch-action: pan-x pan-y;
  }

  /* Navbar */
  #navbar { padding: 6px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; margin-left: auto; transform: scale(0.85); }
  .nav-logo .logo-blanco,
  .nav-logo .logo-color { width: 88px; }

  /* Hero principal (landing) */
  .hero {
    height: auto;
    min-height: calc(100dvh - 74px);
    padding-top: calc(var(--navbar-height) + 6px);
    padding-bottom: 10px;
  }
  .hero-content { max-width: 540px; padding-top: 0; }
  .hero-title {
    font-size: clamp(0.95rem, 2.4vw, 1.25rem);
    line-height: 1.15;
    margin-bottom: 4px;
  }
  .hero-tag {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    padding: 2px 8px;
  }
  .hero-subtitle {
    font-size: 0.7rem;
    line-height: 1.45;
    margin-bottom: 10px;
  }
  .hero-btns {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .hero-btns .btn {
    font-size: 0.7rem;
    padding: 6px 12px;
    width: auto;
    border-radius: 999px;
  }
  .scroll-indicator { display: none; }

  /* Hero de páginas internas (servicios, nosotros, galería, contacto) */
  .servicio-hero,
  .nosotros-hero,
  .galeria-page-hero,
  .contacto-page-hero {
    min-height: 100dvh;
    padding-top: calc(var(--navbar-height) + 12px);
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
  }
  .servicio-hero-tag {
    font-size: 0.6rem;
    padding: 3px 10px;
    margin-bottom: 10px;
  }
  .servicio-hero h1,
  .nosotros-hero h1,
  .galeria-page-hero h1,
  .contacto-page-hero h1 {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    line-height: 1.15;
    margin-bottom: 8px;
  }
  .servicio-hero p,
  .nosotros-hero p,
  .galeria-page-hero p,
  .contacto-page-hero p {
    font-size: 0.78rem;
    line-height: 1.5;
  }
  .servicio-hero .btn {
    font-size: 0.78rem;
    padding: 8px 16px;
  }

  /* Botones Nosotros — forzar fila horizontal (el portrait los apila en columna) */
  .nosotros-hero-btns {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .nosotros-hero-btns--center {
    flex-direction: row;
    justify-content: center;
  }
  .nosotros-hero-btns--center .btn-whatsapp,
  .nosotros-hero-btns--center .btn-celeste {
    width: auto;
    flex: 0 1 auto;
  }

  /* Stats */
  .stats-section { padding: 12px 0; }
  .stat-item { padding: 6px 6px; }
  .stat-number {
    font-size: clamp(0.95rem, 2.6vw, 1.35rem);
    margin-bottom: 2px;
    line-height: 1;
  }
  .stat-label {
    font-size: 0.55rem;
    letter-spacing: 0.04em;
  }
  .stat-divider { height: 24px; display: block; }

  /* Forzar 4 items en fila en landscape (cancela el 2x2 de portrait) */
  .stat-row {
    display: contents;
    flex: unset;
  }
  .stats-grid {
    flex-wrap: nowrap;
    gap: 0;
  }
  .stat-item {
    flex: 1;
    min-width: 0;
    border: none;
  }

  /* Section headers */
  .section-title {
    font-size: clamp(0.92rem, 2.5vw, 1.2rem);
    line-height: 1.2;
    margin-bottom: 0;
  }
  .section-tag {
    font-size: 0.6rem;
    margin-bottom: 4px;
    letter-spacing: 0.1em;
  }
  .section-header { margin-bottom: 10px; }
  .section-header p { font-size: 0.72rem; margin-top: 4px; }

  /* Servicios — 3 columnas */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .service-card { border-radius: 10px; }
  .service-img-wrap { aspect-ratio: 16/9; height: auto; }
  .service-card-body { padding: 8px 10px 10px; }
  .service-card h3 {
    font-size: 0.78rem;
    margin-bottom: 2px;
  }
  .service-card p {
    font-size: 0.65rem;
    line-height: 1.4;
    margin-bottom: 4px;
  }

  /* Nosotros */
  .why-inner {
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    align-items: center;
  }
  .why-image {
    display: flex;
    margin-right: 0;
    max-height: 240px;
    align-items: center;
  }
  .why-img-frame {
    aspect-ratio: auto;
    width: 100%;
    height: 240px;
    border-radius: 12px;
  }
  .why-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 14px;
  }
  .why-point h3 {
    font-size: 0.74rem;
    margin-bottom: 1px;
  }
  .why-point p {
    font-size: 0.62rem;
    line-height: 1.35;
  }
  .why-icon {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
    border-radius: 6px;
  }

  /* Equipo Swiper */
  .team-section { overflow-x: hidden; }
  .team-swiper {
    position: relative;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 4px 4px 28px;
  }
  .doctor-card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(36, 77, 156, 0.08);
  }
  .doctor-img {
    aspect-ratio: 3/4;
    height: auto;
    max-height: none;
    min-height: 0;
  }
  .doctor-img img { object-position: center 15%; }
  .doctor-info { padding: 6px 9px 8px; }
  .doctor-info h3 {
    font-size: 0.7rem;
    margin-bottom: 1px;
    line-height: 1.2;
  }
  .doctor-info p {
    font-size: 0.6rem;
    line-height: 1.2;
  }
  .team-prev,
  .team-next,
  .test-prev,
  .test-next { display: none !important; }

  /* Testimonios */
  .testimonios-swiper .swiper-wrapper { align-items: stretch; }
  .testimonios-swiper .swiper-slide { height: auto; display: flex; }
  .testimonio-card {
    padding: 10px 12px;
    border-radius: 10px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .testimonio-text {
    font-size: 0.66rem;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    flex: 1;
  }
  .testimonio-stars { font-size: 0.65rem; margin-bottom: 6px; }

  /* Galería */
  .galeria-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .galeria-item--mobile-only { display: block; }

  /* Contacto */
  .contacto-inner {
    grid-template-columns: 1fr 1.3fr;
    gap: 14px;
  }
  .mapa-wrapper iframe { height: 320px; }

  /* Footer */
  #footer { padding: 18px 0 12px; }
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 14px;
  }
  .footer-logo { width: 110px; margin-bottom: 6px; }
  .footer-brand p,
  .footer-col p,
  .footer-col a {
    font-size: 0.62rem;
    line-height: 1.4;
  }
  .footer-col h4 {
    font-size: 0.7rem;
    margin-bottom: 6px;
  }

  /* WhatsApp float */
  #whatsapp-float {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    bottom: 14px;
    right: 14px;
  }

  /* Menú móvil drawer compacto */
  .mob-link {
    height: 38px;
    min-height: 0;
    font-size: 0.72rem;
    padding: 0 16px;
    gap: 10px;
    letter-spacing: 0.04em;
  }
  .mob-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }
  .mob-sublink {
    padding: 5px 20px 5px 44px;
    font-size: 0.68rem;
  }
  .mobile-menu ul { padding: 4px 0; }
}
