/* ======================================================
   SERVICIOS – CSS CORRECTIVO (REDISEÑO AMARILLO EDITORIAL)
   ====================================================== */

.services-page {
  font-family: 'Lora', serif;
  color: #2b2b2b;
  line-height: 1.7;
}

/* ---------- INTRO ---------- */

.services-intro {
  max-width: 900px;
  margin: 4.5rem auto 3.5rem;
  text-align: center;
}

.services-intro h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 3rem;
  color: #4e2f0e;
  margin-bottom: 1rem;
}

.services-intro p {
  font-size: 1.05rem;
  text-align: justify;
}

/* ---------- BLOQUES DE SERVICIOS ---------- */

.services-blocks {
  max-width: 1100px;
  margin: 0 auto 5rem;
  display: flex;
  gap: 2.5rem;
}

.service-card {
  flex: 1;
  background: rgba(244, 177, 14, 0.72);
  border-radius: 22px;
  padding: 1.8rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}

.services-page #open-individual::before,
.services-page #open-pareja::before,
.services-page #open-talleres::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  z-index: 0;
}

.services-page #open-individual::before {
  background-image: url("../assets/images/individual.png");
}

.services-page #open-pareja::before {
  background-image: url("../assets/images/pareja.png");
}

.services-page #open-talleres::before {
  background-image: url("../assets/images/charla.png");
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.14);
}

.service-card h3 {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  color: #4e2f0e;
  margin-bottom: .8rem;
}

.service-card p {
  font-size: .95rem;
  text-align: justify;
  margin-bottom: 1.4rem;
  color: #1a140c;
}

.service-button {
  font-family: 'Lora', serif;
  border-radius: 24px;
  border: none;
  background: #4e2f0e;
  color: #F4B10E;
  padding: .6rem 1.6rem;
  cursor: pointer;
  transition: all .3s ease;
}

.service-button:hover {
  background: #3c240b;
  color: #F4B10E;
  transform: translateY(-2px);
}

/* ---------- METODOLOGÍA ---------- */

.services-method {
  max-width: 900px;
  margin: 0 auto 3.5rem;
}

.services-method h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.6rem;
  color: #4e2f0e;
  text-align: center;
  margin-bottom: 1.4rem;
}

.services-method h3 {
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  color: #4e2f0e;
  margin-top: 2.2rem;
}

.services-method p {
  text-align: justify;
}

/* ---------- AVISO NO URGENCIAS ---------- */

.services-warning {
  max-width: 850px;
  margin: 3rem auto 4.5rem;
  padding: 1.6rem 2rem;
  background: rgba(244, 177, 14, 0.75);
  border-left: 5px solid #4e2f0e;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.10);
  display: flex;
  gap: 1rem;
  transition: transform .3s ease, box-shadow .3s ease;
}

.services-warning:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.16);
}

.warning-icon {
  width: 34px;
  height: 34px;
  background-image: url("../assets/images/importante.png");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* ---------- CONTACTO ---------- */

.services-contact {
  max-width: 1100px;
  margin: 0 auto 5rem;
  display: flex;
  gap: 5rem;
}

.contact-main h2 {
  font-family: 'Dancing Script', cursive;
  color: #4e2f0e;
  font-size: 2.4rem;
}

.contact-buttons {
  margin-top: 1.8rem;
  display: flex;
  gap: 1rem;
}

@keyframes subtleFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

.btn-primary,
.btn-secondary {
  font-family: 'Lora', serif;
  padding: .7rem 1.8rem;
  border-radius: 28px;
  text-decoration: none;
  font-size: .95rem;
  animation: subtleFloat 3.5s ease-in-out infinite;
}

.btn-primary {
  background: #4e2f0e;
  color: #F4B10E;
}

.btn-secondary {
  border: 1.5px solid #4e2f0e;
  color: #4e2f0e;
}

.btn-primary:hover,
.btn-secondary:hover {
  background: #3c240b;
  color: #F4B10E;
}

/* CAJA CONSULTA */

.contact-box {
  background: rgba(244, 177, 14, 0.78);
  border-radius: 26px;
  padding: 2.4rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.20);
  max-width: 430px;
}

.contact-box h3 {
  font-family: 'Dancing Script', cursive;
  color: #4e2f0e;
  font-size: 1.8rem;
  margin-bottom: .8rem;
}

.contact-box p {
  text-align: justify;
}

.contact-box button {
  margin-top: 1.6rem;
  border-radius: 26px;
  padding: .7rem 1.8rem;
  border: none;
  background: #4e2f0e;
  color: #F4B10E;
  font-family: 'Lora', serif;
  cursor: pointer;
  transition: all .3s ease;
}

.contact-box button:hover {
  background: #3c240b;
  transform: translateY(-2px);
}

/* ---------- MODALES SERVICIOS (INTEGRADOS SIN ROMPER NADA) ---------- */

.services-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.services-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.services-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: #ffffff;
  width: 90%;
  max-width: 700px;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
}

.services-modal.active .services-modal-content {
  transform: translate(-50%, -50%) scale(1);
}

.services-modal-content h2 {
  font-family: 'Dancing Script', cursive;
  color: #4e2f0e;
  margin-bottom: 1rem;
}

.services-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #4e2f0e;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
  .services-blocks,
  .services-contact {
    flex-direction: column;
  }
}

/* ---------- AJUSTES MODAL (TEXTO + BOTÓN VOLVER) ---------- */

.services-modal-content p {
  text-align: justify;
}

.services-modal-content button.services-modal-close {
  position: static;
  margin-top: 1.5rem;
  border-radius: 24px;
  border: none;
  background: #4e2f0e;
  color: #F4B10E;
  padding: .6rem 1.6rem;
  font-family: 'Lora', serif;
  cursor: pointer;
}

.services-modal-content span.services-modal-close {
  display: none;
}

.services-modal-content button.services-modal-close {
  font-size: .9rem;
  padding: .45rem 1.2rem;
}

/* ======================================================
   CARRUSEL CONSULTORIO
   ====================================================== */

.consultorio-carousel {
  max-width: 1100px;
  margin: 5rem auto 5rem;
  text-align: center;
}

.consultorio-carousel h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.4rem;
  color: #4e2f0e;
  margin-bottom: 2.5rem;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  overflow: hidden;
  padding-bottom: 25px;
  
}

.carousel-item {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid rgba(244,177,14,0.75);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; 
}
