/* ===========================
   FUENTES (Karu — del diseño XD)
=========================== */
@font-face {
  font-family: 'Karu';
  src: url('assets/fonts/Karu-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Karu';
  src: url('assets/fonts/Karu-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Karu';
  src: url('assets/fonts/Karu-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Karu';
  src: url('assets/fonts/Karu-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Karu';
  src: url('assets/fonts/Karu-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Karu';
  src: url('assets/fonts/Karu-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #D93833;
  --red-dark: #b82c28;
  --yellow: #FFE100;
  --blue: #075384;
  --dark: #1a1a1a;
  --darker: #111;
  --muted: #666;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(0,0,0,0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Karu', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

/* ===========================
   HEADER
=========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background: rgba(217, 56, 51, 0.97);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  letter-spacing: -0.3px;
}

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

.nav-link {
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--yellow);
}

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

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===========================
   HERO — sección completa; personaje 732px de alto
=========================== */
.hero {
  background-color: #D93833;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) 1.1fr;
  gap: 20px 36px;
  align-items: center;
  width: 100%;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 732px;
  position: relative;
  background: transparent;
  box-shadow: none;
  filter: none;
  overflow: visible;
}

/* Personaje: ALTURA FIJA 732px */
.hero-banner {
  display: block;
  width: 430px;          /* proporción del PNG 430×732 */
  height: 732px !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 430px;
  min-height: 732px !important;
  object-fit: fill;
  object-position: bottom center;
  flex-shrink: 0;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  border: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 auto;
}

.hero-text {
  color: var(--white);
  position: relative;
  z-index: 2;
}

.hero-title {
  font-weight: 700;
  font-size: clamp(72px, 11vw, 140px);
  line-height: 0.88;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: -3px;
  display: inline-block;
  transform-origin: center bottom;
  /* Delay de 1s tras cargar la página, luego anima */
  animation: holaAlegre 1.15s cubic-bezier(0.34, 1.45, 0.64, 1) 1s both;
}

/* Animación breve y alegre: pop + color #FFE100 → blanco */
@keyframes holaAlegre {
  0% {
    opacity: 0;
    transform: scale(0.55) rotate(-6deg) translateY(18px);
    color: #FFE100;
    text-shadow: 0 0 0 rgba(255, 225, 0, 0);
  }
  35% {
    opacity: 1;
    transform: scale(1.12) rotate(3deg) translateY(-6px);
    color: #FFE100;
    text-shadow: 0 0 28px rgba(255, 225, 0, 0.75);
  }
  55% {
    transform: scale(0.96) rotate(-1.5deg) translateY(2px);
    color: #FFF6A0;
    text-shadow: 0 0 16px rgba(255, 225, 0, 0.4);
  }
  75% {
    transform: scale(1.04) rotate(1deg) translateY(-2px);
    color: #FFFEF0;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg) translateY(0);
    color: #ffffff;
    text-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title {
    animation: none;
    color: #fff;
  }
}

.hero-intro {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.hero-description {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
  color: rgba(255,255,255,0.95);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-description strong {
  font-weight: 700;
}

/* Botón "Haz tu cita aquí" — mismo diseño del XD, texto HTML (no se corta en Android) */
.btn-cita-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 56px;
  padding: 0.72em 1.55em;
  background-color: #FFE100;
  color: #075384;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.15;
  white-space: nowrap;
  max-width: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}

.btn-cita-hero-text {
  display: inline-block;
  font-family: 'Karu', 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.15rem, 4.6vw, 2rem);
  letter-spacing: -0.02em;
  color: #075384;
  white-space: nowrap;
}

.btn-cita-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  background-color: #fff;
}

.btn-cita-hero:hover .btn-cita-hero-text {
  color: #D93833;
}

/* Buttons (formulario y otros) */
.btn-cta {
  display: inline-block;
  background-color: var(--yellow);
  color: var(--blue);
  font-family: inherit;
  font-weight: 700;
  font-size: 17px;
  padding: 15px 38px;
  border-radius: 50px;
  transition: all 0.25s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.18);
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  background-color: var(--white);
  color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}

.btn-full {
  width: 100%;
  text-align: center;
}

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

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header.light .section-title,
.section-header.light .section-subtitle {
  color: var(--white);
}

.section-header.light .section-subtitle {
  opacity: 0.9;
}

.section-title {
  font-weight: 700;
  font-size: clamp(34px, 5vw, 50px);
  color: var(--red);
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.section-title.light {
  color: var(--white);
}

.section-title-yellow {
  color: var(--yellow) !important;
}

.section-subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ===========================
   PATOLOGÍAS — carrusel dinámico
   (personaje + texto HTML + botones SVG del diseño)
=========================== */
.patologias {
  background: var(--red);
  overflow: hidden;
  padding-top: 72px;
  padding-bottom: 72px;
}

.patologias > .container {
  max-width: 1100px;
}

.patologias .section-header {
  text-align: left;
  margin-bottom: 28px;
  padding-left: clamp(4px, 1.2vw, 16px);
}

.patologias .section-header .section-title,
.patologias .section-header .section-subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.patologias .section-header .section-subtitle {
  max-width: 36rem;
}

.patologias-cta {
  margin-top: 36px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.slider {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  /* Espacio para botones (84px) + margen libre respecto al texto */
  padding: 0 clamp(96px, 10vw, 120px);
}

.slider-track {
  position: relative;
  min-height: 0;
}

.slide {
  display: none;
  animation: fadeSlide 0.45s ease;
}

.slide.is-active {
  display: block;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.1fr);
  gap: 20px 32px;
  align-items: center;
  background: transparent;
  min-height: 420px;
}

.slide-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  z-index: 1;
  min-height: 0;
  /* Evita que el personaje empuje el texto hacia el botón derecho */
  max-width: 100%;
}

.slide-char {
  display: block;
  width: auto;
  /* Tamaño razonable y uniforme en todos los slides */
  height: min(480px, 56vh);
  max-height: min(480px, 56vh);
  max-width: min(380px, 100%);
  object-fit: contain;
  object-position: bottom center;
  background: transparent;
  filter: none;
  box-shadow: none;
}

.slide-copy {
  color: #fff;
  text-align: left;
  /* Sin solape sobre el personaje ni sobre el botón derecho */
  margin-left: 0;
  margin-right: 0;
  position: relative;
  z-index: 2;
  padding-right: 12px;
  max-width: 32rem;
  box-sizing: border-box;
}

.slide-copy h3 {
  font-weight: 700;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  color: #fff;
}

.slide-copy .slide-sub {
  font-weight: 700;
  display: inline;
}

.slide-lead {
  font-weight: 700;
  font-size: clamp(15px, 1.7vw, 17px);
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.45;
}

.slide-copy p {
  font-size: clamp(14.5px, 1.5vw, 16px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 12px;
}

.slide-copy p:last-child {
  margin-bottom: 0;
}

/* Botones SVG del diseño (assets/carrusel/boton-*.svg) */
.slider-hit {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(56px, 8vw, 84px);
  height: clamp(56px, 8vw, 84px);
  border: none;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  z-index: 6;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.2s ease;
}

.slider-hit-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.slider-hit-img.is-default {
  opacity: 1;
}

.slider-hit-img.is-hover {
  opacity: 0;
}

.slider-hit:hover .slider-hit-img.is-default,
.slider-hit:focus-visible .slider-hit-img.is-default {
  opacity: 0;
}

.slider-hit:hover .slider-hit-img.is-hover,
.slider-hit:focus-visible .slider-hit-img.is-hover {
  opacity: 1;
}

.slider-hit.prev { left: 0; }
.slider-hit.next { right: 0; }

.slider-hit:hover,
.slider-hit:focus-visible {
  outline: none;
  transform: translateY(-50%) scale(1.04);
}

.slider-hit:active {
  transform: translateY(-50%) scale(0.97);
}

/* Dots reales (clicables) */
.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  position: relative;
  z-index: 5;
}

.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #FFE100;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-dot.is-active,
.slider-dot[aria-selected="true"] {
  background: #FFE100;
  transform: scale(1.12);
}

.slider-dot:hover,
.slider-dot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 225, 0, 0.35);
}

/* ===========================
   CREDENCIALES — #075384 (XD)
=========================== */
section#credenciales,
section.credenciales,
.section.credenciales {
  background: #075384 !important;
  background-color: #075384 !important;
  background-image: none !important;
  color: #ffffff !important;
  padding: 0 !important;
  overflow: hidden;
  width: 100%;
}

.credenciales-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.2fr);
  gap: 20px 32px;
  /* foto al borde inferior del segmento */
  align-items: end;
  min-height: 560px;
  padding-top: 48px;
  padding-bottom: 0;
  max-width: 1180px;
}

.credenciales-photo {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  align-self: end;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  isolation: isolate;
  /* pega la imagen al borde inferior de la sección */
  margin-bottom: 0;
  overflow: visible;
}

/* Destello de luz azul detrás del doctor (+30% intensidad) */
.credenciales-photo::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 85%;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse 72% 62% at 50% 42%,
      rgba(120, 190, 230, 0.59) 0%,
      rgba(70, 150, 200, 0.36) 28%,
      rgba(30, 110, 165, 0.18) 52%,
      rgba(7, 83, 132, 0) 74%
    ),
    radial-gradient(
      ellipse 58% 48% at 48% 38%,
      rgba(180, 220, 245, 0.29) 0%,
      rgba(100, 175, 220, 0.13) 40%,
      transparent 70%
    );
  filter: blur(2px);
}

