/* ==================== ESTILOS HUMANO EN LÍNEA ==================== */
/* Diseño Premium con enfoque en apoyo psicosocial - Mejores prácticas UI/UX */

/* Hero Section - Emotivo y Acogedor */
.hero-humano-linea {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-humano-linea::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

.hero-humano-linea::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(30px, -30px) rotate(180deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-humano-linea h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 1s ease;
  letter-spacing: -0.02em;
}

.hero-humano-linea p {
  font-size: 1.5rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  animation: fadeInUp 1s ease 0.2s both;
  font-weight: 300;
}

/* Content Section - Optimizado */
.seccion-contenido {
  padding: 4rem 0;
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.contenido-principal {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.humano-linea-container {
  background: white;
  padding: 3rem;
  border-radius: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* Intro Section - Emotivo */
.intro-section {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  padding: 2.5rem;
  border-radius: 1.5rem;
  margin-bottom: 4rem;
  border-left: 6px solid var(--primary);
  box-shadow: 0 4px 20px rgba(46, 125, 50, 0.15);
}

.intro-section p {
  font-size: 1.25rem;
  color: var(--gray-700);
  line-height: 1.9;
  margin: 0;
}

/* Contacto Destacado - Premium y Urgente */
.info-principal {
  margin-bottom: 5rem;
}

.contacto-destacado {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 4rem 3rem;
  border-radius: 2rem;
  color: white;
  text-align: center;
  box-shadow: 0 20px 60px rgba(46, 125, 50, 0.3);
  position: relative;
  overflow: hidden;
}

.contacto-destacado::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.contacto-destacado h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: white;
  position: relative;
  z-index: 1;
}

.telefono-grande {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 1.5rem;
  margin-bottom: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.telefono-grande:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.02);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.telefono-grande svg {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  color: white;
  margin: 0 auto 1.5rem;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.telefono-grande .numero {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  display: block;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.05em;
}

.telefono-grande .disponibilidad {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.otros-contactos {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.otros-contactos p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

.otros-contactos strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* Servicios Section - Grid Premium */
.servicios-section {
  margin-bottom: 5rem;
}

.servicios-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.servicios-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.servicio-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.servicio-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.servicio-item:hover::before {
  transform: scaleX(1);
}

.servicio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(46, 125, 50, 0.2);
  border-color: var(--primary);
}

.servicio-item svg {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  color: var(--primary);
  margin: 0 auto 1.5rem;
  display: block;
  transition: all 0.4s ease;
}

.servicio-item:hover svg {
  transform: scale(1.15) rotate(5deg);
  color: var(--primary-dark);
}

.servicio-item h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.servicio-item p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin: 0;
}

/* Población Section */
.poblacion-section {
  margin-bottom: 5rem;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  padding: 4rem 3rem;
  border-radius: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.poblacion-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.poblacion-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

.poblacion-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.poblacion-item {
  background: white;
  padding: 2rem;
  border-radius: 1.25rem;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  border-left: 5px solid var(--primary);
  transition: all 0.3s ease;
  text-align: center;
}

.poblacion-item:hover {
  transform: translateX(8px);
  box-shadow: 0 12px 40px rgba(46, 125, 50, 0.15);
}

.poblacion-item h4 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.poblacion-item p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin: 0;
}

/* Principios Section - Lista Estilizada */
.principios-section {
  margin-bottom: 5rem;
}

.principios-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.principios-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

.principios-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.principios-list li {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  padding: 2rem;
  border-radius: 1.25rem;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  border-left: 5px solid var(--primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.principios-list li::before {
  content: "✓";
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.principios-list li:hover {
  transform: translateX(8px);
  box-shadow: 0 12px 40px rgba(46, 125, 50, 0.15);
}

.principios-list li strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.principios-list li {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
  padding-right: 3rem;
}

/* Protocolo Section - Timeline Visual */
.protocolo-section {
  margin-bottom: 5rem;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  padding: 4rem 3rem;
  border-radius: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.protocolo-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.protocolo-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

.protocolo-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
}

.protocolo-steps::before {
  content: "";
  position: absolute;
  top: 60px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  z-index: 0;
}

.step-proto {
  background: white;
  padding: 2rem;
  border-radius: 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.step-proto:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(46, 125, 50, 0.2);
}

.step-proto .numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 50%;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
  transition: all 0.4s ease;
}

.step-proto:hover .numero {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 12px 35px rgba(46, 125, 50, 0.4);
}

.step-proto h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.step-proto p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin: 0;
}

/* Recursos Section */
.recursos-section {
  margin-bottom: 5rem;
}

.recursos-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.recursos-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

.recursos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.recurso-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  padding: 2rem;
  border-radius: 1.25rem;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  border-left: 5px solid var(--primary);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: block;
  position: relative;
  overflow: hidden;
}

.recurso-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.recurso-item:hover::before {
  transform: scaleY(1);
}

.recurso-item:hover {
  transform: translateX(8px);
  box-shadow: 0 12px 40px rgba(46, 125, 50, 0.15);
}

.recurso-item h4 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.recurso-item p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin: 0;
}

/* Confidencialidad Banner - Destacado */
.confidencialidad-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 3rem;
  border-radius: 2rem;
  color: white;
  box-shadow: 0 15px 50px rgba(46, 125, 50, 0.3);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.confidencialidad-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.confidencialidad-banner h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  z-index: 1;
}

.confidencialidad-banner p {
  font-size: 1.125rem;
  line-height: 1.9;
  opacity: 0.95;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .poblacion-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .protocolo-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .protocolo-steps::before {
    display: none;
  }

  .principios-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-humano-linea {
    padding: 4rem 0 3rem;
  }

  .hero-humano-linea h1 {
    font-size: 2.5rem;
  }

  .hero-humano-linea p {
    font-size: 1.25rem;
  }

  .seccion-contenido {
    padding: 3rem 0;
  }

  .contenido-principal {
    padding: 0 1rem;
  }

  .humano-linea-container {
    padding: 2rem 1.5rem;
  }

  .contacto-destacado {
    padding: 3rem 2rem;
  }

  .telefono-grande .numero {
    font-size: 2rem;
  }

  .otros-contactos {
    flex-direction: column;
    gap: 1rem;
  }

  .servicios-section h2,
  .poblacion-section h2,
  .principios-section h2,
  .protocolo-section h2,
  .recursos-section h2 {
    font-size: 2rem;
  }

  .servicios-grid,
  .recursos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .poblacion-grid {
    grid-template-columns: 1fr;
  }

  .protocolo-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .poblacion-section,
  .protocolo-section {
    padding: 3rem 2rem;
  }
}

@media (max-width: 480px) {
  .hero-humano-linea h1 {
    font-size: 2rem;
  }

  .humano-linea-container {
    padding: 1.5rem 1rem;
  }

  .contacto-destacado {
    padding: 2.5rem 1.5rem;
  }

  .telefono-grande {
    padding: 2rem 1.5rem;
  }

  .telefono-grande .numero {
    font-size: 1.75rem;
  }

  .servicios-section h2,
  .poblacion-section h2,
  .principios-section h2,
  .protocolo-section h2,
  .recursos-section h2 {
    font-size: 1.75rem;
  }

  .servicio-item,
  .poblacion-item,
  .principios-list li,
  .recurso-item {
    padding: 1.5rem;
  }

  .step-proto {
    padding: 1.5rem;
  }

  .step-proto .numero {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .protocolo-steps {
    grid-template-columns: 1fr;
  }
}

/* Optimización para pantallas grandes */
@media (min-width: 1600px) {
  .servicios-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .servicio-item {
    padding: 3rem;
  }

  .poblacion-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Asegurar que el hero content tenga el container correcto */
.hero-humano-linea .hero-content.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Override inline styles para SVG */
.telefono-grande svg[width],
.telefono-grande svg[height] {
  width: 64px !important;
  height: 64px !important;
}

.servicio-item svg[width],
.servicio-item svg[height] {
  width: 56px !important;
  height: 56px !important;
}

/* Efectos adicionales para mejor UX */
.recurso-item:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.servicio-item:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Mejora visual para el número de teléfono */
.telefono-grande .numero {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}
