/* =====================================================
   PersonalidadSana — styles.css (v1)
   Paleta cálida profesional: terracota + vino
   Edita las variables en :root para cambiar toda la estética
   ===================================================== */

:root {
  /* === Brand Palette — edita estas 7 variables === */
  --bg: #ffffff; /* fondo general */
  --surface: #fff8f5; /* tarjetas/superficies */
  --ink: #1a1412; /* texto principal */
  --muted: #6b5e59; /* texto secundario */
  --primary: #9a3412; /* terracota */
  --accent: #7c2d12; /* vino/cobre oscuro */
  --ring: rgba(154, 52, 18, 0.28); /* focus accesible */

  --radius: 16px;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --maxw: 1100px;
}

/* ==================== Base / Reset ==================== */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Host Grotesk", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans";
  font-weight: 500;
  color: #1e2746; /* texto principal */
  background: linear-gradient(180deg, var(--bg) 0%, #fff9f7 100%);
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==================== Layout helpers ==================== */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
}
.shadow {
  box-shadow: var(--shadow);
}
.rounded {
  border-radius: var(--radius);
}
.muted {
  color: var(--muted);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid #edd3ca;
  border-radius: 999px;
  font-size: 0.85rem;
  background: #fff;
}
.scroll-smooth {
  scroll-behavior: smooth;
}
.social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
}
.social-icons a {
  color: var(--accent);
  transition: color 0.3s ease;
}
.social-icons a:hover {
  color: var(--primary);
}
header .social-icons {
  justify-content: flex-end;
}

/* ==================== Header / Nav ==================== */
/* Accesible: útil para screen readers */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Botón hamburguesa animado */
.menu-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #edd3ca;
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.06s ease;
}
.menu-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(154, 52, 18, 0.15);
}

/* 3 barras de la hamburguesa */
.burger,
.burger::before,
.burger::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent); /* vino */
  border-radius: 2px;
  transition: transform 0.4s ease, opacity 0.2s ease, background-color 0.2s ease;
}
.burger {
  position: relative;
}
.burger::before {
  position: absolute;
  top: -7px;
  left: 0;
}
.burger::after {
  position: absolute;
  top: 7px;
  left: 0;
}

/* Al abrir: se convierte en “X” */
.menu-btn[aria-expanded="true"] .burger {
  background: transparent;
}
.menu-btn[aria-expanded="true"] .burger::before {
  transform: translateY(7px) rotate(45deg);
  background: var(--primary); /* terracota */
}
.menu-btn[aria-expanded="true"] .burger::after {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--primary);
}

/* Backdrop del menú */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 40;
}
.nav-backdrop.show {
  opacity: 1;
}

/* Header “base” para desktop */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(6px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid #f0e4df;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
}

/* Menú horizontal en desktop */
nav ul {
  list-style: none;
  display: flex; /* 👈 fila horizontal */
  gap: 1rem;
  margin: 0;
  padding: 0;
}
nav a {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
}
nav a:hover {
  background: #fff1eb;
}

/* El botón hamburguesa se oculta en desktop */
@media (min-width: 901px) {
  .menu-btn {
    display: none;
  }
}

/* --- Menú móvil (animado) --- */
/* --- Menú móvil (vertical e interactivo) --- */
@media (max-width: 900px) {
  nav {
    position: relative;
    z-index: 50;
  }

  /* Panel del menú */
  nav ul {
    position: absolute;
    right: 1rem;
    top: 60px;
    background: #fff;
    border: 1px solid #f0e4df;
    border-radius: 12px;
    padding: 0.25rem;
    box-shadow: var(--shadow);
    width: min(260px, 90vw);

    /* disposición vertical */
    display: flex;
    flex-direction: column;
    align-items: stretch;

    /* cerrado por defecto */
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, max-height 0.35s ease;
  }
  nav ul.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    max-height: 420px;
  }

  /* Animación de aparición */
  nav ul li {
    opacity: 0;
    transform: translateY(-6px);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  nav ul.open li {
    opacity: 1;
    transform: translateY(0);
  }
  nav ul.open li:nth-child(1) {
    transition-delay: 0.04s;
  }
  nav ul.open li:nth-child(2) {
    transition-delay: 0.08s;
  }
  nav ul.open li:nth-child(3) {
    transition-delay: 0.12s;
  }
  nav ul.open li:nth-child(4) {
    transition-delay: 0.16s;
  }

  /* Enlaces a todo lo ancho con feedback visual */
  nav ul li a {
    display: block;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.15s ease;
  }
  nav ul li + li a {
    border-top: 1px solid #f4e7e1;
  }
  nav ul li a:hover {
    background: #fff1eb;
    transform: translateX(2px);
  }
}