.doctor-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  margin: 0;
  padding: 0;
  vertical-align: bottom;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
  position: relative;
  z-index: 1;
}

/* Degradado azul del XD: a todo el ancho para no formar recuadro en los bordes */
.credenciales-photo::after {
  content: "";
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 0;
  width: 100vw;
  height: 48%;
  z-index: 2;
  pointer-events: none;
  transform: translateX(-50%);
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: linear-gradient(
    to top,
    #075384 0%,
    #075384 10%,
    rgba(7, 83, 132, 0.9) 28%,
    rgba(7, 83, 132, 0.5) 52%,
    rgba(7, 83, 132, 0.15) 78%,
    rgba(7, 83, 132, 0) 100%
  );
}

.credenciales-panel {
  padding: 24px 0 64px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: center;
}

/* Recuadro Group 131 — degradado + sombra solo hacia afuera */
.cred-box {
  position: relative;
  width: 100%;
  max-width: 680px;
  padding: 40px 36px 36px;
  border-radius: 0;
  box-sizing: border-box;
  isolation: isolate;
  overflow: visible;
  /* Fondo opaco para que la sombra no se vea “dentro” */
  background:
    linear-gradient(
      118deg,
      #6b7d2a 0%,
      #0f5a7e 28%,
      #075384 58%,
      #054a72 100%
    );
  border: 1px solid rgba(102, 146, 159, 0.45);
  /* Solo sombras exteriores (sin inset) */
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 6px 14px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Sombra oval inferior — solo por fuera, debajo del recuadro */
.cred-box::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 100%;
  height: 40px;
  margin-top: 4px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 65% 70% at 50% 0%,
    rgba(0, 20, 45, 0.45) 0%,
    rgba(0, 20, 45, 0.18) 45%,
    transparent 72%
  );
  filter: blur(4px);
}

