/* =========================================================
   Centro Valores Psicología — Design System
   ========================================================= */

:root {
  --color-primary: #656C61;
  --color-primary-hover: #5B6257;
  --color-bg: #E6E1D6;
  --color-heading: #282E24;
  --color-text: #5F625B;
  --color-text-strict: #5F625B;
  --color-white: #FFFFFF;
  --color-input-border: #D6D1C7;

  --font-heading: 'Marcellus', serif;
  --font-body: 'DM Sans', sans-serif;

  --section-gap: 100px;
  --section-gap-mobile: 70px;
  --section-padding: 80px;
  --side-padding: 8%;
  --side-padding-mobile: 24px;

  --radius-image: 10px;
  --radius-card: 12px;
  --radius-button: 999px;

  --shadow-soft: 0 10px 30px rgba(40, 46, 36, 0.08);
  --transition: 0.3s ease;
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { padding: 0; margin: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; appearance: none; -webkit-appearance: none; }

input, textarea, select { font-family: inherit; font-size: 16px; }

/* -------------------- Tipografía -------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-heading);
}

h1 { font-size: 30px; margin: 25px 0 14px; }
h2 { font-size: 24px; margin: 24px 0 14px; }
h3 { font-size: 21px; margin: 24px 0 14px; }
h4 { font-size: 19px; margin: 21px 0 12px; }
h5 { font-size: 18px; margin: 20px 0 11px; }
h6 { font-size: 17px; margin: 18px 0 9px; }

p { font-size: 16px; color: var(--color-text); line-height: 1.7; margin: 0 0 16px; }

li { font-size: 16px; color: var(--color-heading); }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5E6459;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  h3 { font-size: 26px; }
}

/* -------------------- Layout -------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--side-padding-mobile);
}

@media (min-width: 1024px) {
  .container { padding: 0 var(--side-padding); }
}

section {
  padding: var(--section-gap-mobile) 0;
}

@media (min-width: 768px) {
  section { padding: var(--section-gap) 0; }
}

.section-inner { padding-top: var(--section-padding); padding-bottom: var(--section-padding); }

.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid {
  display: grid;
  gap: 32px;
}
/* Evita que el contenido (inputs, textos largos...) fuerce overflow
   horizontal: por defecto un item de grid no se encoge por debajo de su
   contenido mínimo. */
.grid > * { min-width: 0; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
/* Mismo motivo que en .grid: el formulario de contacto y otros bloques no
   deben forzar overflow horizontal en mobile. */
.split > * { min-width: 0; }

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.reverse { direction: rtl; }
  .split.reverse > * { direction: ltr; }
}

/* En mobile, la imagen se muestra antes que el texto/formulario */
@media (max-width: 899px) {
  .split.img-first-mobile > .hero-image,
  .split.img-first-mobile > .img-frame {
    order: -1;
  }
  .contact-section .split .img-frame { order: -1; }
}

/* -------------------- Botones -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 18px;
  border-radius: var(--radius-button);
  padding: 16px 56px;
  max-width: 100%;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
}
.btn-primary:hover { background: var(--color-primary-hover); }

.btn-secondary {
  background: transparent;
  color: var(--color-heading);
  border: 2px solid var(--color-heading);
  padding: 14px 54px;
}
.btn-secondary:hover { background: var(--color-heading); color: var(--color-white); }

/* En mobile los botones se ven demasiado grandes con el padding pensado
   para desktop (incluido btn-secondary, que trae su propio padding más
   generoso): los reducimos para que se vean proporcionados y quepan en
   una sola línea. */
@media (max-width: 767px) {
  .btn, .btn-secondary { padding: 14px 32px; font-size: 16px; }
}
@media (max-width: 400px) {
  .btn, .btn-secondary { white-space: normal; padding: 12px 24px; font-size: 15px; text-align: center; }
}

/* -------------------- Imágenes -------------------- */
.img-frame, .img-frame img {
  border-radius: var(--radius-image);
}
.img-frame {
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; }

.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #DAD5C8;
}
.img-placeholder .icon { width: 32px; height: 32px; }
.img-placeholder span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
}