/* (opcional) foco accesible y hover de color */
.menu-btn:focus-visible {
  box-shadow: 0 0 0 4px var(--ring);
}
.menu-btn:hover .burger,
.menu-btn:hover .burger::before,
.menu-btn:hover .burger::after {
  background: var(--primary);
}

/* ============================
   Tipografía global
============================ */
/* Texto general */
body {
  font-family: "Host Grotesk", sans-serif;
  font-weight: 500; /* peso regular para texto */
  color: #1e2746; /* color principal de texto */
}

/* Títulos y encabezados */
.hero-title,
h1,
h2,
h3 {
  font-family: "Host Grotesk", sans-serif;
  font-weight: 300; /* peso más ligero para dar elegancia */
  letter-spacing: 0.5px; /* opcional: separa un poco las letras */
}

/* ==================== Hero ==================== */
.hero {
  padding: 4rem 0 2rem;
}
.hero--center {
  text-align: center;
  padding: 5rem 0 2.5rem;
}
.hero .chip {
  margin: 0 auto;
}
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted);
  max-width: 750px;
  margin: 0.75rem auto 0;
}
.actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.foto-container {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}
.perfil {
  width: 220px;
  height: 280px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.underline {
  width: 100px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 0.6rem auto 0;
}
/* --- HERO con imagen integrada --- */
.hero--integrado {
  position: relative;
  padding: 0; /* el padding lo manejará el contenido */
  min-height: clamp(420px, 60vh, 720px);
  color: #fff; /* texto blanco por defecto sobre la imagen */
  overflow: clip; /* recorta cualquier desborde de la imagen */
}

/* La imagen ocupa todo el hero */
.hero-bg {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* que la foto cubra sin deformarse */
  display: block;
}

/* Overlay para legibilidad (usa tu paleta cálida) */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    120deg,
    rgba(122, 45, 18, 0.55),
    /* approx #7a2d12 (vino/terracota oscuro) */ rgba(26, 20, 18, 0.35)
      /* approx #1a1412 (ink cálido) */
  );
}

/* Contenido del hero */
.hero-content {
  position: relative; /* sobre la imagen y overlay */
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  gap: 0.6rem;

  /* Colocación en desktop: hacia la parte baja-izquierda */
  align-content: end;
  min-height: inherit;
}

/* Titulares del hero (mantiene tu tipografía) */
.hero-title {
  font-size: clamp(2rem, 6vw, 4.6rem);
  font-weight: 400;
  letter-spacing: 0.3px; /* un poco menos para que quepa mejor */
  line-height: 1.05;
  white-space: nowrap; /* 👈 evita el salto de línea */
}

/* en móviles, sí permitimos salto para que no desborde */
@media (max-width: 900px) {
  .hero-title {
    white-space: normal;
  }
}
.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 400;
  color: #f2ece7;
  margin: 0;
}

/* En pantallas grandes, baja un poco el bloque para “anclar” visualmente */
@media (min-width: 1024px) {
  .hero-content {
    padding: 3rem;
    padding-left: 8%;
    padding-right: 8%;
    padding-bottom: 6%;
  }
}

