/* Estilos específicos para la página de Fisioterapia */

:root {
  --fis-teal:       #0d9488;   /* teal principal */
  --fis-teal-dark:  #0f766e;   /* teal oscuro */
  --fis-blue:       #0ea5e9;   /* azul claro */
  --fis-navy:       #0c4a6e;   /* azul marino */
  --fis-light:      #f0fdfa;   /* fondo teal muy claro */
  --fis-gray:       #f8fafc;   /* fondo gris suave */
  --fis-white:      #ffffff;

  /* Mantener compatibilidad con CSS antiguo */
  --medical-blue:   #0ea5e9;
  --medical-dark:   #0c4a6e;
  --medical-light:  #e0f2fe;
  --accent-red:     #ef4444;
}

body {
  font-family: 'Nunito', sans-serif;
}

/* Hero con video/imagen de fondo */
.hero-medical {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.95) 0%, rgba(12, 74, 110, 0.9) 100%), url('../img/about.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-medical::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content-medical {
  position: relative;
  z-index: 2;
  color: white;
}

.floating-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.floating-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

/* Servicios con diseño de grid moderno */
.service-grid-item {
  position: relative;
  background: white;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 0 0 1px #e5e7eb;
  transition: all 0.4s ease;
  height: 100%;
}

.service-grid-item:hover {
  box-shadow: 0 20px 60px rgba(14, 165, 233, 0.15);
  transform: translateY(-5px);
}

.service-grid-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--medical-blue) 0%, var(--accent-red) 100%);
  transition: height 0.4s ease;
}

.service-grid-item:hover::before {
  height: 100%;
}

.service-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(14, 165, 233, 0.08);
  line-height: 1;
}

.service-grid-content {
  padding: 40px 30px;
  position: relative;
  z-index: 1;
}

.service-icon-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--medical-blue) 0%, var(--medical-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.service-icon-circle i {
  font-size: 2rem;
  color: white;
}

/* Stats Section */
.stats-medical {
  background: linear-gradient(135deg, var(--medical-dark) 0%, var(--medical-blue) 100%);
  padding: 60px 0;
  color: white;
}

.stat-box {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 600;
}

/* Capacitaciones con timeline */
.timeline-item {
  position: relative;
  padding-left: 60px;
  padding-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: -40px;
  width: 2px;
  background: linear-gradient(180deg, var(--medical-blue) 0%, transparent 100%);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 10px;
  top: 5px;
  width: 22px;
  height: 22px;
  background: white;
  border: 4px solid var(--medical-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.timeline-content {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.15);
  transform: translateX(10px);
}

/* Contacto con diseño split */
.contact-split {
  display: flex;
  min-height: 600px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  border-radius: 20px;
  overflow: hidden;
}

.contact-info-side {
  background: linear-gradient(135deg, var(--medical-dark) 0%, var(--medical-blue) 100%);
  color: white;
  padding: 60px 40px;
  flex: 1;
}

.contact-map-side {
  flex: 1;
  position: relative;
}

.contact-item-medical {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.contact-item-medical:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(10px);
}

.contact-icon-medical {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-medical i {
  font-size: 1.5rem;
}

/* Botón flotante mejorado */
.whatsapp-float-medical {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float-medical:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  50% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .contact-split {
    flex-direction: column;
  }
  
  .hero-medical {
    min-height: 70vh;
  }
}


/* ============================================================
   HERO — Estilo Orthoc (degradado teal, imagen derecha, ola)
   ============================================================ */
.fis-hero-section {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 180px 0 140px;
    /* Imagen cubre TODO el fondo */
    background-image: url('../img/services.jpg');
    background-size: cover;
    background-position: center top;
}

/* Overlay teal que cubre la izquierda y se desvanece a la derecha — un solo fondo unificado */
.fis-hero-section::before {
    content: '';
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to right,
     rgb(13 148 136 / 93%) 0%,
     rgb(13 148 136 / 82%) 25%,
     rgb(13 148 136 / 50%) 50%,
     rgb(13 148 136 / 16%) 75%,
     rgba(13, 148, 136, 0.0) 100%);
}




/* Quitar el div de imagen separado — ya no se usa */
.fis-hero-right-img { display: none; }

.fis-hero-section .container { position: relative; z-index: 2; }

.fis-hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff; padding: 10px 24px;
    border-radius: 50px; font-size: 0.9rem; font-weight: 600;
    margin-bottom: 28px;
}

.fis-hero-h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900; color: #fff;
    line-height: 1.1; margin-bottom: 22px;
}
.fis-hero-h1 span {
    display: block;
    font-size: 0.58em; font-weight: 300;
    color: rgba(255,255,255,0.85);
    margin-top: 6px;
}

.fis-hero-p {
    font-size: 1.05rem; color: rgba(255,255,255,0.9);
    line-height: 1.8; max-width: 480px; margin-bottom: 36px;
}

.fis-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 0; }

/* Botón primario — texto + caja (mismo estilo Heaven X) */
.fis-btn-primary {
    display: inline-flex; align-items: center; gap: 0;
    color: #fff; font-size: 0.82rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    text-decoration: none; transition: all .2s;
}
.fis-btn-primary span {
    width: 38px; height: 38px; background: rgba(255,255,255,0.25);
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: 14px; border-radius: 4px; font-size: 1rem;
    border: 1px solid rgba(255,255,255,0.4);
    transition: background .2s;
}
.fis-btn-primary:hover { color: #e0f2fe; }
.fis-btn-primary:hover span { background: rgba(255,255,255,0.35); }

.fis-btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    color: #fff; font-size: 0.82rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    border: 1.5px solid rgba(255,255,255,0.4);
    padding: 10px 22px; border-radius: 6px;
    text-decoration: none; transition: all .2s;
}
.fis-btn-secondary:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Imagen del profesional — reemplazada por fis-hero-right-img */

/* Dots centrados */
.fis-hero-dots-center {
    position: absolute; bottom: 90px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 3;
}
.fis-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.4); cursor: pointer; transition: all .3s;
    border: none;
}
.fis-dot.active { background: #fff; width: 28px; border-radius: 5px; }

/* Ola inferior */
.fis-hero-wave {
    position: absolute; bottom: 0; left: 0; right: 0;
    line-height: 0; z-index: 1;
}
.fis-hero-wave svg {
    display: block; width: 100%; height: 70px;
}

/* ============================================================
   DEPARTMENT STATS — Estilo department_section médico
   ============================================================ */
.fis-dept-section {
    padding: 70px 0 60px;
    background: #fff;
}

.fis-dept-box {
    background: #fff;
    border: 1px solid #e0f2fe;
    border-radius: 16px;
    padding: 36px 24px;
    text-align: center;
    transition: all .3s;
    height: 100%;
    box-shadow: 0 4px 20px rgba(14,165,233,0.07);
}
.fis-dept-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(14,165,233,0.14);
    border-color: #0ea5e9;
}

.fis-dept-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--fis-teal), var(--fis-blue));
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #fff;
    margin: 0 auto 16px;
}
.fis-dept-num {
    font-size: 2.4rem; font-weight: 900;
    color: var(--fis-teal); line-height: 1; margin-bottom: 8px;
}
.fis-dept-title {
    font-size: 1rem; font-weight: 700;
    color: #1f2937; margin-bottom: 10px;
}
.fis-dept-desc {
    font-size: 0.85rem; color: #6b7280;
    line-height: 1.6; margin: 0;
}

@media (max-width: 992px) {
    .fis-hero-section { min-height: auto; padding: 120px 0 100px; }
    .fis-hero-dots-center { bottom: 70px; }
}