/* -------------------- Iconos -------------------- */
.icon {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  stroke: var(--color-primary);
  flex-shrink: 0;
}

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(230, 225, 214, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(40, 46, 36, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-heading);
  letter-spacing: 0.02em;
}
.logo-img {
  display: block;
  height: 42px;
  width: auto;
}
@media (min-width: 1024px) {
  .logo-img { height: 50px; }
}

.main-nav {
  display: none;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 15px;
  color: var(--color-heading);
  position: relative;
  padding: 4px 0;
}

.main-nav a:hover,
.main-nav a.active { color: var(--color-primary); }

.has-submenu { position: relative; }

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  margin-top: 12px;
}

/* Puente invisible: cubre el hueco entre el enlace y la tarjeta para que
   el hover no se pierda al bajar el ratón hacia el submenu. */
.submenu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.has-submenu.open .submenu { display: block; }

@media (hover: hover) and (pointer: fine) {
  .has-submenu:hover .submenu,
  .has-submenu:focus-within .submenu { display: block; }
}

.submenu li a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.submenu li a:hover { background: var(--color-bg); }

.header-cta { display: none; }

.header-cta-mobile {
  display: inline-flex;
  padding: 10px 22px;
  font-size: 14px;
  white-space: nowrap;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  margin-left: 8px;
}
.nav-toggle .icon-close { display: none; }

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .header-cta-mobile { display: none; }
  .nav-toggle { display: none; }
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--side-padding-mobile) 28px;
  border-top: 1px solid rgba(40, 46, 36, 0.08);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 4px;
  font-size: 16px;
  color: var(--color-heading);
  border-bottom: 1px solid rgba(40, 46, 36, 0.06);
}
.mobile-nav .btn { margin-top: 16px; align-self: flex-start; }

/* Servicios y Conócenos se despliegan como acordeón, para que el menú
   móvil no sea tan largo de entrada. */
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 4px;
  font-family: inherit;
  font-size: 16px;
  color: var(--color-heading);
  border-bottom: 1px solid rgba(40, 46, 36, 0.06);
  text-align: left;
}
.mobile-nav-toggle .icon { width: 18px; height: 18px; transition: transform var(--transition); }
.mobile-nav-group.open .mobile-nav-toggle { color: var(--color-primary); }
.mobile-nav-group.open .mobile-nav-toggle .icon { transform: rotate(180deg); }

.mobile-nav-submenu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.mobile-nav-group.open .mobile-nav-submenu { grid-template-rows: 1fr; }
.mobile-nav-submenu-inner { overflow: hidden; display: flex; flex-direction: column; }
.mobile-nav-submenu-inner a {
  padding: 10px 4px 10px 20px;
  font-size: 15px;
  color: var(--color-text);
}
.mobile-nav-submenu-inner a:last-child { border-bottom: none; }

@media (min-width: 1024px) {
  .mobile-nav { display: none !important; }
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  padding: 64px 0 var(--section-gap-mobile);
}

.hero-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero h1 { margin-top: 8px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

.hero-image .img-frame { aspect-ratio: 4 / 5; }

@media (min-width: 900px) {
  .hero { padding-top: 90px; }
}

/* Más aire arriba/abajo en mobile, para que el texto no ocupe toda la
   sección y la foto respire más. */
@media (max-width: 899px) {
  .hero--photo { padding: 100px 0 90px; }
}

/* Hero a pantalla completa con foto de fondo, con zoom continuo suave para
   dar dinamismo a la imagen (mismo efecto que el CTA final, ver @keyframes
   cta-photo-zoom más abajo). */
.hero--photo {
  display: grid;
  align-items: center;
  min-height: 560px;
  overflow: hidden;
}

.hero-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--color-heading);
  background-image: url('../img/hero/melanie-marciano-psicologa-malaga.webp');
  background-size: cover;
  background-position: center;
  animation: cta-photo-zoom 16s ease-in-out infinite alternate;
}


/* Entrada del hero: la foto se descubre primero (velo que se disuelve) y el
   texto llega después con un pequeño retraso, para que la imagen sea
   siempre lo primero que se vea — igual en mobile que en desktop. */
.hero-photo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-bg);
  animation: hero-photo-reveal 0.9s ease forwards;
}
@keyframes hero-photo-reveal {
  from { opacity: 1; }
  to { opacity: 0; }
}
.hero--photo .hero-copy.fade-up { transition-delay: 0.4s; }

