/* ============================= */
/* 1. SECCIÓN "NUESTRA CLÍNICA"  */
/* ============================= */
.clinica-section {
  background-color: var(--bg-light);
  padding: 80px 0;
  font-family: var(--font-primary);
}

/* Contenedor general con flex */
.clinica-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Columna izquierda: texto */
.clinica-container .text {
  flex: 1;
  text-align: left;
}

.clinica-container .text h2 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.9rem;
  position: relative;
}

.clinica-container .text h2::after {
  content: "";
  display: block;
  width: 55px;
  height: 3px;
  background: var(--secondary-color);
  margin-top: 6px;
  border-radius: 2px;
}

.clinica-container .text p {
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 12px;
  text-align: justify;
}

/* Columna derecha: imagen */
.clinica-container .image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.clinica-container .image img {
  max-width: 85%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clinica-container .image img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 768px) {
  .clinica-container {
    flex-direction: column;
    text-align: center;
  }

  .clinica-container .text {
    text-align: center;
  }

  .clinica-container .image {
    justify-content: center;
    margin-top: 25px;
  }

  .clinica-container .image img {
    max-width: 90%;
  }
}