/* En móviles: centrado para que se lea perfecto */
@media (max-width: 768px) {
  .hero-content {
    align-content: end;
    text-align: left; /* puedes poner center si prefieres */
    padding: 2rem 1rem 2.5rem;
  }
}

/* ==================== Sections / Cards ==================== */
/* Grilla 100% responsive: 1 col en móvil, 2–3 en pantallas mayores */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

/* Centrar los ítems cuando la última fila queda incompleta */
#servicios .grid {
  justify-content: center; /* centra las columnas sobrantes */
}

/* Centrar el grid en secciones como Servicios o Recursos */
.grid-center {
  justify-content: center;
}

#recursos .grid {
  justify-content: center; /* 👈 centra las tarjetas dentro del grid */
}

/* Opcional: en pantallas grandes, fuerza que sean 2 columnas por fila */
@media (min-width: 901px) {
  #servicios .grid {
    grid-template-columns: repeat(2, 1fr); /* 2 tarjetas por fila */
    max-width: 800px; /* limita ancho para que quede bonito */
    margin: 0 auto; /* centra la grilla completa */
  }
}

section {
  padding: 3.5rem 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  margin: 0;
  color: var(--primary);
}

.card {
  background: var(--surface);
  border: 1px solid #e7d3cc;
  padding: 1.1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(154, 52, 18, 0.18);
}
.card h3 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.15rem;
  color: var(--accent);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ==================== Sections / Cards ==================== */
.card {
  display: block; /* que se comporte como bloque clickeable */
  text-decoration: none; /* quita el subrayado del enlace */
  color: inherit; /* usa el color de texto normal */
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(154, 52, 18, 0.18);
}

/* títulos dentro de la tarjeta */
.card h3 {
  text-align: center;
  margin: 0.8rem 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s ease;
}

.card:hover h3 {
  color: var(--primary); /* cambia al terracota al pasar el mouse */
}

/* párrafos dentro de Servicios */
#servicios .card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  text-align: justify;
}

#recursos .card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  text-align: justify; /* 👈 justifica solo en recursos */
}
/* ==================== CTA ==================== */
.cta {
  background: linear-gradient(180deg, #fbe9e4, #f8d7ce);
  border: 1px solid #e7b6a8;
}

/* ==================== Footer ==================== */
footer {
  border-top: 1px solid #f0e4df;
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ==================== Focus ring ==================== */
:is(a, button, .btn) {
  outline: 0;
}
:is(a, button, .btn):focus-visible {
  box-shadow: 0 0 0 4px var(--ring);
}

/* ==================== Social Icons (HEADER & FOOTER) ==================== */
.social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center; /* para centrar en el footer */
  align-items: center;
  font-size: 1.4rem;
}

.social-icons a {
  color: var(--accent);
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary); /* cambia a terracota en hover */
}

/* en header: que no se vea centrado sino alineado a la derecha */
header .social-icons {
  justify-content: flex-end;
}

.site-footer {
  background: var(--accent); /* vino oscuro */
  color: #fff;
  text-align: center;
  padding: 2.5rem 1rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--primary); /* terracota al pasar el mouse */
}