/* En mobile el recorte de "cover" solo deja ver una franja vertical central;
   desplazamos el encuadre para que la protagonista quede a la vista, y
   suavizamos el zoom para que la imagen se sienta más lejana y tranquila. */
@media (max-width: 899px) {
  .hero-photo-bg {
    background-position: 68% center;
    animation-name: hero-photo-zoom-mobile;
  }
}
@keyframes hero-photo-zoom-mobile {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

/* El .container comparte margin:auto para centrarse en el resto de
   secciones; aquí el texto debe quedar pegado a la izquierda. */
.hero--photo .container { margin-left: 0; margin-right: 0; }

/* Degradado en vez de velo uniforme: más oscuro donde va el texto (izquierda)
   y más claro hacia la derecha, para que la foto se vea con más luz sin
   perder la legibilidad del texto. */
.hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(40, 46, 36, 0.8) 0%, rgba(40, 46, 36, 0.55) 35%, rgba(40, 46, 36, 0.2) 65%, rgba(40, 46, 36, 0.05) 100%);
}

/* En mobile el texto ocupa todo el ancho (no solo la mitad izquierda como en
   desktop), así que el degradado no basta: usamos un filtro oscuro uniforme
   para que se pueda leer en toda la anchura. */
@media (max-width: 899px) {
  .hero--photo::before { background: rgba(40, 46, 36, 0.6); }
}

.hero--photo .hero-inner { position: relative; z-index: 2; }
.hero--photo .hero-copy { max-width: 620px; }
.hero--photo .eyebrow { color: var(--color-bg); }
.hero--photo h1 { color: var(--color-white); }
.hero--photo p { color: rgba(255, 255, 255, 0.85); }

.hero--photo .btn-secondary {
  border-color: var(--color-white);
  color: var(--color-white);
}
.hero--photo .btn-secondary:hover { background: var(--color-white); color: var(--color-heading); }

@media (min-width: 900px) {
  .hero--photo { min-height: 680px; }
}

/* Badges de confianza (Top Doctors, Google, Doctoralia) bajo el CTA */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}

.hero-trust-logos { display: flex; align-items: center; gap: 12px; }

.trust-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition);
}
.trust-badge:hover { transform: translateY(-2px); }
.trust-badge img { object-fit: contain; border-radius: 4px; }

/* Credenciales de Melanie (home, sección Conócenos) */
.melanie-credentials {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  margin: 24px 0;
}
@media (min-width: 900px) {
  .melanie-credentials { flex-wrap: nowrap; gap: 20px; }
}
.credential-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.credential-item strong {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-heading);
}
.credential-item span {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.3;
}
.credential-item--badge {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  transition: opacity var(--transition);
}
.credential-item--badge:hover { opacity: 0.75; }
.credential-item--badge .trust-badge { width: 54px; height: 54px; flex-shrink: 0; }
.credential-text { display: flex; flex-direction: column; gap: 2px; }
.credential-text strong {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-heading);
  line-height: 1.3;
}
.credential-text span {
  font-size: 13px;
  color: var(--color-text);
}

.hero-trust-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-white);
}
.hero-trust-rating .stars { color: #E3B23C; letter-spacing: 2px; }

.verified-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.verified-badge::before {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--color-white);
  border-radius: 50%;
}
.verified-badge img {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

/* -------------------- Propuesta de valor -------------------- */
.value-prop { max-width: 900px; margin: 0 auto; text-align: center; }
.value-prop .eyebrow { text-align: center; }
.value-prop h2 { margin-top: 8px; }
.value-prop-divider {
  border: none;
  border-top: 1px solid rgba(40, 46, 36, 0.15);
  margin: 32px 0;
}
.value-prop p { font-size: 17px; line-height: 1.8; }
.value-prop p strong { color: var(--color-heading); font-weight: 500; }

/* -------------------- Franja de confianza -------------------- */
.trust-strip {
  background: var(--color-primary);
  padding: 40px 0;
}
.trust-strip .grid { text-align: center; }
.trust-strip .trust-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--color-white);
}
.trust-strip .trust-item span {
  display: block;
  font-size: 14px;
  color: var(--color-bg);
  margin-top: 6px;
}

/* -------------------- Cards de servicio -------------------- */
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.service-card .icon { width: 34px; height: 34px; margin-bottom: 20px; }
.service-card h3 { margin-top: 0; }