/* Capa de recorte: evita que cualquier sombra se dibuje por encima del fondo */
.cred-box::after {
  content: none;
}

.cred-eyebrow {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: #FFE100 !important;
  margin-bottom: 10px;
}

.cred-name {
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.15;
  color: #ffffff !important;
  letter-spacing: -0.6px;
  margin-bottom: 28px;
  white-space: nowrap;
  display: block;
}

.cred-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  width: 100%;
}

.cred-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: default;
  transition:
    background 0.28s ease,
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

/* Animación hover de las tarjetas */
.cred-card:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-4px) translateX(4px);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.28),
    0 4px 10px rgba(0, 0, 0, 0.15);
}

.cred-card .cred-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #FFE100 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  line-height: 0 !important;
  font-size: 0 !important;
  overflow: hidden;
  transition: transform 0.28s ease;
}

.cred-card:hover .cred-icon {
  transform: scale(1.06);
}

.cred-card .cred-icon .cred-svg,
.cred-card .cred-icon svg {
  display: block;
  margin: 0 auto;
  padding: 0;
  border: 0;
  flex-shrink: 0;
}

.cred-card .cred-icon .cred-svg-bone {
  width: 38px;
  height: 38px;
}

.cred-card .cred-icon .cred-svg-star {
  width: 32px;
  height: 31px;
}