.contact-email {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* =====/* Utilidades y layout específicos */
.stack-sm {
  margin-top: 0.6rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1rem;
}
.cta-title {
  margin: 0.2rem 0 0.4rem;
}
.cta-sub {
  margin: 0;
}

.cta-actions {
  display: flex;
  gap: 0.6rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== Psicoterapia: secciones alternas ===== */
.therapy-section {
  padding: 4rem 0;
}

/* Aplica grid al contenedor centrado */

.therapy-section .wrap {
  display: grid;
  grid-template-columns: 1fr 2fr; /* izq título / der contenido */
  gap: 2rem;
  align-items: start;
}

.therapy-title h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
}

/* Texto y bullets */
.therapy-content p {
  margin: 0 0 1rem;
  text-align: justify;
  line-height: 1.6;
}
.therapy-content ul {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.5;
}
.therapy-content li {
  margin: 0.35rem 0;
}

/* Fondos */
.therapy-section--light {
  background: var(--surface);
  color: var(--ink);
}
.therapy-section--dark {
  background: linear-gradient(180deg, var(--primary), #7a2c12);
  color: #fff;
}
.therapy-section--dark .therapy-title h2,
.therapy-section--dark .therapy-content p,
.therapy-section--dark .therapy-content li {
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .therapy-section .wrap {
    grid-template-columns: 1fr; /* apila */
    gap: 1rem;
    /* .wrap ya tiene padding lateral; no hace falta más */
  }
  .therapy-title h2 {
    margin-bottom: 0.5rem;
  }
}
.therapy-content {
  max-width: 70ch;
} /* ancho óptimo del texto */
:root {
  --maxw: 1000px;
} /* antes estaba en 1100px */

/* Animación sobria para el botón CTA */
.btn-pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(154, 52, 18, 0.4);
  }
  70% {
    transform: scale(1.3);
    box-shadow: 0 0 0 20px rgba(154, 52, 18, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(154, 52, 18, 0);
  }
}

/* Botón pulso (ya lo usas en psicoterapia) */
.btn-pulse {
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(154, 52, 18, 0.4);
  }
  40% {
    transform: scale(1.03);
    box-shadow: 0 0 0 12px rgba(154, 52, 18, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(154, 52, 18, 0);
  }
}

.services-text {
  max-width: 60ch;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.98rem;
  text-align: justify;
}




/* ========== Alianzas de trabajo ========== */

.alianzas {
  padding: 3rem 0 1.5rem;
  background: #fffdfb; /* sutil, en la misma gama cálida */
}

.alliances-subtitle {
  margin: 0.3rem 0 1.6rem;
  max-width: 620px;
  font-size: 0.96rem;
}

/* Contenedor de logos */
.alliances-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

/* Tamaño uniforme para todos los logos */
.alliance {
  width: 160px;      /* ancho fijo del marco */
  height: 80px;      /* alto fijo del marco */
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  overflow: hidden;  /* oculta excedentes */
  padding: 0;
}

.alliance img {
  width: 100%;
  height: 100%;
  object-fit: contain;  /* mantiene proporción */
}

@media (max-width: 600px) {
  .alliance {
    width: 130px;
    height: 65px;
  }
}


/* Hover: un poco más vivo pero sobrio */
.alliance:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.alliance:hover img {
  filter: none;
  opacity: 1;
}

/* Ajuste en pantallas pequeñas */
@media (max-width: 600px) {
  .alliances-grid {
    gap: 0.9rem;
  }

  .alliance {
    padding: 0.6rem 1rem;
  }

  .alliance img {
    max-height: 40px;
  }
}


/* ==================== PAGINA SUPERVISION ==================== */
/* ===== Supervisión: utilidades ===== */
/* ==================== CARRUSEL TESTIMONIOS ==================== */
.testimonials {
  padding: 2rem 0;
}
.testimonials-title {
  margin-bottom: 1rem;
  color: var(--primary);
}

.strip {
  overflow: hidden;
  border-radius: 12px;
}

.strip__track {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  animation: stripMove 20s linear infinite;
  will-change: transform;
}

.strip-card {
  flex: 0 0 300px;
}

.strip-card img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Pausar al pasar el mouse */
.strip:hover .strip__track {
  animation-play-state: paused;
}

/* Respeta usuarios que no quieren animaciones */
@media (prefers-reduced-motion: reduce) {
  .strip__track {
    animation: none;
  }
}

/* Animación */
@keyframes stripMove {
  0% {
    transform: translateX(0);
  }
  100% {
    /* se mueve la mitad porque duplicamos la lista */
    transform: translateX(-50%);
  }
}

/* Mobile */
@media (max-width: 700px) {
  .strip-card {
    flex-basis: 220px;
  }
  .strip-card img {
    height: 360px;
  }
}

/* ==================== CHARLAS COLEGIOS ==================== */

/* Ajuste fino para el hero de charlas (opcional) */
@media (min-width: 1024px) {
  #charlas-hero .hero-content,
  body.charlas .hero-content {
    padding-bottom: 8%;
  }
}
/* ==================== RECURSOS FAMILIARES ==================== */
.video-card {
  position: relative;
  display: flex;
  flex-direction: column; /* 👈 apila la imagen y el texto */
  align-items: center;
  width: 260px; /* ancho de cada card */
  margin: 1rem auto;
  text-align: center;
}

.video-card img {
  display: block;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Overlay del play */
.video-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.video-card:hover .overlay {
  opacity: 1;
}

.play-icon {
  font-size: 1.8rem; /* 👈 más pequeño */
  color: #fff;
}

/* Subtítulo */
.video-card p {
  margin-top: 0.6rem; /* espacio debajo */
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink); /* texto oscuro */
  position: static; /* 👈 asegúrate que no quede absoluto */
}
/* Contenedor de la galería */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  justify-items: center; /* centra las cards dentro de la grilla */
  margin-top: 2rem;
}