/* "¿En qué podemos ayudarte?" (home): al hover, la tarjeta pasa a nuestro
   color corporativo, con textos e iconos en blanco. */
#servicios .service-card:hover { background: var(--color-primary); }
#servicios .service-card:hover h3,
#servicios .service-card:hover p { color: var(--color-white); }
#servicios .service-card:hover .icon { filter: brightness(0) invert(1); }
#servicios .service-card:hover .card-link { border-color: var(--color-white); color: var(--color-white); }
#servicios .service-card:hover .card-link:hover { background: rgba(255, 255, 255, 0.15); }
/* Con 5 tarjetas de servicio, en tablet se reparten en 2 columnas para
   que no queden demasiado estrechas; en desktop entran en una sola fila
   de 5, con más ancho total para que cada tarjeta respire mejor. */
@media (min-width: 768px) and (max-width: 1099px) {
  #servicios .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  #servicios .container { max-width: 1600px; }
  #servicios .grid-4 { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  #servicios .service-card { padding: 36px 26px; }
}

/* Propuesta de valor ("Cómo resolvemos el problema", páginas de servicio):
   tarjetas centradas, en una banda más ancha en desktop para que respiren.
   Llevan borde propio para que cada caja se distinga a simple vista, sin
   depender del hover ni de deslizar en mobile; en hover/clic, el mismo
   efecto de relleno que las tarjetas de proceso numeradas. */
#propuesta-valor .service-card {
  text-align: center;
  border: 2px solid var(--color-heading);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
#propuesta-valor .service-card .icon { display: block; margin: 0 auto 20px; }
#propuesta-valor .service-card:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
#propuesta-valor .service-card:hover h3,
#propuesta-valor .service-card:hover p { color: var(--color-white); }
#propuesta-valor .service-card:hover .icon { filter: brightness(0) invert(1); }
/* En tablet (iPad y similares) 4 columnas quedan demasiado estrechas y el
   texto se desborda: se reparten en 2x2 hasta llegar a desktop. */
@media (min-width: 768px) and (max-width: 1099px) {
  #propuesta-valor .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  #propuesta-valor .container { max-width: 1600px; }
  #propuesta-valor .service-card { padding: 36px 26px; }
}

/* Tarjetas de proceso numeradas ("cómo trabajamos" / "cómo es el proceso"):
   llevan borde para encuadrarlas (van sobre fondo blanco) y, en hover o
   clic, el mismo efecto que las tarjetas de servicio de la home. */
.service-card.process-step {
  border: 2px solid var(--color-heading);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.service-card.process-step:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-soft);
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.service-card.process-step h3 { font-size: 19px; margin: 21px 0 12px; }
.service-card.process-step:hover h3,
.service-card.process-step:hover p { color: var(--color-white); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--color-primary);
  margin-bottom: 8px;
  transition: color var(--transition), transform var(--transition);
}
.service-card.process-step:hover .step-num { color: var(--color-white); transform: scale(1.2); }

.service-card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-primary);
  margin-top: 8px;
  border: 1px solid var(--color-primary);
  border-radius: 10px 10px 10px 10px;
  padding: 8px 14px;
  transition: background var(--transition), border-color var(--transition);
}
.service-card a.card-link:hover { background: var(--color-bg); }
.card-link .icon {
  width: 14px;
  height: 14px;
  margin: 0;
  transition: transform var(--transition);
}
.card-link:hover .icon { transform: translateX(3px); }

/* -------------------- Pasos (cómo trabajamos) -------------------- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid rgba(40, 46, 36, 0.12);
}
.step:last-child { border-bottom: 1px solid rgba(40, 46, 36, 0.12); }
.step-number {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-primary);
  min-width: 40px;
  transition: color var(--transition), transform var(--transition);
}
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step:hover .step-number { color: var(--color-heading); transform: scale(1.2); }

/* En desktop, los 4 pasos van en una sola fila de tarjetas (mismo lenguaje
   visual que "Cómo es el proceso" en las páginas de servicios), en vez de
   la lista vertical: menos scroll y más legible de un vistazo. */
