/* ===========================
   BASE
=========================== */
* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  min-height: 100%; /* Cambia height por min-height */
  margin: 0;
  overflow-x: hidden; /* Evita scroll hacia los costados */
  overflow-y: auto;   /* Asegura el scroll hacia abajo */
}

body {
  display: block; /* O simplemente quita el display: flex si no es estrictamente necesario */
}

main {
  flex: 1;
  padding-top: 90px; /* espacio para header fijo */
}

/* ===========================
   HEADER
=========================== */
.header-area {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-area a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 14px;
}

.header-area .logo h4 {
  font-size: 18px;
}

/* ===========================
   BOTÓN MIS ESTUDIOS
=========================== */
.estudios-btn,
.estudios {
  background-color: #fe3f40;
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  text-transform: capitalize;
  padding: 2px 25px;
  border-radius: 20px;
  letter-spacing: 0.25px;
}

.estudios {
  display: none;
}

/* ===========================
   CONTACTO
=========================== */
#contacto {
  padding: 80px 0;
  background: #f4f6f8;
}

.contact-card {
  background: #fff;
  padding: 40px 25px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  height: 100%;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card i {
  font-size: 36px;
  color: #fe3f40;
  margin-bottom: 15px;
}

/* ===========================
   IMÁGENES CIRCULARES
=========================== */
.team-img {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 5px solid #f20040;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

.team-img:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 25px rgba(0,0,0,0.5);
}

.right-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 50%;
  border: 5px solid #f20040;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

/* ===========================
   SERVICIOS / ESTADÍSTICAS
=========================== */
.stats {
  display: flex;
  flex-wrap: wrap;
}

.stat {
  flex: 1;
  padding: 80px;
  color: #fff;
  text-align: center;
  font-weight: bold;
  font-size: 34px;
}

.stat:nth-child(1) { background: #f20040; }
.stat:nth-child(2) { background: #e50d47; }

.stat p {
  font-size: 20px;
  margin-top: 10px;
}

/* ===========================
   INSTITUCIONAL
=========================== */
.section-institucional {
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  padding: 90px 0;
}

.institucional-card {
  background: #fff;
  border-radius: 18px;
  padding: 45px 40px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.08);
  margin-bottom: 50px;
}

.institucional-card h2 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

.institucional-card p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(242,0,64,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.icon-circle i {
  color: #f20040;
}

.institucional-feature h5 {
  font-weight: 600;
  margin-top: 10px;
}

.institucional-feature p {
  font-size: 14px;
  color: #666;
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: #000;
  color: #fff;
  padding: 30px 15px;
  width: 100%;
  text-align: center;
}

footer div {
  margin-bottom: 15px;
}

footer h4 {
  font-size: 14px;
  text-transform: uppercase;
}

footer p {
  font-size: 12px;
  margin: 3px 0;
}

/* ===========================
   WHATSAPP
=========================== */
#whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 1000;
}

#whatsapp-button img {
  width: 32px;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 992px) {
  .right-image img { max-width: 400px; }
  .header-area .logo h4 { font-size: 16px; }
  .estudios { display: flex; }
}

@media (max-width: 768px) {
  .team-img,
  .right-image img { max-width: 300px; margin: 0 auto; }

  .header-area .logo h4,
  .titulocrm { display: none; }

  #whatsapp-button {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .right-image img {
    max-width: 250px;
    max-height: 250px;
    width: auto;
  }

  footer h4 { font-size: 12px; }
  footer p { font-size: 10px; }

  #whatsapp-button {
    width: 40px;
    height: 40px;
  }
}
  .social-icons a:hover {
    transform: scale(1.2);
  }
a[href*="wa.me"]:hover {
        transform: scale(1.1);
    }

    /* Estilo para los nombres de las obras sociales */
.entidad-nombre {
    transition: all 0.3s ease; /* Hace que el cambio sea suave */
    display: inline-block;
    cursor: default;
}

/* Efecto cuando pasas el ratón por encima */
.entidad-nombre:hover {
    color: #fe3f40 !important; /* Cambia a rojo institucional */
    transform: translateX(5px); /* Se mueve 5px a la derecha */
    font-weight: 600;
}