/**
 * Estilos personalizados para index.php
 * Flores Elnath
 */

/* ==========================================
   LOGO Y TÍTULOS PRINCIPALES
   ========================================== */

.logo-container {
  margin-bottom: 20px;
  margin-top: -20px;
}

.logo-main {
  height: 218px;
  filter: drop-shadow(3px 3px 8px rgba(0, 0, 0, 0.3));
  margin-bottom: 20px;
}

/* Sobrescribir estilos del h1 del styles.css */
main h1 {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: inline !important;
}

.titulo-principal {
  color: #000000 !important;
  font-weight: 800;
  font-size: 3.36rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8),
               0 0 10px rgba(255, 255, 255, 0.6);
}

.subtitulo-principal {
  color: #1e3a8a !important;
  font-size: 2.34rem !important;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9),
               0 0 8px rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
}

/* ==========================================
   SECTION TITLE (TERAPIAS, TESTIMONIOS)
   ========================================== */

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #4a5d23 !important;
  margin: 50px 0 40px 0;
  position: relative;
  display: inline-block;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9),
               0 0 8px rgba(255, 255, 255, 0.7),
               0 0 12px rgba(255, 255, 255, 0.5) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #4a5d23 !important;
  background-clip: unset !important;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: #4a5d23;
}

.location-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: #4a5d23 !important;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9),
               0 0 6px rgba(255, 255, 255, 0.7);
  margin-top: -25px;
  margin-bottom: 10px;
}

.location-text i {
  font-size: 1.4rem;
  margin-right: 8px;
  color: #6b8e23;
  border-radius: 2px;
  box-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9);
}

/* ==========================================
   CARDS DE TERAPIAS
   ========================================== */

.terapia-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.terapia-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.terapia-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(102, 126, 234, 0.25);
  border-color: rgba(102, 126, 234, 0.3);
}

.terapia-card:hover::before {
  transform: scaleX(1);
}

.terapia-card h5 {
  font-weight: 800;
  color: #000000 !important;
  margin-top: 15px;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9),
               0 0 8px rgba(255, 255, 255, 0.7),
               0 0 12px rgba(255, 255, 255, 0.5) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #000000 !important;
  background-clip: unset !important;
  filter: none !important;
}

/* ==========================================
   IMÁGENES DE TERAPIAS
   ========================================== */

.imagen-marco {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf6 100%);
  padding: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}

.imagen-marco::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 10px;
  pointer-events: none;
}

.imagen-marco img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.terapia-card:hover .imagen-marco img {
  transform: scale(1.05);
}

/* ==========================================
   CAROUSEL CONTROLS
   ========================================== */

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
  left: -70px;
}

.carousel-control-next {
  right: -70px;
}

.carousel-inner {
  padding: 20px 0;
}

/* ==========================================
   FORMULARIO DE TESTIMONIOS
   ========================================== */

.testimonio-form-card {
  border-radius: 15px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testimonio-form-title {
  color: #667eea;
  font-weight: bold;
}

.btn-enviar-testimonio {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  padding: 12px;
  font-weight: bold;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-enviar-testimonio:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* ==========================================
   CARDS DE TESTIMONIOS
   ========================================== */

.card-testimonio {
  border-radius: 15px;
  border: 2px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

.card-testimonio:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.testimonio-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
  .titulo-principal {
    font-size: 2rem;
  }

  .subtitulo-principal {
    font-size: 1.5rem !important;
  }

  .carousel-control-prev {
    left: -30px;
  }

  .carousel-control-next {
    right: -30px;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .logo-main {
    height: 150px;
  }

  .titulo-principal {
    font-size: 1.5rem;
  }

  .subtitulo-principal {
    font-size: 1.2rem !important;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  .carousel-control-prev {
    left: -20px;
  }

  .carousel-control-next {
    right: -20px;
  }
}

/* ==========================================
   SECCIÓN VIDEOS INFORMATIVOS
   ========================================== */

#videos-informativos {
  padding: 40px 0;
}

.video-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(102, 126, 234, 0.25);
  border-color: rgba(102, 126, 234, 0.3);
}

.video-embed-container {
  position: relative;
  width: 100%;
  background: #000;
}

.video-embed-container iframe {
  display: block;
  width: 100%;
}

.video-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.video-titulo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000000 !important;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.video-descripcion {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 10px;
  flex-grow: 1;
}

.video-categoria {
  display: inline-block;
  padding: 5px 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .video-card {
    margin-bottom: 20px;
  }

  .video-embed-container iframe {
    height: 200px;
  }
}