/*________________________PACIENTES____________________*/
/* CONTENEDOR DE GALERÍA DE VIDEOS */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* columnas adaptativas */
  gap: 2rem; /* espacio entre cards */
  justify-items: center;
  align-items: start;
  margin: 2rem auto;
  max-width: 1200px; /* límite visual agradable en pantallas grandes */
}

/* TARJETAS DE VIDEO */
.video-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 360px; /* evita que se estiren demasiado */
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* IMÁGENES DE LOS VIDEOS */
.video-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* OVERLAY DE REPRODUCCIÓN */
.video-card .overlay {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .overlay {
  opacity: 1;
}

.play-icon {
  font-size: 2rem;
  color: #fff;
}

/* SUBTÍTULO DE CADA VIDEO */
.video-card p {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  max-width: 95%;
}

/* VERSIÓN MÓVIL */
@media (max-width: 768px) {
  .video-gallery {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .video-card img {
    height: 180px;
  }
}

/* ===== Modal de video reutilizable ===== */
.video-modal {
  position: fixed;
  inset: 0; /* top:0 right:0 bottom:0 left:0 */
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
}

.video-modal[hidden] {
  display: none;
}

.video-backdrop {
  position: absolute;
  inset: 0;
}

.video-dialog {
  position: relative;
  width: min(900px, 92vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.video-frame {
  position: absolute;
  inset: 0;
}

.video-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 0;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
}

/* mobile: que el modal no se corte */
@media (max-width: 600px) {
  .video-dialog {
    width: 95vw;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
  }
}

/* ===== Ajuste visual: espacio para títulos de secciones ===== */
.therapy-section .therapy-title {
  margin-bottom: 2rem; /* agrega aire bajo el título */
}

/* Para secciones oscuras (como Entrevistas) */
.therapy-section--dark .therapy-title {
  margin-top: 2.5rem; /* separa un poco desde arriba */
  margin-bottom: 2rem; /* y también desde abajo */
}


}
.therapy-section .therapy-title { margin-bottom: 2rem; }
.therapy-section--dark .therapy-title { margin-top: 2.5rem; margin-bottom: 2rem; }
@media (max-width: 768px){
  .therapy-section .therapy-title { margin-top: 2rem; margin-bottom: 1.8rem; }
}

/*_____ SOBRE MI____________*/

/* ===== Sobre mí ===== */
/* ===== Sobre mí (foto + chips) ===== */
.about-photo {
  margin: 1rem 0 1.2rem;
  text-align: center;
}
.about-photo img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  border: 3px solid #fff;
}
.about-photo figcaption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.about-meta {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.5rem;
}
.about-meta li {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background: #fff;
  color: var(--accent);
  border: 1px solid #e7d3cc;
  border-radius: 999px;
  font-size: 0.85rem;
}

.about-list {
  padding-left: 1.1rem;
}
.about-list > li {
  margin: 0.5rem 0;
}
.pub-list {
  margin-top: 0.35rem;
  padding-left: 1.1rem;
}
.pub-list li {
  margin: 0.35rem 0;
}

.therapy-content a {
  color: var(--accent);
  text-decoration: none;
}
.therapy-content a:hover {
  color: var(--primary);
}

@media (max-width: 900px) {
  .about-photo img {
    width: 140px;
    height: 140px;
  }
  .about-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.about-list li {
  text-align: justify;
}

/*_____________D E T A L L E S __________*/
/* === Links por defecto dentro del contenido === */
.therapy-content a {
  color: var(--accent); /* vino/cobre */
 text-decoration: none;
}

.therapy-content a:hover {
  color: var(--primary); /* terracota en hover */
}

/* === Links sobre secciones oscuras === */
.therapy-section--dark a {
  color: #fff6eb; /* beige cálido, alto contraste */
    text-decoration: none;
}
.therapy-section--dark a:hover {
  color: #ffd5c2; /* un poco más claro en hover */
}

/* (opcional) Links dentro de tarjetas “card” si alguna vez pones <a> en su texto */
.card a {
  color: var(--accent);
  text-decoration: underline;
}
.card a:hover {
  color: var(--primary);
}
.sobre-mi-acordeon {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.sobre-mi-acordeon .section-title {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--text, #1f2937);
}

.nl-accordion {
  display: grid;
  gap: 0.75rem;
}

.nl-accordion-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.nl-accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}

.nl-accordion-header:hover {
  background: rgba(233, 228, 222, 0.25);
}

.nl-accordion-header .chevron {
  width: 1rem;
  height: 1rem;
  border-right: 2px solid #0f172a;
  border-bottom: 2px solid #0f172a;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.nl-accordion-header[aria-expanded="true"] .chevron {
  transform: rotate(225deg);
}

.nl-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease-out;
}

.nl-accordion-body {
  padding: 0 1.1rem 1rem 1.1rem;
  display: grid;
  gap: 0.45rem;
  line-height: 1.5;
  color: #475569;
  background: #fff;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .sobre-mi-acordeon {
    margin-top: 2rem;
  }
  .nl-accordion-header {
    font-size: 0.95rem;
  }
}

