/* ============================================
   STYLES.CSS - Estilos específicos de secciones
   NOTA: @keyframes están en base.css
   ============================================ */


/* ── Secciones generales ─────────────────── */

section {
  padding: 100px 0;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-primary);
  text-transform: uppercase;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
}


/* ── Hero ────────────────────────────────── */

.hero {
  background-image:
    linear-gradient(135deg, rgba(139, 107, 175, 0.3), rgba(54, 166, 160, 0.3)),
    url('/images/portada6.webp');
  background-size: cover;
  background-position: center 60%;
  background-attachment: fixed;
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-logo {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
  filter:
    drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6))
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5));
}

.hero-title-main {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.6;
  color: white;
  margin: 0 auto 2rem;
  max-width: 900px;
  letter-spacing: 0.5px;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.7),
    0 0 10px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 255, 255, 0.15);
  animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  transform: translateY(1px);
  z-index: 10;
  pointer-events: none;
}

.hero-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

@media (max-width: 768px) {
  .hero              { padding: 80px 20px 60px; background-attachment: scroll; }
  .hero-logo         { max-width: 250px; }
  .hero-title-main   { font-size: 1.5rem; line-height: 1.5; padding: 0 1rem; letter-spacing: 0.3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.6); }
  .hero-divider svg  { height: 50px; }
}

@media (max-width: 480px) {
  .hero              { padding: 60px 20px 40px; }
  .hero-logo         { max-width: 180px; }
  .hero-title-main   { font-size: 1.3rem; line-height: 1.4; padding: 0 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6); }
  .hero-divider svg  { height: 35px; }
}


/* ── Servicios ───────────────────────────── */

.servicios {
  background-color: #ffffff;
  padding: 80px 0;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.psicologos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}


/* ── Por qué elegirnos ───────────────────── */

.por-que-elegirnos {
  padding: 100px 0;
  background: white;
}

.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
  gap: 3rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.ventaja-item {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg-light);
  border-radius: 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 350px;
}

.ventaja-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.ventaja-item:hover::before { transform: scaleX(1); }

.ventaja-item:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 40px rgba(139, 107, 175, 0.2);
  background: white;
}

.ventaja-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
  display: inline-block;
}

.ventaja-item:hover .ventaja-icon { transform: scale(1.2) rotate(5deg); }

.ventaja-item h3 { font-size: 1.4rem; margin-bottom: 1rem; font-weight: 600; }
.ventaja-item p  { color: var(--text-secondary); line-height: 1.7; }


/* ── Testimonios ─────────────────────────── */

.testimonios {
  padding: 80px 0;
  background-color: white;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonio-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-secondary);
  font-style: italic;
  transition: all 0.3s;
}

.testimonio-card:hover      { box-shadow: 0 5px 20px rgba(54, 166, 160, 0.2); }
.testimonio-card strong     {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  color: var(--color-primary);
}


/* ── CTA Final ───────────────────────────── */

.cta-final {
  padding: 120px 0;
  background-image:
    linear-gradient(135deg, rgba(139, 107, 175, 0.3), rgba(54, 166, 160, 0.3)),
    url('/images/portada7.webp');
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-final h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: white;
  line-height: 1.3;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.cta-final p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 1;
  line-height: 1.7;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-shadow:
    1px 1px 0px rgba(0, 0, 0, 0.4),
    2px 2px 0px rgba(0, 0, 0, 0.35),
    3px 3px 0px rgba(0, 0, 0, 0.3),
    4px 4px 8px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(255, 255, 255, 0.3);
}

.btn-cta-large {
  display: inline-block;
  background: white;
  color: var(--color-primary);
  padding: 22px 50px;
  border-radius: var(--radius-full);
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.btn-cta-large:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  background: var(--color-accent);
  color: var(--color-dark);
}

.cta-note {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-top: 1rem;
  font-style: italic;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .cta-final         { padding: 80px 0; background-attachment: scroll; }
  .cta-final h2      { font-size: 2.2rem; }
  .cta-final p       { font-size: 1.1rem; }
  .btn-cta-large     { padding: 18px 35px; font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .cta-final         { padding: 60px 20px; }
  .cta-final h2      { font-size: 1.8rem; }
  .btn-cta-large     { padding: 15px 30px; font-size: 1rem; width: 90%; }
}


/* ── Modal de terapias ───────────────────── */

.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  animation: fadeIn 0.3s;
  overflow-y: auto;
  padding: 20px 0;
}

.modal-content {
  background-color: white;
  margin: 2rem auto;
  padding: 0;
  width: 90%;
  max-width: 900px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
  position: relative;
}