@media (min-width: 900px) {
  #como-trabajamos .container { max-width: 1600px; }
  .steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .steps .step {
    display: block;
    padding: 32px 24px;
    background: var(--color-white);
    border: 2px solid var(--color-heading);
    border-radius: var(--radius-card);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  }
  .steps .step:last-child { border-bottom: 2px solid var(--color-heading); }
  .steps .step:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-soft);
    background: var(--color-primary);
    border-color: var(--color-primary);
  }
  .steps .step:hover h3,
  .steps .step:hover p { color: var(--color-white); }
  .steps .step-number { display: block; margin-bottom: 8px; }
  .steps .step:hover .step-number { color: var(--color-white); }
}

/* En mobile, "Cómo trabajamos" pasa a carrusel horizontal (swipe) con dots,
   para no ocupar tanto scroll vertical. En desktop se queda como lista. */
.steps-dots { display: none; }

@media (max-width: 899px) {
  .steps {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-y;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .steps::-webkit-scrollbar { display: none; }
  .steps > .step {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    border-top: none;
    background: var(--color-bg);
    border-radius: var(--radius-card);
    padding: 28px 24px;
  }
  .steps > .step:last-child { border-bottom: none; }

  .steps-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
  }
  .steps-dots button {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
    background: rgba(40, 46, 36, 0.2);
    transition: background var(--transition), transform var(--transition);
  }
  .steps-dots button.active {
    background: var(--color-primary);
    transform: scale(1.25);
  }
}

/* -------------------- Testimonios -------------------- */
.testimonials-section {
  background: var(--color-heading);
  border-radius: var(--radius-card);
  padding: 56px 0;
}
.testimonials-section .eyebrow { color: var(--color-bg); }
.testimonials-section h2 { color: var(--color-white); }
.reviews-cta { border-color: var(--color-white); color: var(--color-white); }
.reviews-cta:hover { background: var(--color-white); color: var(--color-heading); }
@media (max-width: 767px) {
  .reviews-cta { white-space: nowrap; padding-left: 30px; padding-right: 30px; }
}
.testimonial-card {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  color: var(--color-bg);
}
.testimonial-card p { color: var(--color-bg); font-style: italic; }
.testimonial-stars { color: #E3B23C; letter-spacing: 2px; margin-bottom: 12px; }

/* Texto truncado con "Ver más", para que todas las tarjetas midan igual */
.testimonial-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.testimonial-card.expanded .testimonial-text {
  display: block;
  overflow: visible;
}
.testimonial-toggle {
  display: inline-block;
  color: var(--color-white);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-top: 4px;
  padding: 0;
}

.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial-author strong { display: block; color: var(--color-white); font-family: var(--font-body); font-size: 15px; }
.testimonial-author a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-bg);
  opacity: 0.8;
  transition: opacity var(--transition);
}
.testimonial-author a:hover { opacity: 1; text-decoration: underline; }
.google-icon { display: inline-block; vertical-align: middle; border-radius: 2px; }
.avatar-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 16px;
  flex-shrink: 0;
}
.avatar-circle img { width: 18px; height: 18px; }

/* Carrusel de reseñas: scroll horizontal con flechas y dots, en todos los anchos */
.testimonials-carousel { position: relative; }

.testimonials-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-y;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonials-track > .testimonial-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.testimonials-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.testimonials-dots button {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background var(--transition), transform var(--transition);
}
.testimonials-dots button.active {
  background: var(--color-white);
  transform: scale(1.3);
}

.testimonials-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition);
}
.testimonials-arrow:hover { transform: translateY(-50%) scale(1.08); }
.testimonials-arrow .icon { width: 18px; height: 18px; }
.testimonials-prev { left: -20px; }
.testimonials-next { right: -20px; }

/* En desktop reservamos espacio propio para las flechas a los lados, fuera
   de la tarjeta, para que nunca tapen el texto. */
@media (min-width: 900px) {
  .testimonials-carousel { padding: 0 64px; }
  .testimonials-prev { left: 0; }
  .testimonials-next { right: 0; }
}

/* -------------------- FAQ -------------------- */
.faq-item {
  border-bottom: 1px solid rgba(40, 46, 36, 0.15);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-heading);
}
.faq-question .icon { width: 20px; height: 20px; transition: transform var(--transition); }
.faq-item.open .faq-question .icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}
.faq-answer p { padding-bottom: 22px; margin: 0; }
.faq-item.open .faq-answer { max-height: 600px; }

