/* ==========================================================================
   HOJA DE ESTILOS MAIPUMED - ORDENADA
   ========================================================================== */

/* 1. CONFIGURACIÓN Y VARIABLES
   -------------------------------------------------------------------------- */
:root {
  --maipu-cyan: #3bbab5;
  --maipu-dark: #232d37;
  --maipu-green: #28a745;
  --maipu-main: #3bbab5;
  --transition: all 0.3s ease;
}

body {
  font-family: "Montserrat", sans-serif;
  color: #444;
}

.text-cyan {
  color: var(--maipu-cyan);
}
.rounded-lg {
  border-radius: 20px !important;
}
.rounded-pill {
  border-radius: 50px;
}

/* 2. CABECERA Y NAVEGACIÓN
   -------------------------------------------------------------------------- */
.banner-info-deportivo {
  background: var(--maipu-dark);
  padding: 10px 0;
}

.wrap {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}

.btn-action {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-left: 10px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  color: var(--maipu-dark);
}

.btn-action:hover {
  background: var(--maipu-cyan);
  color: white;
  border-color: var(--maipu-cyan);
  text-decoration: none;
}

.btn-action.active-btn {
  background: var(--maipu-cyan);
  color: white;
  border-color: var(--maipu-cyan);
}

.ftco_navbar {
  padding: 10px 0 !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
  transition: var(--transition);
}

.nav-link {
  font-weight: 500 !important;
  color: var(--maipu-dark) !important;
}

.nav-item.active .nav-link {
  color: var(--maipu-cyan) !important;
}

/* 3. HERO SECTIONS (HOME E INTERNAS)
   -------------------------------------------------------------------------- */
.hero-wrap {
  position: relative;
  height: 85vh !important;
  background-image: url("../images/headerOne.jpeg");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

.overlay-hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(35, 45, 55, 0.85) 0%,
    rgba(59, 186, 181, 0.5) 100%
  );
}


.internal-hero {
  position: relative; /* Padre relativo */
  padding: 80px 0;
  color: white;
  background-image: url("../images/headerOne.jpeg");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  min-height: 300px;
  display: flex;
  overflow: hidden;
}

.overlay-premium {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(35, 45, 55, 0.85) 0%,
    rgba(59, 186, 181, 0.5) 100%
  );
  z-index: 1; /* Capa inferior */
}

.content-relative {
  position: relative;
  z-index: 2; /* Capa superior (encima del overlay) */
}

/* Decoración extra */
.text-teal {
  color: #3bbab5;
}

.divider {
  width: 50px;
  height: 3px;
  background: #3bbab5;
  margin: 15px auto;
  border-radius: 2px;
}

/* Fix para móviles: el attachment fixed suele dar problemas */
@media (max-width: 768px) {
  .internal-hero {
    background-attachment: scroll;
    padding: 60px 0;
  }
}

.subheading {
  display: block;
  text-transform: uppercase;
  color: var(--maipu-cyan);
  letter-spacing: 3px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 15px;
}