.cred-card .cred-icon .cred-svg-heart {
  width: 34px;
  height: 29px;
}

.cred-card-text {
  min-width: 0;
}

.cred-card-text strong {
  display: block;
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 700;
  font-style: italic;
  color: #ffffff !important;
  margin-bottom: 3px;
  line-height: 1.25;
}

.cred-card-text span {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1.4;
}

/* ===========================
   BLOG
=========================== */
.blog {
  background: #E2E2E2;
}

/* Títulos del blog sobre fondo claro */
.blog .section-header .section-title {
  color: #075384;
}

.blog .section-header .section-subtitle {
  color: rgba(7, 83, 132, 0.78);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.blog-grid.is-from-wordpress .blog-card {
  max-width: 420px;
  width: 100%;
  justify-self: center;
}

@media (min-width: 960px) {
  .blog-grid.is-from-wordpress {
    grid-template-columns: repeat(3, 1fr);
  }
  .blog-grid.is-from-wordpress .blog-card {
    max-width: none;
    justify-self: stretch;
  }
}

.blog-card {
  background: #075384;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(7, 83, 132, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(7, 83, 132, 0.3);
}

.blog-image {
  height: 200px;
  overflow: hidden;
  background-color: #054066;
}

.blog-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.blog-content {
  padding: 26px 22px;
  color: var(--white);
}

.blog-date {
  font-size: 12px;
  color: var(--yellow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.blog-content h3 {
  font-weight: 700;
  font-size: 18px;
  margin: 10px 0 12px;
  line-height: 1.35;
  color: #fff;
}

.blog-content p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 16px;
  line-height: 1.5;
}

.blog-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--yellow);
  transition: color 0.2s;
}

.blog-link:hover {
  color: #fff;
}

/* Tarjeta completa clickeable (posts de WordPress) */
.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.blog-card-link .blog-link {
  display: inline-block;
}

.blog-card-link:hover .blog-link {
  color: #fff;
}

.blog-status {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 16px;
  color: #075384;
  font-weight: 600;
}

.blog-status.is-error {
  color: #D93833;
}

.blog-wp-hint {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 13px;
  color: rgba(7, 83, 132, 0.75);
  margin: 8px 0 0;
}

/* ===========================
   CITA
=========================== */
.cita {
  background: #E2E2E2;
  padding: 80px 0;
}

.cita-wrapper {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
}

.cita-visual {
  display: flex;
  justify-content: center;
}

.cita-char {
  max-height: 480px;
  width: auto;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,0.18));
}

.cita-panel {
  color: #075384;
}

.cita-title {
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -1px;
  color: #075384;
}

.cita-lead {
  font-size: 16px;
  opacity: 1;
  margin-bottom: 28px;
  max-width: 440px;
  line-height: 1.55;
  color: rgba(7, 83, 132, 0.85);
}

.cita-form {
  background: var(--white);
  border-radius: 20px;
  padding: 32px 28px;
  color: var(--dark);
  box-shadow: var(--shadow);
}

.cita-step[hidden] {
  display: none !important;
}

.cita-step-label {
  font-size: 14px;
  font-weight: 700;
  color: #075384;
  margin: 0 0 14px;
}

.cita-step-error {
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 12px;
}

.cita-centros {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  max-height: min(420px, 52vh);
  overflow-y: auto;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.cita-ciudad-label {
  margin: 10px 0 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #075384;
}

.cita-ciudad-label:first-child {
  margin-top: 0;
}

.cita-centro-card {
  display: block;
  cursor: pointer;
  margin: 0;
}

.cita-centro-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cita-centro-card-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #fafafa;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cita-centro-card:hover .cita-centro-card-inner {
  border-color: rgba(7, 83, 132, 0.35);
  background: #fff;
}

.cita-centro-card.is-selected .cita-centro-card-inner,
.cita-centro-card input:checked + .cita-centro-card-inner {
  border-color: #075384;
  background: rgba(7, 83, 132, 0.06);
  box-shadow: 0 0 0 1px #075384;
}