/* -------------------- Ubicación -------------------- */
.location-card {
  background: #E5E1D6;
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}
.location-row { display: flex; gap: 14px; align-items: flex-start; }
.location-row .icon { width: 22px; height: 22px; margin-top: 2px; }
.location-row strong { display: block; color: var(--color-heading); font-size: 15px; }
.location-row span { font-size: 14px; }

/* Mapa de Google embebido con tarjeta de datos superpuesta */
.map-embed {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 340px;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}
.map-card {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  max-width: 320px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  transition: transform var(--transition);
}
.map-card:hover { transform: translateY(-2px); }
.map-card-body { display: flex; flex-direction: column; gap: 4px; }
.map-card-body strong { color: var(--color-heading); font-family: var(--font-heading); font-size: 16px; }
.map-card-body span { font-size: 13px; color: var(--color-text); }
.map-card-rating { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.map-card-rating strong { font-family: var(--font-body); font-size: 13px; color: var(--color-heading); }
.map-card-rating .stars { color: #E3B23C; letter-spacing: 1px; font-size: 13px; }
.map-card-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  #ubicacion .split { align-items: stretch; }
  .map-embed { height: 100%; min-height: 100%; }
}

.location-row a { color: var(--color-primary); }
.location-row a:hover { text-decoration: underline; }

/* -------------------- CTA final / banner -------------------- */
.cta-banner {
  background: var(--color-primary);
  border-radius: var(--radius-card);
  padding: 64px var(--side-padding-mobile);
  text-align: center;
}
.cta-banner h2, .cta-banner .eyebrow { color: var(--color-white); }
.cta-banner p { color: var(--color-bg); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-primary { background: var(--color-white); color: var(--color-heading); }
.cta-banner .btn-primary:hover { background: var(--color-bg); }

/* CTA final de Inicio: foto de fondo a pantalla completa con zoom continuo */
.cta-photo {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-card);
}
.cta-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--color-heading);
  background-image: url('../img/cta/sala-terapia-psicologia-centro-valores.webp');
  background-size: cover;
  background-position: center;
  animation: cta-photo-zoom 10s ease-in-out infinite alternate;
}
@keyframes cta-photo-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}
.cta-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(40, 46, 36, 0.55);
}
.cta-photo .container { position: relative; z-index: 2; }
.cta-photo-content { max-width: 560px; margin: 0 auto; text-align: center; }
.cta-photo-content .eyebrow { color: var(--color-bg); }
.cta-photo-content h2 { color: var(--color-white); }
.cta-photo-content p { color: rgba(255, 255, 255, 0.85); }
.cta-photo .btn-secondary { border-color: var(--color-white); color: var(--color-white); }
.cta-photo .btn-secondary:hover { background: var(--color-white); color: var(--color-heading); }

@media (prefers-reduced-motion: reduce) {
  .cta-photo-bg, .hero-photo-bg { animation: none; }
  .hero-photo-bg::after { animation: none; opacity: 0; }
  .hero--photo .hero-copy.fade-up { transition-delay: 0s; }
}

/* -------------------- Sección de formulario de contacto -------------------- */
.contact-section--photo {
  position: relative;
  overflow: hidden;
  background-color: var(--color-heading);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-card);
}
.contact-section--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(40, 46, 36, 0.55);
}
.contact-section--photo .container { position: relative; z-index: 1; }
.contact-section--photo .section-head .eyebrow { color: var(--color-bg); }
.contact-section--photo .section-head h2 { color: var(--color-white); }
.contact-section--photo .section-head p { color: rgba(255, 255, 255, 0.85); }

.contact-form-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 40px;
}
.contact-form-card h3 { margin-top: 0; }
.contact-form-card .btn { margin-top: 4px; }

/* -------------------- Formulario de contacto -------------------- */
.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
}
.field label {
  display: block;
  font-size: 14px;
  color: var(--color-heading);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-input-border);
  border-radius: 8px;
  padding: 16px;
  color: var(--color-heading);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; }