/* ===== Ajustes mobile específicos para recursos de pacientes ===== */
@media (max-width: 768px) {
  /* que TODO se vea en una sola columna */
  .video-gallery {
    display: grid;
    grid-template-columns: 1fr; /* 1 columna sí o sí */
    gap: 1.25rem;
    padding: 0 1rem;
  }

  /* las cards ocupan todo el ancho del contenedor */
  .video-card {
    width: 100%;
    max-width: 100%;
    align-items: stretch;
    text-align: left;
  }

  /* la imagen también al 100% */
  .video-card img {
    width: 100%;
    height: auto;
    min-height: 180px;
    object-fit: cover;
  }

  /* el título debajo con buen espacio */
  .video-card p {
    margin-top: 0.5rem;
    text-align: left;
  }

  /* secciones oscuras (las de videos) con más aire lateral */
  .therapy-section--dark .wrap,
  .therapy-section--light .wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* hero: que no se coma todo el alto en cel */
  .hero.hero--integrado {
    min-height: 380px;
  }
  .hero-content {
    padding-bottom: 2.5rem;
  }
}

/* ===== Ajustes mobile específicos para recursos de pacientes ===== */
@media (max-width: 768px) {
  /* que TODO se vea en una sola columna */
  .video-gallery {
    display: grid;
    grid-template-columns: 1fr; /* 1 columna sí o sí */
    gap: 1.25rem;
    padding: 0 1rem;
  }

  /* las cards ocupan todo el ancho del contenedor */
  .video-card {
    width: 100%;
    max-width: 100%;
    align-items: stretch; /* que el contenido se pegue al ancho */
    text-align: left; /* se ve más pro en móvil */
  }

  /* la imagen también al 100% */
  .video-card img {
    width: 100%;
    height: auto; /* deja de forzar altura fija */
    min-height: 180px; /* para que no queden enanas */
    object-fit: cover;
  }

  /* el título debajo con buen espacio */
  .video-card p {
    margin-top: 0.5rem;
    text-align: left;
  }

  /* secciones oscuras (las de videos) con más aire lateral */
  .therapy-section--dark .wrap,
  .therapy-section--light .wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* hero: que no se coma todo el alto en cel */
  .hero.hero--integrado {
    min-height: 380px;
  }
  .hero-content {
    padding-bottom: 2.5rem;
  }
}