.modal-header {
  background: white;
  padding: 2rem 2rem 1rem;
  border-radius: 20px 20px 0 0;
  position: relative;
  border-bottom: 3px solid #f8f9fa;
}

.modal-header h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary);
  text-align: left;
  line-height: 1.3;
}

.modal-close {
  position: absolute;
  right: 25px;
  top: 25px;
  color: #999;
  font-size: 2rem;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.3s;
  line-height: 1;
  z-index: 10;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f8f9fa;
}

.modal-close:hover {
  transform: rotate(90deg);
  color: var(--color-primary);
  background: #e9ecef;
}

.modal-body {
  padding: 2rem;
  max-height: calc(90vh - 200px);
  overflow-y: auto;
}

.modal-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-info h3 {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-info h3:first-of-type { margin-top: 0; }

.modal-info h3::before {
  content: '●';
  color: var(--color-secondary);
  font-size: 0.8em;
}

.modal-info p {
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.modal-info ul           { list-style: none; padding-left: 0; margin-bottom: 2rem; }
.modal-info ul li {
  color: var(--text-primary);
  padding: 0.8rem 0 0.8rem 2rem;
  position: relative;
  line-height: 1.6;
  border-bottom: 1px solid #f0f0f0;
}

.modal-info ul li:last-child { border-bottom: none; }

.modal-info ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: bold;
  font-size: 0.9rem;
  width: 25px;
  height: 25px;
  background: #e8f5f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-detalles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  border-left: 4px solid var(--color-secondary);
}

.modal-detalle            { color: var(--text-primary); font-size: 1rem; }
.modal-detalle strong     {
  display: block;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-footer {
  padding: 2rem;
  text-align: center;
  background: #f8f9fa;
  border-radius: 0 0 20px 20px;
}

.btn-modal-agendar {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 18px 50px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 8px 25px rgba(139, 107, 175, 0.3);
}

.btn-modal-agendar:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(139, 107, 175, 0.5);
  background: linear-gradient(135deg, #36A6A0, #8B6BAF);
}

@media (max-width: 768px) {
  .modal                { padding: 10px 0; }
  .modal-content        { width: 95%; margin: 1rem auto; border-radius: 15px; }
  .modal-header         { padding: 1.5rem 1.5rem 1rem; }
  .modal-header h2      { font-size: 1.6rem; padding-right: 40px; }
  .modal-close          { right: 15px; top: 15px; font-size: 1.8rem; width: 32px; height: 32px; }
  .modal-body           { padding: 1.5rem; }
  .modal-img            { height: 200px; margin-bottom: 1.5rem; }
  .modal-info h3        { font-size: 1.3rem; }
  .modal-info p         { font-size: 1rem; }
  .modal-detalles       { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem; }
  .modal-footer         { padding: 1.5rem; }
  .btn-modal-agendar    { width: 100%; padding: 16px 30px; font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .modal-header h2      { font-size: 1.4rem; }
  .modal-body           { padding: 1rem; }
  .modal-img            { height: 180px; border-radius: 10px; }
  .modal-info h3        { font-size: 1.2rem; margin-top: 1.5rem; }
  .modal-info p         { font-size: 0.95rem; }
  .modal-info ul li     { padding: 0.6rem 0 0.6rem 1.8rem; font-size: 0.95rem; }
  .modal-detalles       { padding: 1rem; }
}


/* ── Nosotros hero ───────────────────────── */

.nosotros-hero {
  position: relative;
  padding: 120px 0 110px;
  color: white;
  overflow: hidden;
  background-image:
    linear-gradient(90deg,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.2) 70%,
      rgba(0, 0, 0, 0) 100%
    ),
    url('/images/portada8.webp');
  background-size: cover;
  background-position: center 92%;
  background-attachment: fixed;
}

.nosotros-hero .container    { position: relative; z-index: 2; }

.nosotros-hero .nosotros-titulo {
  color: #ffffff;
  text-align: left;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.45);
  margin-bottom: 1rem;
}

.nosotros-hero-text          { max-width: 950px; }
.nosotros-hero-text p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.35);
}

.nosotros-hero-text strong   { color: var(--color-accent); }

.nosotros-hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  transform: translateY(1px);
  z-index: 3;
  pointer-events: none;
}

.nosotros-hero-divider svg   { display: block; width: 100%; height: 90px; }