.form-status { font-size: 14px; margin-top: 4px; }
.form-status.success { color: var(--color-primary); }
.form-status.error { color: #B23C3C; }

.contact-block {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 48px 32px;
}

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--color-heading);
  color: var(--color-bg);
  padding: var(--section-gap-mobile) 0 32px;
}
@media (max-width: 899px) {
  .site-footer { padding-top: 40px; }
}
.site-footer .logo { color: var(--color-white); }
.site-footer .logo-img { height: 48px; }
.site-footer h3 { color: var(--color-white); font-size: 16px; margin-bottom: 14px; }
.site-footer p, .site-footer a, .site-footer li { color: var(--color-bg); font-size: 14px; }
.site-footer a:hover { color: var(--color-white); }
.footer-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 48px; margin-bottom: 56px; }
  .site-footer h3 { margin-bottom: 18px; }
}
.footer-links li { margin-bottom: 8px; }
@media (min-width: 900px) {
  .footer-links li { margin-bottom: 12px; }
}

/* Columna de contacto: iconos circulares conectados por una línea vertical */
.footer-contact li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 28px;
}
.footer-contact li:last-child { padding-bottom: 0; }
.footer-contact li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 40px;
  left: 19px;
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
}
.footer-contact .icon-circle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-contact .icon-circle .icon { width: 18px; height: 18px; }
.footer-contact li a { display: inline-block; padding-top: 9px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { font-size: 13px; }
.social-row { display: flex; gap: 12px; margin-top: 8px; }
.social-row a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition);
}
.social-row a:hover { transform: translateY(-2px); }
.social-row .icon { width: 16px; height: 16px; }

/* -------------------- WhatsApp flotante -------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.whatsapp-float:hover { background: #1EBE5D; transform: translateY(-2px); }
.whatsapp-float .icon { width: 30px; height: 30px; }

/* -------------------- Page hero (páginas internas) -------------------- */
.page-hero {
  padding: 56px 0 24px;
  text-align: center;
}
.page-hero .eyebrow { text-align: center; }

/* Hero de servicios con foto de fondo (mientras llega la foto real,
   se ve el color de respaldo definido aquí). */
.page-hero--photo {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  background-color: var(--color-heading);
  background-size: cover;
  background-position: center;
}
.page-hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(40, 46, 36, 0.55);
}
.page-hero--photo .container { position: relative; z-index: 1; }
.page-hero--photo .breadcrumb, .page-hero--photo .breadcrumb a { color: rgba(255, 255, 255, 0.75); }
.page-hero--photo .breadcrumb a:hover { color: var(--color-white); }
.page-hero--photo .eyebrow { color: var(--color-bg); }
.page-hero--photo h1 { color: var(--color-white); }
.page-hero--photo p { color: rgba(255, 255, 255, 0.85); }

/* Hero de servicios con fondo de color sólido oscuro (sin foto).
   Lleva el mismo velo oscuro que .page-hero--photo: el color de fondo elegido
   (ej. #78796c) por sí solo no da suficiente contraste AA para el texto. */
.page-hero--dark {
  position: relative;
  overflow: hidden;
}
.page-hero--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(40, 46, 36, 0.55);
}
.page-hero--dark .container { position: relative; z-index: 1; }
.page-hero--dark .breadcrumb, .page-hero--dark .breadcrumb a { color: rgba(255, 255, 255, 0.75); }
.page-hero--dark .breadcrumb a:hover { color: var(--color-white); }
.page-hero--dark .eyebrow { color: var(--color-bg); }
.page-hero--dark h1 { color: var(--color-white); }
.page-hero--dark p { color: rgba(255, 255, 255, 0.85); }
.breadcrumb {
  font-size: 13px;
  color: var(--color-text);
  margin-bottom: 10px;
}
.breadcrumb a:hover { color: var(--color-primary); }

/* -------------------- Galería del centro -------------------- */
.center-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  grid-auto-flow: dense;
  gap: 16px;
}
.center-gallery .gallery-item {
  border-radius: var(--radius-image);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}
.center-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.center-gallery .gallery-item:hover img { transform: scale(1.04); }
.center-gallery .gallery-item--tall { grid-row: span 2; }

@media (max-width: 899px) {
  .center-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 12px; }
}

