/* ============================================================
   SINDICATO AZA — pages.css
   Estilos especificos por pagina y seccion
   Desarrollado por GoGoDevS
============================================================ */

/* ============================================================
   HERO — gradiente institucional azul → verde diagonal
============================================================ */
.hero-section {
    position: relative;
    background:
        radial-gradient(ellipse at top right, rgba(200, 230, 201, 0.20), transparent 35%),
        linear-gradient(135deg, var(--aza-azul) 0%, var(--aza-verde) 100%);
    color: #ffffff;
}

.hero-container { max-width: 1380px; }

.hero-shell {
    position: relative;
    padding: 4rem 0 3rem;
    min-height: 760px;
}

.hero-copy { max-width: 820px; }

.hero-title {
    color: #ffffff;
    max-width: 14ch;
    font-size: clamp(2.8rem, 5.4vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-wrap: pretty;
    font-family: var(--font-titulo);
    font-weight: 800;
}

/* ============================================================
   SECCION SUAVE
============================================================ */
.section-soft { background-color: var(--aza-gris-claro); }

/* ============================================================
   BREADCRUMB
============================================================ */
.breadcrumb { font-size: 0.85rem; }
.breadcrumb-item a { color: var(--aza-verde); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: var(--aza-gris-medio); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--aza-gris-medio); }

/* ============================================================
   HERO — BOTÓN OUTLINE LIGHT sobre fondo oscuro
============================================================ */
.hero-section .btn-outline-light {
    --bs-btn-color: #ffffff;
    --bs-btn-border-color: rgba(255,255,255,0.75);
    --bs-btn-hover-bg: rgba(255,255,255,0.15);
    --bs-btn-hover-border-color: #ffffff;
    --bs-btn-hover-color: #ffffff;
    font-family: var(--font-titulo);
    font-weight: 600;
}

/* ============================================================
   PAGINACIÓN — colores AZA
============================================================ */
.pagination .page-link {
    color: var(--aza-verde);
    border-color: var(--aza-border);
    border-radius: 0.5rem;
    margin: 0 2px;
}
.pagination .page-link:hover {
    background-color: var(--aza-verde-claro);
    border-color: var(--aza-verde);
    color: var(--aza-verde);
}
.pagination .page-item.active .page-link {
    background-color: var(--aza-verde);
    border-color: var(--aza-verde);
    color: #fff;
}

/* ============================================================
   PAGE HEADER
============================================================ */
.page-header {
    background-color: var(--aza-gris-claro);
    border-bottom: 1px solid var(--color-border);
}

.section-heading { margin-bottom: 1rem; }

/* ============================================================
   HERO — DESCRIPCION Y METRICAS
============================================================ */
.hero-description {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.12rem;
    line-height: 1.8;
    max-width: 58ch;
}

.hero-metrics { max-width: 620px; }
.hero-actions  { margin-top: 0.5rem; }

/* ============================================================
   HERO TRANSITION — linea verde
============================================================ */
.hero-transition {
    position: relative;
    background: linear-gradient(180deg, rgba(21, 101, 192, 0.06) 0%, var(--aza-gris-claro) 75%);
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
}

.hero-transition-container { max-width: 1380px; }

.hero-transition-line {
    width: min(100%, 1240px);
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(
        90deg,
        rgba(38, 50, 56, 0) 0%,
        rgba(46, 125, 50, 0.20) 20%,
        rgba(200, 230, 201, 0.65) 50%,
        rgba(46, 125, 50, 0.20) 80%,
        rgba(38, 50, 56, 0) 100%
    );
}

/* ============================================================
   LISTA DE DOCUMENTOS
============================================================ */
.document-list .list-group-item {
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
    border-color: var(--color-border);
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 6px 20px rgba(38, 50, 56, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.document-list .list-group-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(46, 125, 50, 0.10);
}

.filter-card .list-group-item.active {
    background-color: var(--aza-verde);
    border-color: var(--aza-verde);
}

/* ============================================================
   RICHTEXT
============================================================ */
.richtext-content p:last-child,
.richtext-preview p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   EMPTY STATE
============================================================ */
.empty-state {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(180deg, rgba(236, 239, 241, 0.9) 0%, #ffffff 100%);
}

/* ============================================================
   SECCIONES DE CONTENIDO
============================================================ */
.page-header .lead,
.hero-section .lead { max-width: 62ch; }

.content-section .content-card,
.content-section .document-list .list-group-item {
    background-color: #ffffff;
}

.content-section {
    position: relative;
    padding-top: 6.5rem !important;
    padding-bottom: 6.5rem !important;
}

/* ============================================================
   LISTA PREMIUM
============================================================ */
.premium-list .list-group-item strong {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    font-family: var(--font-titulo);
    font-weight: 700;
}

.premium-list .list-group-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(46, 125, 50, 0.08);
}

/* ============================================================
   FORMULARIOS
============================================================ */
.form-card .form-control,
.form-card .form-select {
    border-radius: 0.85rem;
    padding: 0.8rem 0.95rem;
    border-color: var(--color-border);
}

.form-card .form-control:focus,
.form-card .form-select:focus {
    border-color: var(--aza-verde);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.15);
}