@media (max-width: 768px) {
  .nosotros-hero              { padding: 90px 0 80px; background-attachment: scroll; background-position: center 30%; }
  .nosotros-hero .nosotros-titulo,
  .nosotros-hero .nosotros-intro { text-align: center; margin-left: auto; margin-right: auto; }
  .nosotros-hero-text         { margin: 0 auto; text-align: left; }
  .nosotros-hero-divider svg  { height: 60px; }
}


/* ── Carrusel de servicios ───────────────── */

.carousel-container {
  position: relative;
  max-width: 100%;
  margin: 2rem auto 0;
  padding: 0 65px;
}

.carousel-wrapper    { overflow: hidden; border-radius: 12px; }

.carousel-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 2rem;
  will-change: transform;
}

.carousel-item {
  flex: 0 0 calc(33.333% - 1.35rem);
  min-width: 0;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.carousel-item:hover { transform: scale(1.02); }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid #e0e0e0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--color-primary);
  font-size: 2rem;
  line-height: 1;
}

.carousel-btn:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(139, 107, 175, 0.35);
}

.carousel-btn:active  { transform: translateY(-50%) scale(1.05); }
.carousel-btn.carousel-prev { left: 0; }
.carousel-btn.carousel-next { right: 0; }
.carousel-btn:disabled      { opacity: 0.25; cursor: not-allowed; pointer-events: none; }

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2.5rem;
  height: 12px;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0d0d0;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.carousel-indicator:hover  { background: #a0a0a0; transform: scale(1.15); }
.carousel-indicator.active { background: var(--gradient-primary); width: 32px; border-radius: 6px; }
.carousel-btn:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 4px; }

@media (max-width: 992px) { .carousel-item { flex: 0 0 calc(50% - 1rem); } }

@media (max-width: 576px) {
  .carousel-item        { flex: 0 0 100%; }
  .carousel-container   { padding: 0 50px; }
  .carousel-btn         { width: 44px; height: 44px; }
  .carousel-indicators  { margin-top: 2rem; }
}




/* ── Contacto ────────────────────────────── */