/* -------------------- Lightbox de galería -------------------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(20, 22, 18, 0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-figure { max-width: 90vw; max-height: 85vh; }
.lightbox-figure img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-image);
  box-shadow: var(--shadow-soft);
  display: block;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}
.lightbox-close:hover { transform: scale(1.08); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.08); }

@media (max-width: 640px) {
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-close { top: 16px; right: 16px; }
  .lightbox-close, .lightbox-nav { width: 38px; height: 38px; }
}

/* -------------------- Utilidades -------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.lead { font-size: 19px; color: var(--color-heading); line-height: 1.6; }
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.in-view { opacity: 1; transform: translateY(0); }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-size: 13px;
  color: var(--color-heading);
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-button);
  padding: 8px 16px;
  background: var(--color-white);
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.check-list .icon { width: 18px; height: 18px; margin-top: 3px; }

/* Checklist que en desktop se despliega en 2 columnas y esconde el "Ver más" (solo queda en mobile) */
.check-list-grid { max-width: 800px; margin: 0 auto; }
@media (min-width: 900px) {
  .check-list-grid { max-width: 960px; }
  .check-list-grid .check-list,
  .check-list-grid .read-more,
  .check-list-grid .read-more-content,
  .check-list-grid .read-more-inner {
    display: contents;
  }
  .check-list-grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .check-list-grid .read-more-toggle { display: none; }
}

/* -------------------- "Ver más" (bio, experiencia y formación) -------------------- */
.read-more-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.read-more-inner { overflow: hidden; }
.read-more.expanded .read-more-content { grid-template-rows: 1fr; }
.read-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  color: var(--color-heading);
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: var(--radius-button);
  padding: 10px 20px;
  margin-top: 8px;
  box-shadow: var(--shadow-soft);
  transition: background var(--transition), box-shadow var(--transition);
}
.read-more-toggle:hover { background: var(--color-bg); }
.read-more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 15px;
  line-height: 1;
  transition: transform var(--transition);
}
.read-more.expanded .read-more-icon { transform: rotate(45deg); }

.team-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.team-card .img-frame { border-radius: 0; box-shadow: none; aspect-ratio: 3/4; }
.team-card .team-body { padding: 24px; }
.team-card .team-role { color: var(--color-primary); font-size: 14px; margin-bottom: 4px; display: block; }

.pricing-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  text-align: center;
}
.pricing-card h2 { font-size: 21px; margin: 24px 0 14px; }
.pricing-card .price {
  font-family: var(--font-heading);
  font-size: 38px;
  color: var(--color-heading);
  margin: 12px 0;
}
.pricing-card .price span { font-size: 15px; color: var(--color-text); font-family: var(--font-body); }
.pricing-card .btn { width: 100%; margin-top: 24px; }

/* Cards de precio compactas, con icono, para modalidades / planes.
   Mismo lenguaje visual (borde + hover) que las tarjetas de "Cómo
   trabajamos" en desktop, ver .steps .step más abajo. */
.pricing-card--compact {
  padding: 32px 24px;
  border: 2px solid var(--color-heading);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.pricing-card--compact:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-soft);
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.pricing-card--compact:hover h3,
.pricing-card--compact:hover p,
.pricing-card--compact:hover .price,
.pricing-card--compact:hover .price span,
.pricing-card--compact:hover .price.price-tbd { color: var(--color-white); }
.pricing-card--compact:hover .icon-top { filter: brightness(0) invert(1); }
.pricing-card--compact .icon-top { width: 30px; height: 30px; margin: 0 auto 18px; }
.pricing-card--compact h3 { margin-top: 0; font-size: 19px; }
.pricing-card--compact .price { font-size: 24px; margin: 8px 0 16px; }
.pricing-card--compact .price.price-tbd { font-size: 18px; color: var(--color-primary); }
.pricing-card--compact .price-lines { font-size: 17px; }
.pricing-card--compact .price-lines div:first-child { margin-bottom: 2px; }
.pricing-card--compact p { font-size: 14px; margin-bottom: 0; }

/* -------------------- Carrusel de fotos genérico (con dots) -------------------- */
.photo-carousel { position: relative; }
.photo-carousel-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-y;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
  scrollbar-width: none;
  border-radius: var(--radius-image);
  box-shadow: var(--shadow-soft);
}
.photo-carousel-track::-webkit-scrollbar { display: none; }
.photo-carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-image);
  overflow: hidden;
}
.photo-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.photo-carousel-dots button {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(40, 46, 36, 0.2);
  transition: background var(--transition), transform var(--transition);
}
.photo-carousel-dots button.active {
  background: var(--color-primary);
  transform: scale(1.3);
}
