/* Estilo base del header */
.encabezado-publico {
  position: relative;
  text-align: center;
  padding-top: 60px; 
  animation: fadeInHeader 1.2s ease-in-out;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: background-image 0.5s ease; 
  color: white;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

/* Capa de superposición general */
.encabezado-publico::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ❌ ELIMINAR CUALQUIER FONDO SÓLIDO EN MODO COMBINADO */
.encabezado-publico.combinado::after {
  background: none; 
}

/* Título - Tamaño consistente con otras secciones */
.titulo-encabezado {
  z-index: 2;
  padding: 10px 20px;
  border-radius: 5px;
  color: white !important;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
  font-size: 3.2rem !important;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Subtítulo - Tamaño consistente */
.subtitulo-encabezado {
  z-index: 2;
  color: white !important;
  font-size: 1.6rem !important;
  text-align: center;
  max-width: 80%;
  margin-top: 1rem;
  line-height: 1.6;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

/* Línea decorativa - Color verde consistente */
.linea-encabezado {
  width: 200px;
  height: 4px;
  background: #31b8c2 !important;
  border-radius: 5px;
  margin-top: 20px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(49, 184, 194, 0.5);
}

/* Contenedor (para elevar el contenido) */
.encabezado-publico .container {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0 20px;
}

/* Títulos con degradado institucional */
.titulo-grad-asesoria {
  background: linear-gradient(90deg, #0d6271, #00a1b9) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  display: block !important;
  text-align: center !important;
}

/* Línea decorativa turquesa */
.titulo-linea-asesoria {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #0d6271, #00a1b9);
  border-radius: 2px;
  display: block;
  margin: 0 auto 1rem auto;
}

/* Título verde con degradado */
.titulo-verde {
  text-align: center;
  background: linear-gradient(90deg, #0d6271, #00a1b9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  display: block;
}

/* Efecto de realce en la imagen */
.imagen-wrapper {
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
}

.imagen-wrapper img {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.imagen-wrapper:hover {
  transform: translateY(-5px);
}

.imagen-wrapper:hover img {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Texto mejorado */
.texto-descripcion {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  text-align: center;
}

/* Animación de entrada */
@keyframes fadeInHeader {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .encabezado-publico {
    min-height: 400px;
    padding-top: 40px;
  }

  .titulo-encabezado {
    font-size: 2.2rem !important;
  }

  .subtitulo-encabezado {
    font-size: 1.2rem !important;
    max-width: 90%;
  }

  .titulo-verde {
    font-size: 2.2rem;
  }

  .linea-encabezado {
    width: 150px;
    height: 3px;
  }

  .texto-descripcion {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .encabezado-publico {
    min-height: 350px;
  }

  .titulo-encabezado {
    font-size: 1.8rem !important;
    padding: 8px 15px;
  }

  .subtitulo-encabezado {
    font-size: 1rem !important;
    max-width: 95%;
  }

  .titulo-verde {
    font-size: 1.8rem;
  }

  .linea-encabezado {
    width: 120px;
    height: 3px;
    margin-top: 15px;
  }

  .texto-descripcion {
    font-size: 0.95rem;
  }
}






.gestion {
    display: flex;
    align-items: center; /* Alinea los elementos verticalmente */
    justify-content: space-between; /* Distribuye el texto e imagen en los extremos */
    flex-direction: row-reverse; /* Invierte el orden para que el texto quede a la derecha */
    width: 90%;
    margin: 30px auto;
}

.gestion p {
    font-size: 20px;
    text-align: justify;
    padding: 10px;
}

.g-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

.g-img img {
    width: 500px;
    height: 250px;
    border-radius: 10px; /* Opcional para bordes redondeados */
}


.titulo-g {
    font-size: 32px;
    color: #095f5f;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.gestion-i p {
    font-size: 20px;
    text-align: justify;
}

.gestion-i img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 10px;
}


.gestion-texto {
    font-size: 20px;
    text-align: justify;
    line-height: 1.8;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Proporción de 16:9 */
    height: 0;
}

.video-container iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}



/* ========================================
   SECCIÓN PROPUESTA INSTITUCIONAL - NUEVA
   ======================================== */

/* Overlay oscuro para mejorar legibilidad */
.overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.propuesta-hero {
  position: relative;
  overflow: hidden;
}

.min-vh-50 {
  min-height: 50vh;
}

/* Estilos del contenido */
.contenido-propuesta {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.titulo-propuesta {
  color: #ffffff;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out;
}

.subtitulo-propuesta {
  color: #f0f0f0;
  font-size: 1.3rem;
  line-height: 1.6;
  animation: fadeInUp 1s ease-out;
}

/* Botón estilo admin - color teal profesional */
.btn-propuesta {
  background: linear-gradient(135deg, #0d7377 0%, #0a9396 100%);
  border: none;
  color: white;
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  animation: fadeInUp 1.2s ease-out;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(13, 115, 119, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-propuesta:hover {
  background: linear-gradient(135deg, #095f5f 0%, #0d7377 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(13, 115, 119, 0.5);
  color: white;
}

.btn-propuesta:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(13, 115, 119, 0.4);
}


/* Imagen con efecto */
.imagen-propuesta-wrapper {
  animation: fadeInRight 1s ease-out;
}

.imagen-propuesta-wrapper img {
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.imagen-propuesta-wrapper:hover img {
  transform: scale(1.05);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Sección vacía */
.propuesta-vacia {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 400px;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive - Propuesta */
@media (max-width: 992px) {
  .titulo-propuesta {
    font-size: 2.2rem;
    text-align: center;
  }
  
  .subtitulo-propuesta {
    font-size: 1.1rem;
    text-align: center;
  }
  
  .contenido-propuesta {
    text-align: center;
  }
  
  .btn-propuesta {
    width: 100%;
    max-width: 350px;
  }
}


@media (max-width: 576px) {
  .titulo-propuesta {
    font-size: 1.8rem;
  }
  
  .subtitulo-propuesta {
    font-size: 1rem;
  }
  
  .btn-propuesta {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

/* ========================================
   ESTILOS ANTIGUOS - COMENTADOS
   (Eliminar después de verificar)
   ======================================== */

/*
.propuesta-institucional {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: background 0.5s ease;
  padding-top: 60px;
  padding-bottom: 80px;
  margin-bottom: 60px;
  color: #fff;
  position: relative;
}

.propuesta-institucional h2,
.propuesta-institucional p {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.propuesta-institucional .btn {
  font-weight: bold;
  padding: 10px 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  background-color: #095f5f;
  color: #fff;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: aparecer 0.6s ease forwards;
  animation-delay: 0.3s;
}

.propuesta-institucional .btn:hover {
  background-color: #008b8b;
  transform: translateY(0);
}

@keyframes aparecer {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .propuesta-institucional {
    padding-top: 40px;
    padding-bottom: 60px;
    margin-bottom: 40px;
  }
  .propuesta-institucional h2 {
    font-size: 1.8rem;
  }
  .propuesta-institucional p {
    font-size: 1rem;
  }
  .propuesta-institucional .btn {
    font-size: 16px;
    padding: 8px 16px;
  }
}
*/




@keyframes movimiento{
    from{
        background-position: bottom left;
    }to{
        background-position: top right;
    }
}

/* Animación emocional suave */
@keyframes fadeInHeader {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}




/* ========================================
   SEPARACIÓN PROPUESTA - FOOTER (OPCIÓN 5)
   ======================================== */

/* Separación entre propuesta y footer */
.propuesta-hero,
.propuesta-vacia {
  margin-bottom: 0;
  padding-bottom: 80px;
}

/* Línea divisoria sutil */
.section-divider {
  height: 80px;
  background: linear-gradient(to bottom, 
    transparent 0%,
    rgba(13, 115, 119, 0.1) 50%,
    transparent 100%
  );
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #0d7377, #14ffec);
  border-radius: 3px;
}

/* ❌ ELIMINAR ESTA PARTE si no quieres modificar el footer
footer {
  padding-top: 60px;
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}
*/

/* Responsive */
@media (max-width: 768px) {
  .propuesta-hero,
  .propuesta-vacia {
    padding-bottom: 60px;
  }
  
  .section-divider {
    height: 60px;
  }
  
  .section-divider::before {
    width: 40px;
    height: 2px;
  }
}