/* Estilos de Ayudas Economicas (publico + admin del modulo) */

.ayudas-economicas-section {
  min-height: 100vh;
  position: relative;
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 50px 0 3rem;
}

.ayudas-economicas-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.ayudas-contenedor-principal,
.ayudas-economicas-section .container {
  position: relative;
  z-index: 1;
}

.ayudas-main-card {
  background: rgba(237, 241, 244, 0.78);
  border: 1px solid rgba(188, 198, 204, 0.45);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.titulo-seccion {
  margin: 0;
  padding: 2.2rem 1.2rem 1.4rem;
}

.ayudas-titulo-externo {
  margin-bottom: 2.25rem !important;
  padding: 0;
}

.titulo-contenedor {
  background: transparent;
}

.icono-titulo {
  width: 82px;
  height: 82px;
  margin: 0 auto 0.75rem;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
}

.icono-imagen-personalizada {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.titulo-servicio {
  margin-bottom: 0.35rem;
  color: #121212;
}

.linea-separadora {
  width: 92px;
  border-top: 3px solid #73c8f4;
}

.contenido-principal-card {
  min-height: clamp(380px, 52vh, 640px);
}

.texto-card-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2rem 2rem 1.8rem;
}

.texto-servicio {
  flex: 1;
  min-height: 180px;
  line-height: 1.7;
  color: #20252a;
}

.contenido-html {
  font-size: 1.05rem;
}

.contenido-html p:last-child {
  margin-bottom: 0;
}

.boton-contenedor {
  margin-top: 1.35rem;
}

.boton-descarga {
  background: #73c8f4;
  border: 1px solid #73c8f4;
  color: #000000;
  border-radius: 999px;
  padding: 0.72rem 1.5rem;
  font-weight: 600;
}

.boton-descarga:hover,
.boton-descarga:focus {
  background: #5ebbe9;
  border-color: #5ebbe9;
  color: #000000;
}

.contenedor-imagen-servicio {
  height: 100%;
  min-height: 260px;
  background: transparent;
}

#imagenServicio {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.imagen-placeholder-publica,
.imagen-placeholder {
  width: 100%;
  min-height: 260px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: #4e5a66;
  background: rgba(255, 255, 255, 0.5);
  border: 2px dashed rgba(84, 115, 139, 0.35);
}

.section-background-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.fondo-hero-editable {
  background: rgba(0, 0, 0, 0.45);
  border: 1px dashed rgba(255, 255, 255, 0.45);
  padding: 12px 14px;
  border-radius: 14px;
  backdrop-filter: blur(4px);
}

.archivo-info {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
}

.archivo-actual,
.sin-archivo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.archivo-nombre {
  font-weight: 600;
  color: #24303a;
}

.editable-container[data-campo="texto"] .edit-overlay {
  position: static;
  opacity: 1;
  margin-bottom: 0.75rem;
  pointer-events: auto;
}

.edit-toolbar-rich {
  margin-bottom: 0;
}

.icono-option {
  text-align: center;
  padding: 0.9rem 0.75rem;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid #d9e3ea;
  background: #ffffff;
}

.icono-option:hover {
  border-color: #73c8f4;
  background: #f2f9fd;
}

.icono-option i {
  font-size: 1.5rem;
  color: #163f83;
  margin-bottom: 0.35rem;
}

.nombre-icono {
  font-size: 0.82rem;
  color: #4e5a66;
}

.cargando {
  opacity: 0.62;
  pointer-events: none;
}

@media (max-width: 991px) {
  .ayudas-main-card {
    border-radius: 16px;
  }

  .contenido-principal-card {
    min-height: auto;
  }

  .texto-card-content {
    padding: 1.4rem 1.2rem;
  }

  .contenedor-imagen-servicio {
    min-height: 300px;
  }
}