.main-title {
  font-size: 5.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.main-title span {
  color: var(--maipu-cyan);
}

.hero-tagline {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 30px;
  font-weight: 300;
}

/* 4. COMPONENTES Y BOTONES
   -------------------------------------------------------------------------- */
.btn-primary {
  background: var(--maipu-cyan) !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 12px 30px !important;
  font-weight: 600;
}

.btn-primary:hover {
  background: #2f9a96 !important;
  transform: scale(1.05);
}

.btn-hero {
  padding: 16px 40px !important;
  font-size: 16px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-hero-outline {
  border: 2px solid #fff;
  color: #fff;
  border-radius: 50px;
  padding: 16px 40px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-hero-outline:hover {
  background: #fff;
  color: var(--maipu-dark);
}

.btn-main {
  background-color: var(--maipu-main);
  border-color: var(--maipu-main);
  color: white;
  border-radius: 50px;
  font-weight: 600;
}

.btn-main:hover {
  background-color: #329d99;
  color: white;
}

.btn-danger-soft {
  background-color: #fff1f0;
  color: #dc3545;
  border: 1px solid #dc3545;
  border-radius: 50px;
  font-weight: 600;
}

.btn-danger-soft:hover {
  background-color: #dc3545;
  color: white;
}

.btn-mapa {
  background: #232d37;
  color: white !important;
  padding: 12px 25px;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
}

.btn-mapa:hover {
  background: #3bbab5;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.btn-appointment {
  background-color: #3bbab5;
  color: white !important;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 700;
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-appointment:hover {
  background-color: #232d37;
  transform: scale(1.05);
}

/* 5. SISTEMA DE CARDS (TARJETAS)
   -------------------------------------------------------------------------- */
/* Card Genérica Contacto */
.servicio-contacto-card {
  background: #fff;
  border-radius: 15px;
  padding: 40px 30px;
  height: 100%;
  border: 1px solid #eaeff2;
  transition: var(--transition);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.servicio-contacto-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.servicio-icon {
  width: 70px;
  height: 70px;
  background: var(--maipu-cyan);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px;
  font-size: 28px;
}

/* Card Horarios */
.horario-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  height: 100%;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.horario-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(59, 186, 181, 0.15);
}

.horario-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background: #3bbab5;
}

/* Card Especialidades */
.esp-card {
  background: white;
  border-radius: 20px;
  padding: 30px 15px;
  text-align: center;
  transition: all 0.4s ease;
  border: none;
  height: 100%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.esp-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(59, 186, 181, 0.25);
}

/* Card Prácticas */
.practica-category-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid #efefef;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.practica-category-card:hover {
  transform: translateY(-5px);
  border-color: #3bbab5;
  box-shadow: 0 10px 25px rgba(59, 186, 181, 0.15);
}

/* Card Contacto Simple */
.card-contact {
  background: #fff;
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card-contact:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* 6. ELEMENTOS DE LISTAS Y TEXTO INTERNO
   -------------------------------------------------------------------------- */
.service-icon {
  font-size: 2rem;
  color: #3bbab5;
  margin-bottom: 20px;
}
.service-name {
  font-weight: 800;
  color: #232d37;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.time-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f8f9fa;
}
.time-row:last-child {
  border-bottom: none;
}
.day-text {
  font-weight: 600;
  color: #555;
}
.hour-text {
  color: #3bbab5;
  font-weight: 700;
}

.badge-spontaneous {
  background: #e8f7f6;
  color: #3bbab5;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 50px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 10px;
}

.practica-list {
  text-align: left;
  margin-bottom: 0;
}
.practica-item {
  padding: 8px 0;
  border-bottom: 1px solid #f8f9fa;
  font-size: 0.9rem;
  color: #555;
  display: flex;
  align-items: center;
}
.practica-item:last-child {
  border-bottom: none;
}
.practica-item::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 10px;
  color: #3bbab5;
  font-size: 0.8rem;
}

.esp-icon {
  font-size: 2.5rem;
  color: #3bbab5;
  margin-bottom: 15px;
  transition: 0.3s;
}
.esp-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #232d37;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

/* 7. FORMULARIOS Y BUSQUEDA
   -------------------------------------------------------------------------- */
.search-container {
  max-width: 600px;
  margin: -30px auto 40px;
  position: relative;
  z-index: 10;
}

.search-container input {
  height: 60px;
  border-radius: 50px;
  padding-left: 30px;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.search-container i {
  position: absolute;
  right: 25px;
  top: 22px;
  color: #3bbab5;
}

#practicaSearch {
  height: 55px;
  border-radius: 50px;
  padding-left: 25px;
}

.custom-input {
  border: 1px solid #e9ecef;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.custom-input:focus {
  border-color: var(--maipu-cyan);
  background-color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(59, 186, 181, 0.15);
}

/* 8. OBRAS SOCIALES
   -------------------------------------------------------------------------- */
.obras-sociales-carousel {
  padding: 60px 0;
  background: #fff;
}

.logo-wrapper {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.logo-wrapper img {
  max-height: 70px !important;
  width: auto !important;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: 0.3s ease;
}

.logo-wrapper:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.obra-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #eee;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.obra-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border-color: #3bbab5;
}

.obra-logo {
  max-height: 50px;
  max-width: 100%;
  margin-bottom: 15px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.obra-card:hover .obra-logo {
  filter: grayscale(0%);
  opacity: 1;
}

.obra-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #232d37;
  margin-bottom: 0;
  text-transform: uppercase;
}

/* 9. WHATSAPP FLOTANTE
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
}

.whatsapp-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  background-color: #ff3b30;
  color: white;
  border-radius: 50%;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  animation: pulse-red 2s infinite;
}

.whatsapp-msg {
  position: absolute;
  right: 75px;
  background: white;
  color: #444;
  padding: 8px 15px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

.whatsapp-float:hover .whatsapp-msg {
  opacity: 1;
  transform: translateX(0);
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 59, 48, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
  }
}

/* 10. DECORACIÓN Y ESTÉTICA (IMAGE STACKS, BADGES)
   -------------------------------------------------------------------------- */
.section-sustentabilidad {
  overflow: hidden;
}

.icon-map {
  font-size: 1.5rem;
  color: #3bbab5;
}
.btn-mapa:hover .icon-map {
  color: white;
}

.icon-circle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #28a745;
}

.image-stack {
  position: relative;
  padding: 20px;
}
.main-img {
  border-radius: 20px;
  z-index: 1;
  position: relative;
}

.experience-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #3bbab5;
  color: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  z-index: 2;
  min-width: 120px;
}