.cita-centro-name {
  font-weight: 700;
  font-size: 15px;
  color: #1a1a1a;
}

.cita-centro-hint {
  font-size: 13px;
  color: #666;
}

.cita-step-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 14px;
}

.cita-back {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #075384;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cita-back:hover {
  color: var(--red);
}

.cita-centro-selected {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  background: rgba(7, 83, 132, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s;
  background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.cita-whatsapp {
  margin-top: 18px;
  font-size: 15px;
  text-align: center;
  color: #333;
}

.cita-whatsapp a {
  color: #075384;
  font-weight: 700;
  text-decoration: underline;
}

.cita-whatsapp a:hover {
  color: var(--red);
}

/* ===========================
   CONTACTO
=========================== */
.contacto {
  background: #075384;
  color: var(--white);
  padding: 70px 0;
}

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

.contacto-lead {
  margin-top: 10px;
  opacity: 0.85;
  font-size: 16px;
}

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

.contacto-item strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--yellow);
  margin-bottom: 6px;
}

.contacto-item a,
.contacto-item p {
  font-size: 17px;
  font-weight: 500;
}

.contacto-item a:hover {
  color: var(--yellow);
}

/* ===========================
   FOOTER + WHATSAPP FLOAT
=========================== */
.footer {
  background: #0a0a0a;
  color: #888;
  padding: 24px 0;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-credit {
  color: #555;
}

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform 0.2s;
}

.wa-float:hover {
  transform: scale(1.08);
}

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

  .hero-image {
    order: -1;
    min-height: 0;
    justify-content: center;
  }

  .hero-banner {
    width: auto !important;
    height: min(732px, 52vh) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 90vw !important;
    max-height: min(732px, 52vh) !important;
    object-fit: contain;
  }

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

  .hero-description {
    max-width: 560px;
  }

  .slide-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
    min-height: 0;
  }

  .slide-copy {
    text-align: left;
    margin-left: 0; /* sin solape en tablet/móvil */
    padding-right: 4px;
    max-width: none;
  }

  .slide-char {
    height: min(380px, 46vh);
    max-height: min(380px, 46vh);
    max-width: min(320px, 88vw);
  }

  .slider {
    padding: 0 clamp(64px, 10vw, 88px);
  }

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

  .credenciales-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 0;
    align-items: stretch;
    gap: 0;
  }

  .credenciales-photo {
    order: -1;
    margin-bottom: 0;
    width: 100%;
  }

  .doctor-img {
    max-height: 420px;
    max-width: 360px;
  }

  .credenciales-panel {
    padding: 0 0 48px;
    margin-top: -48px;
    justify-content: center;
    align-self: stretch;
    position: relative;
    z-index: 4;
  }

  .cred-box {
    max-width: 560px;
    margin: 0 auto;
    padding: 28px 20px 24px;
  }

  .cred-name {
    white-space: normal;
    font-size: clamp(22px, 5.5vw, 32px);
  }

  .cred-card {
    text-align: left;
  }

  .cita-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cita-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .cita-char {
    max-height: 320px;
  }

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

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--red);
    flex-direction: column;
    padding: 20px;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 0 50px;
    min-height: auto;
  }

  .hero-banner {
    width: auto !important;
    height: min(732px, 44vh) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 85vw !important;
    max-height: min(732px, 44vh) !important;
    object-fit: contain;
  }

  .hero-title {
    font-size: 64px;
    letter-spacing: -2px;
  }

  .slider {
    padding: 0 60px;
  }

  .slider-hit {
    width: 52px;
    height: 52px;
  }

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

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

  .doctor-img {
    max-height: 300px;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 52px;
  }

  .hero-banner {
    width: auto !important;
    height: min(732px, 38vh) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 80vw !important;
    max-height: min(732px, 38vh) !important;
    object-fit: contain;
  }

  .cita-form {
    padding: 24px 18px;
  }

  .slider {
    padding: 0 56px;
  }

  .slider-hit {
    width: 48px;
    height: 48px;
  }

  .slide-char {
    height: min(300px, 38vh);
    max-height: min(300px, 38vh);
    max-width: min(260px, 80vw);
  }

  .slide-copy {
    margin-left: 0;
    padding-right: 0;
  }
}