.contacto-section {
  background-image:
    linear-gradient(135deg, rgba(139, 107, 175, 0.3), rgba(54, 166, 160, 0.3)),
    url('/images/portada9.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.contacto-section h2                 { color: white; }
.contacto-section .section-subtitle  { color: rgba(255, 255, 255, 0.95); }

.contacto-info {
  background: rgba(255, 255, 255, 0.95); /* ← de vuelta a blanco */
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}


.contacto-form-wrap form {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}


/* ── Oferta ──────────────────────────────── */

.oferta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.oferta h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: white;
  line-height: 1.3;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.oferta p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 1;
  line-height: 1.7;
  color: white;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-shadow:
    1px 1px 0px rgba(0, 0, 0, 0.4),
    2px 2px 0px rgba(0, 0, 0, 0.35),
    3px 3px 0px rgba(0, 0, 0, 0.3),
    4px 4px 8px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(255, 255, 255, 0.3);
}

/* ── Páginas de servicios (terapias, evaluaciones, etc.) ─── */

/* Hero compacto para páginas internas */
.hero-page {
  min-height: 60vh;
  padding: 150px 20px 80px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Contenedor centrado de contenido */
.content-wrap {
  max-width: 900px;
  margin: 0 auto;
}

/* Intro texto */
.intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Caja destacada con fondo degradado suave */
.info-box {
  background: linear-gradient(135deg, #f8f5fb, #f0f8f7);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 3rem;
  border-left: 5px solid var(--color-secondary);
}

.info-box h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.info-box p {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Subtítulo de sección interna */
.section-inner-title {
  color: var(--color-primary);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

/* Grid de pasos/proceso (cards con icono) */
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.proceso-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.proceso-card--primary { border-left: 4px solid var(--color-primary); }
.proceso-card--secondary { border-left: 4px solid var(--color-secondary); }

.proceso-card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.proceso-card h4 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* Lista de beneficios con checkmarks */
.lista-beneficios {
  font-size: 1.1rem;
  line-height: 2;
  margin-top: 1.5rem;
  list-style: none;
  padding-left: 0;
}

/* Caja de información importante (fondo degradado oscuro) */
.info-importante {
  background: var(--gradient-primary);
  padding: 2.5rem;
  border-radius: 15px;
  margin-top: 3rem;
  color: white;
}

.info-importante h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.info-importante-grid {
  display: grid;
  gap: 1rem;
}

.info-importante-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 1.2rem;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.info-importante-item p {
  font-size: 1.1rem;
  margin: 0;
  color: white;
}

/* Banner de programa destacado */
.programa-banner {
  background: var(--gradient-primary);
  padding: 2.5rem;
  border-radius: 20px;
  margin-bottom: 3rem;
  color: white;
  text-align: center;
}

.programa-banner h2 {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  text-transform: none;
}

.programa-banner p {
  font-size: 1.2rem;
  opacity: 0.95;
}

/* Grid de sesiones numeradas (orientación vocacional) */
.sesiones-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.sesion-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.sesion-card--primary   { border-left: 6px solid var(--color-primary); }
.sesion-card--secondary { border-left: 6px solid var(--color-secondary); }

.sesion-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sesion-numero {
  background: var(--gradient-primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.sesion-card h4 {
  color: var(--color-primary);
  margin: 0;
  font-size: 1.3rem;
}

.sesion-card p {
  margin-left: 66px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero-page           { padding: 120px 20px 60px; }
  .sesion-card p       { margin-left: 0; margin-top: 1rem; }
  .sesion-header       { flex-wrap: wrap; }
  .info-importante     { padding: 1.5rem; }
  .programa-banner     { padding: 1.5rem; }
  .programa-banner h2  { font-size: 1.6rem; }
}

/* Cards de proceso (grid-3) */
.card h4.card-title-secondary {
  color: var(--color-secondary);
}

/* Cards de modalidad (charlas, talleres, corporativo) */
.modalidad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.modalidad-card {
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modalidad-card--primary {
  background: linear-gradient(135deg, #f8f5fb, #ffffff);
  border: 2px solid var(--color-primary);
}

.modalidad-card--secondary {
  background: linear-gradient(135deg, #f0f8f7, #ffffff);
  border: 2px solid var(--color-secondary);
}

.modalidad-card--accent {
  background: linear-gradient(135deg, #fff8f0, #ffffff);
  border: 2px solid var(--color-accent);
}

.modalidad-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.modalidad-card h4 {
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.modalidad-card p {
  text-align: center;
  line-height: 1.6;
}

.modalidad-card ul {
  margin-top: 1rem;
  font-size: 0.95rem;
  list-style: none;
  padding-left: 0;
}

/* Lista de temas en dos columnas */
.lista-temas {
  font-size: 1.1rem;
  line-height: 2;
  margin-top: 1.5rem;
  list-style: none;
  padding-left: 0;
  columns: 2;
  column-gap: 2rem;
}

@media (max-width: 576px) {
  .lista-temas { columns: 1; }
}

/* Sección ul de servicios dentro de servicio-card */
.servicio-card ul {
  text-align: left;
  margin-top: 1rem;
  font-size: 0.95rem;
  list-style: none;
  padding-left: 0;
}

/* Caja ¿Por qué elegirnos? en servicios.html */
.por-que-box {
  max-width: 800px;
  margin: 4rem auto 0;
  text-align: center;
}

.por-que-box-inner {
  background: linear-gradient(135deg, #f8f5fb, #f0f8f7);
  padding: 2.5rem;
  border-radius: 20px;
  border: 2px solid var(--color-secondary);
}

.por-que-box-inner h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.por-que-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.por-que-item-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.por-que-item h4 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.por-que-item p {
  font-size: 0.95rem;
}

/* Sección oferta con fondo imagen */
.oferta {
  background-image:
    linear-gradient(135deg, rgba(139, 107, 175, 0.3), rgba(54, 166, 160, 0.3)),
    url('/images/portada7.webp');
  background-size: cover;
  background-position: left bottom 20%;
  background-attachment: fixed;
  position: relative;
  padding: 5rem 0;
  text-align: center;
}

@media (max-width: 768px) {
  .oferta { background-attachment: scroll; }
}

.oferta h2 {
  color: white;
  font-weight: 700;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 8px 16px rgba(0, 0, 0, 0.2);
}

.oferta > .container > p {
  color: rgba(255, 255, 255, 0.98);
  font-size: 1.15rem;
  font-weight: 600;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 4px 8px rgba(0, 0, 0, 0.5),
    0 6px 12px rgba(0, 0, 0, 0.4),
    0 8px 16px rgba(0, 0, 0, 0.3);
}

.oferta .btn-oferta {
  background: white;
  color: var(--color-primary);
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.2);
}

.oferta .btn-oferta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  background: var(--color-accent);
  color: var(--color-dark);
}

.oferta-note {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ── Sección psicólogos con fondo imagen ─── */
.psicologos-section {
  padding-top: 120px;
  padding-bottom: 80px;
  background-image: url('/images/portada10.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.psicologos-section h2 {
  color: white;
  font-weight: 700;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.15);
}

.psicologos-section .section-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .psicologos-section { background-attachment: scroll; }
}

/* ── Toast de éxito (contacto) ────────────── */
.toast-success {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 25px 50px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  animation: slideDown 0.5s ease;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.toast-success small {
  font-size: 0.95rem;
  opacity: 0.95;
}

.toast-success.toast-hide {
  animation: slideUp 0.5s ease forwards;
}

/* ── Formulario de contacto (glassmorphism) ── */
.contacto-form-glass {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(155, 89, 182, 0.2);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contacto-form-glass h3 {
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.7;
}

/* ── Oferta sólida (contacto) ─────────────── */
.oferta-solid {
  margin-top: 0;
  background: linear-gradient(135deg,
    rgba(139, 107, 175, 0.9),
    rgba(54, 166, 160, 0.9));
  padding: 5rem 0;
  text-align: center;
}

.oferta-solid h2 { color: white; }
.oferta-solid p  { color: rgba(255, 255, 255, 0.95); font-size: 1.1rem; }

/* ── Item de contacto ─────────────────────── */
.contacto-info h3 {
  margin-bottom: 2rem;
  color: var(--color-primary);
}

.contacto-item-note {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ══════════════════════════════════════════════
   NOSOTROS - Hero
══════════════════════════════════════════════ */
.nosotros-hero {
  padding-top: 80px;
}

.nosotros-titulo {
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.15);
  font-weight: 700;
  margin-top: -40px;
}

.nosotros-hero-text {
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 6px 12px rgba(0, 0, 0, 0.2);
  font-weight: 500;
  color: #000;
  max-width: 50%;
  margin-left: 0;
  margin-right: auto;
}

.nosotros-hero-text strong {
  text-shadow:
    0 3px 6px rgba(0, 0, 0, 0.5),
    0 6px 12px rgba(0, 0, 0, 0.4);
  font-weight: 700;
}

@media (max-width: 768px) {
  .nosotros-hero-text { max-width: 100%; }
}

/* ══════════════════════════════════════════════
   HOME - Por qué elegirnos
══════════════════════════════════════════════ */
.por-que-elegirnos {
  background-image:
    linear-gradient(135deg, rgba(139, 107, 175, 0.2), rgba(54, 166, 160, 0.2)),
    linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45)),
    url('/images/portada10.webp');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 5rem 0;
}

.por-que-elegirnos h2 {
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

.por-que-elegirnos .section-subtitle {
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.08);
  font-weight: 500;
}

.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .ventajas-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .ventajas-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .ventajas-grid { grid-template-columns: 1fr; }
}

/* Base compartida de todas las ventaja-item */
.ventaja-item {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(155, 89, 182, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  text-align: center;
  /* border-radius se define por nth-child para cada item */
}

/* Border-radius orgánico único por posición */
.ventaja-item:nth-child(1) { border-radius: 60% 40% 70% 30% / 40% 60% 30% 70%; }
.ventaja-item:nth-child(2) { border-radius: 40% 60% 30% 70% / 60% 30% 70% 40%; }
.ventaja-item:nth-child(3) { border-radius: 70% 30% 50% 50% / 30% 70% 70% 30%; }
.ventaja-item:nth-child(4) { border-radius: 50% 50% 70% 30% / 70% 70% 30% 30%; }
.ventaja-item:nth-child(5) { border-radius: 30% 70% 40% 60% / 50% 50% 60% 40%; }
.ventaja-item:nth-child(6) { border-radius: 60% 40% 60% 40% / 40% 70% 30% 60%; }
.ventaja-item:nth-child(7) { border-radius: 45% 55% 60% 40% / 55% 45% 40% 60%; }
.ventaja-item:nth-child(8) { border-radius: 55% 45% 65% 35% / 45% 55% 35% 65%; }
.ventaja-item:nth-child(9) { border-radius: 65% 35% 55% 45% / 35% 65% 45% 55%; }

/* ══════════════════════════════════════════════
   HOME - Cards psicólogos (home)
══════════════════════════════════════════════ */
.psicologo-card-home {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.psicologo-avatar-home {
  height: 70%;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.psicologo-avatar-home img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.psicologo-card-info {
  height: 30%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.psicologo-card-info h3  { margin: 0 0 0.3rem 0; }
.psicologo-card-info .psicologo-registro { margin: 0 0 0.3rem 0; }
.psicologo-card-info .especialidad-home  { margin: 0; }

/* ══════════════════════════════════════════════
   HOME - Botón "Ver todos" / psicólogos
══════════════════════════════════════════════ */
.section-cta {
  text-align: center;
  margin-top: 3rem;
}