/* ============================================================
   RESPONSIVE — tablet
============================================================ */
@media (max-width: 991.98px) {
    .hero-card,
    .info-card,
    .detail-card,
    .filter-card,
    .form-card,
    .contact-info-card,
    .empty-state,
    .highlight-banner {
        padding: 1.25rem;
    }

    .hero-title {
        max-width: none;
        font-size: clamp(2.4rem, 8vw, 3.6rem);
        line-height: 1.02;
    }

    .hero-shell {
        min-height: auto;
        padding: 2.8rem 0 1.8rem;
    }

    .content-section {
        padding-top: 5.2rem !important;
        padding-bottom: 5.2rem !important;
    }
}

/* ============================================================
   RESPONSIVE — mobile
============================================================ */
@media (max-width: 767.98px) {
    .content-card-image { height: 200px; }

    /* Navbar mobile */
    .site-header {
        height: auto;
    }

    .site-header .navbar {
        height: auto;
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }

    /* Logo mas compacto en mobile */
    .site-logo { height: 38px; max-width: 150px; }

    /* Brand mas compacto en mobile */
    .site-brand-text {
        font-size: 0.88rem;
        max-width: 14ch;
    }

    /* Dropdown elegante */
    .site-header .navbar-collapse {
        margin-top: 0.6rem;
        padding: 0.75rem 0.5rem;
        border: 1px solid rgba(46, 125, 50, 0.12);
        border-radius: 1rem;
        background-color: #ffffff;
        box-shadow: 0 12px 32px rgba(38, 50, 56, 0.10);
    }

    /* Links en mobile: mas separados y legibles */
    .site-header .nav-link {
        padding: 0.7rem 1rem !important;
        font-size: 0.9rem;
        border-radius: 0.5rem;
        margin-bottom: 0.1rem;
    }

    .site-header .nav-link:hover,
    .site-header .nav-link.active-link {
        background-color: rgba(46, 125, 50, 0.06);
    }

    .site-header .nav-link::after { display: none; }

    /* Boton Contactar en mobile: full width */
    .site-header .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
        padding: 0.65rem 1rem !important;
        border-radius: 0.75rem !important;
    }

    .hero-placeholder-card { min-height: 280px; }

    .hero-shell {
        padding: 1rem 0 0.25rem;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3rem);
        line-height: 1.06;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* Métricas: 3 columnas en una fila en mobile */
    .hero-metrics .col-4 { width: 33.333%; }

    .metric-card {
        text-align: center;
        padding: 0.75rem 0.5rem;
    }

    .metric-card strong {
        font-size: 1.4rem;
        margin-bottom: 0.15rem;
    }

    .metric-card span { font-size: 0.62rem; }

    .hero-image { min-height: 260px; }

    .highlight-banner { padding: 1.5rem 1.35rem; }

    .content-section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    /* Botones hero: full width en mobile */
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* Tablas: scroll horizontal en mobile */
    .table-responsive-mobile {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Footer: 1 columna, centrado */
    .site-footer .col-lg-5,
    .site-footer .col-sm-6 {
        text-align: center;
    }

    /* Logo navbar en mobile más compacto */
    .navbar-logo-container img { height: 36px; }
    .logo-text-aza { font-size: 1.2rem; }
    .logo-text-sindicato { font-size: 0.6rem; }
}

/* ============================================================
   RESPONSIVE — extra pequeño (< 375px)
============================================================ */
@media (max-width: 374.98px) {
    .hero-title { font-size: 1.9rem; }
    .hero-actions .btn { font-size: 0.9rem; padding: 0.7rem 1rem; }
    .info-card { padding: 1.25rem 1rem; }
    .navbar-logo-container img { height: 30px; }
    .logo-text-aza { font-size: 1rem; }
}

/* ============================================================
   SECCIÓN QUIÉNES SOMOS
============================================================ */
.quienes-valor {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--aza-verde-claro);
    color: var(--aza-verde);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.quienes-stat-card {
    background: #ffffff;
    border: 1px solid var(--aza-border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(38, 50, 56, 0.05);
    transition: box-shadow var(--transition), transform var(--transition);
}

.quienes-stat-card:hover {
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.12);
    transform: translateY(-3px);
}

/* ============================================================
   SECCIÓN DIRECTIVA
============================================================ */
.directiva-card {
    background: #ffffff;
    border: 1px solid var(--aza-border);
    border-radius: var(--radius);
    padding: 2rem 1.25rem 1.5rem;
    box-shadow: 0 4px 16px rgba(38, 50, 56, 0.05);
    transition: box-shadow var(--transition), transform var(--transition);
}

.directiva-card:hover {
    box-shadow: 0 8px 28px rgba(46, 125, 50, 0.13);
    transform: translateY(-4px);
}

.directiva-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--aza-verde), var(--aza-azul));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: #ffffff;
    overflow: hidden;
}

.directiva-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.directiva-cargo {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--aza-verde);
    display: block;
}