.header-line {
  width: 50px;
  height: 3px;
  background: var(--maipu-cyan);
  margin: 15px auto;
}

.border-emergency {
  border-top: 5px solid #dc3545 !important;
}
.border-main {
  border-top: 5px solid var(--maipu-main) !important;
}
.border-info-custom {
  border-top: 5px solid #17a2b8 !important;
}
.border-secondary {
  border-top: 5px solid #6c757d !important;
}

.icon-box {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.bg-light-red {
  background-color: #fff1f0;
}
.bg-light-main {
  background-color: #e6f7f6;
}
.bg-light-info {
  background-color: #e7f6f8;
}
.bg-light-secondary {
  background-color: #f8f9fa;
}

.category-icon {
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: #f1f8f7;
  color: #3bbab5;
  font-size: 24px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.category-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #232d37;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.lab-note {
  font-size: 0.85rem;
  background: #fff9e6;
  padding: 10px;
  border-radius: 10px;
  margin-top: 15px;
  color: #856404;
}

/* 11. FOOTER Y REDES SOCIALES
   -------------------------------------------------------------------------- */
.footer {
  background: var(--maipu-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0;
}

.footer-heading {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 30px;
}

.social-icon-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  font-size: 1.2rem;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
  text-decoration: none !important;
}

.social-icon-btn:hover {
  transform: translateY(-5px);
  color: #fff;
}

.facebook {
  background: #3b5998;
}
.instagram {
  background: #e1306c;
}
.whatsapp {
  background: #25d366;
}

/* 12. MODALES
   -------------------------------------------------------------------------- */
.modal-header {
  background-color: #3bbab5;
  color: white;
  border: none;
  border-radius: 20px 20px 0 0;
}

.modal-content {
  border-radius: 20px;
  border: none;
}

/* 13. MEDIA QUERIES (RESPONSIVE)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .main-title {
    font-size: 3.5rem;
  }
  .hero-tagline {
    font-size: 1.1rem;
  }
  .btn-hero,
  .btn-hero-outline {
    padding: 12px 25px !important;
    width: 100%;
    margin-bottom: 10px;
  }
  .btn-mapa {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .rounded-lg {
    border-radius: 20px !important;
  }
}

@media (max-width: 480px) {
  .whatsapp-msg {
    display: none;
  }
}

/* Estilos para que luzca como la imagen */
.especialidad-card {
  background-color: #1a202c; /* Fondo oscuro casi negro */
  border-radius: 15px;
  padding: 30px 15px;
  margin-bottom: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.especialidad-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  background-color: #2d3748; /* Un poco más claro al pasar el mouse */
}

.especialidad-icon {
  font-size: 2.5rem;
  color: #3bbab5; /* El azul cian de Maipumed */
  margin-bottom: 15px;
}

.especialidad-nombre {
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0;
}

/* Ajuste del contenedor del modal */
.modal-content.especialidades-modal {
  border-radius: 20px;
  border: none;
}
.text-teal { color: #3bbab5; }
.badge-outline-teal {
    color: #3bbab5;
    border: 1px solid #3bbab5;
    background: transparent;
    padding: 5px 12px;
    border-radius: 20px;
}
.obra-item:hover {
    background-color: #f8ffff;
    cursor: default;
}
.letter-group td {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}