/* ===== Ajustes específicos para iPad / tablet en galerías de video ===== */

/* Tablets en horizontal y vertical (iPad típico) */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Galerías de videos (página pacientes) */
  .video-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columnas cómodas */
    gap: 1.75rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .video-card img {
    width: 100%;
    height: auto;          /* dejamos que respete su alto */
    aspect-ratio: 16 / 9;  /* proporción estable */
    object-fit: cover;
  }

  .video-card p {
    font-size: 1rem;
    line-height: 1.4;
  }
}


/* ===== Acordeón sólo para psicoterapia ===== */
.therapy-accordion {
  background: linear-gradient(180deg, var(--bg) 0%, #fff9f7 100%);
  padding: 3.5rem 0;
}

.therapy-accordion .wrap {
  max-width: var(--maxw);
}

.therapy-accordion-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--accent);
}

.therapy-accordion-subtitle {
  margin-top: 0.3rem;
  color: var(--muted);
}

/* caja del acordeón */
.therapy-accordion-list {
  margin-top: 1.5rem;
  border: 1px solid rgba(154, 52, 18, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.03);
}

.therapy-acc-item + .therapy-acc-item {
  border-top: 1px solid rgba(154, 52, 18, 0.05);
}

/* header del item */
.therapy-acc-trigger {
  width: 100%;
  background: linear-gradient(90deg, #fff6f2 0%, #fffaf8 100%);
  border: none;
  outline: none;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
  text-align: left;
}

.therapy-acc-trigger:hover {
  background: #fff1eb;
  color: var(--primary);
}

.therapy-acc-trigger[aria-expanded="true"] {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
}

/* iconito */
.therapy-acc-trigger .chevron {
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.therapy-acc-trigger[aria-expanded="true"] .chevron {
  transform: rotate(225deg);
  border-color: #fff;
}

/* panel */
.therapy-acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease-out;
  background: var(--surface);
}

.therapy-acc-panel[hidden] {
  display: block;
}

.therapy-acc-body {
  padding: 0 1.2rem 1.1rem;
  display: grid;
  gap: 0.6rem;
  color: var(--ink);
}

.therapy-acc-body p {
  text-align: justify;
  line-height: 1.6;
}

.therapy-acc-body ul {
  margin: 0;
  padding-left: 1.1rem;
}

@media (max-width: 700px) {
  .therapy-acc-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
.therapy-acc-trigger {
  font-size: 1.15rem; /* antes 1rem */
  font-weight: 600;
  letter-spacing: 0.3px;
}

@media (min-width: 1024px) {
  .therapy-acc-trigger {
    font-size: 1.25rem;
  }
}
/* Separación entre acordeón y siguiente sección */
.therapy-accordion {
  margin-bottom: 3rem; /* agrega aire antes del podcast */
}



/* ==================== Blog ==================== */

.blog-posts-grid {
  margin-top: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
  text-decoration: none; /* por si acaso */
}

.blog-card .chip {
  margin-bottom: 0.2rem;
}

.blog-card h3 {
  margin: 0;
}

.blog-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 900px) {
  .blog-posts-grid {
    margin-top: 1.2rem;
  }
}


.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.blog-filter-btn {
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--terracotta);
  background: none;
  color: var(--terracotta);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-filter-btn:hover {
  background: var(--terracotta);
  color: white;
}

