/* ==========================================================================
   PORTAL WEB CDCE ESTADO SUCRE - ESTILOS ENTES ADSCRITOS
   ========================================================================== */

.entes-main-content {
  background-color: var(--gris-fondo, #f8fafc);
  padding-bottom: 80px;
  min-height: calc(100vh - 180px);
}

/* --- HERO BANNER SUPERIOR --- */
.entes-hero {
  position: relative;
  background: linear-gradient(135deg, #0c2340 0%, #004a99 100%);
  padding: 80px 20px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 50px;
  box-shadow: 0 4px 20px rgba(12, 35, 64, 0.15);
}

.entes-hero .hero-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #ef4444; /* Acento rojo */
  margin-bottom: 12px;
}

.entes-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.entes-hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  margin: 0 auto;
}

/* --- CONTENEDOR Y GRILLA DE TARJETAS --- */
.entes-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.entes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.ente-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 28px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Línea decorativa superior al hacer hover */
.ente-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #004a99 0%, #db232e 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ente-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(12, 35, 64, 0.12);
  border-color: #cbd5e1;
}

.ente-card:hover::before {
  opacity: 1;
}

/* Cabecera de la Tarjeta (Logo + Badge) */
.ente-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.ente-logo {
  width: 65px;
  height: 65px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.ente-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ente-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #004a99;
  background: rgba(0, 74, 153, 0.08);
  padding: 6px 12px;
  border-radius: 20px;
}

/* Cuerpo de la Tarjeta */
.ente-body h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0c2340;
  margin-bottom: 4px;
}

.ente-fullname {
  font-size: 0.85rem;
  font-weight: 600;
  color: #db232e;
  margin-bottom: 14px;
}

.ente-description {
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* Adaptatividad Móvil */
@media (max-width: 768px) {
  .entes-hero { padding: 50px 16px; }
  .entes-grid { grid-template-columns: 1fr; }
}

/* Ajuste corporativo de la vista institucional */
.entes-main-content { padding-bottom: 64px; }
.entes-hero {
  padding: clamp(54px, 8vw, 82px) 20px;
  margin-bottom: 38px;
  background: linear-gradient(135deg, #0b2f55 0%, #07539a 100%);
  box-shadow: 0 8px 22px rgba(12, 35, 64, .12);
}
.entes-hero h1 { font-size: clamp(2rem, 4vw, 2.85rem); }
.entes-hero p { max-width: 680px; font-size: 1rem; }
.hero-subtitle { color: #ffb3b8; font-size: .75rem; letter-spacing: .18em; }
.entes-container { max-width: 1200px; }
.entes-grid { gap: 22px; }
.ente-card {
  border-radius: 9px;
  padding: 24px;
  box-shadow: 0 3px 12px rgba(12, 35, 64, .06);
}
.ente-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(12, 35, 64, .11); }
.ente-logo { width: 60px; height: 60px; border-radius: 8px; }
.ente-category { border-radius: 5px; padding: 5px 9px; font-size: .68rem; }
.ente-body h3 { font-size: 1.2rem; }
.ente-fullname { font-size: .8rem; }
.ente-description { font-size: .9rem; line-height: 1.65; }
.ente-btn-more { border-radius: 5px; background: #07539a; box-shadow: none; }
.ente-btn-more:hover { background: #0b2f55; box-shadow: 0 5px 14px rgba(7, 83, 154, .2); }
/* ============================================
   BOTÓN "LEER MÁS" - ENTES ADSCRITOS
   ============================================ */

.ente-btn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.65rem 1.35rem;
    background: linear-gradient(135deg, #0a4d8c 0%, #0d6efd 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(10, 77, 140, 0.15);
    position: relative;
    overflow: hidden;
}

.ente-btn-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.ente-btn-more:hover::before {
    left: 100%;
}

.ente-btn-more:hover {
    background: linear-gradient(135deg, #083d70 0%, #0b5ed7 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 77, 140, 0.3);
}

.ente-btn-more:hover svg {
    transform: translateX(4px);
}

.ente-btn-more:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(10, 77, 140, 0.2);
}

.ente-btn-more:focus-visible {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
}

.ente-btn-more svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.ente-btn-more span {
    white-space: nowrap;
}

/* Ajuste responsivo para móviles */
@media (max-width: 576px) {
    .ente-btn-more {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
}

/* Ajuste para asegurar que el botón quede bien posicionado 
   si la tarjeta tiene altura variable por contenido */
.ente-body {
    display: flex;
    flex-direction: column;
}

.ente-description {
    flex-grow: 1;
}