* :root {
    --green: #007A73;
    --green-light: #009b93;
    --green-dark: #005c57;
    --blue: #0b3d91;
    --blue-light: #1a5fc8;
    --blue-dark: #072a6b;
    --accent: #007A73;
    --white: #ffffff;
    --off-white: #f4f6f8;
    --gray: #8a9ab0;
    --dark: #0a0f1e;
    --text: #1c2a3a;
    --dark-barra: #002B45;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1E2A3E;
    background-color: #ffffff;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
.logo-title,
.nav-link {
    font-family: 'Poppins', sans-serif;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* flex-wrap: wrap; */
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0B2F5E;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.65rem;
    display: block;
    color: #C0392B;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    color: #1E2A3E;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #C0392B;
}

.search-bar {
    display: flex;
    gap: 5px;
    margin-left: 15px;
}

.search-bar input {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 40px;
    font-family: inherit;
    font-size: 0.85rem;
    width: 150px;
}

.search-bar button {
    background: #0B2F5E;
    color: white;
    border: none;
    padding: 0 12px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* SLIDER */
.hero-slider-section {
    position: relative;
    height: 85vh;
    min-height: 550px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Alineación izquierda */
    text-align: left;
    /* Texto a la izquierda */
    height: 100%;
    color: white;
    padding: 0 20px;
    max-width: 550px;
    /* Ancho cómodo para lectura */
    margin-left: 8%;
    /* Separación del borde izquierdo */
    margin-right: auto;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.highlight {
    color: #E67E22;
}

.hero-buttons {
    margin: 20px 0;
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    /* Botones a la izquierda */
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #C0392B;
    color: white;
}

.btn-primary:hover {
    background: #a12f22;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: #0B2F5E;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: #C0392B;
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #C0392B;
    width: 30px;
    border-radius: 20px;
}

/* SECCIONES GENERALES */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: #F5F7FA;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #0B2F5E;
}

.divider {
    width: 70px;
    height: 4px;
    background: #C0392B;
    margin: 15px auto;
    border-radius: 4px;
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.objectives {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.objectives ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.objectives li i {
    color: #C0392B;
    margin-right: 10px;
}

/* DIRECTIVA */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.board-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.board-card:hover {
    transform: translateY(-8px);
}

.board-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.board-card h3 {
    margin: 20px 0 5px;
}

.position {
    color: #C0392B;
    font-weight: 600;
    margin-bottom: 15px;
}

.bio {
    padding: 0 15px 20px;
    font-size: 0.9rem;
}

/* NOTICIAS Y BLOG */
.news-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.date {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: block;
}

.read-more {
    color: #C0392B;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 12px;
}

/* AFILIACIÓN */
.afiliacion-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.benefits ul {
    list-style: none;
    margin: 20px 0 30px;
}

.benefits li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefits li i {
    color: #E67E22;
    width: 25px;
}

.download-area {
    margin-top: 30px;
}

.btn-download {
    display: inline-block;
    background: #0B2F5E;
    color: white;
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 15px;
    margin-bottom: 10px;
}

.btn-download i {
    margin-right: 8px;
}

.afiliacion-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
}

.form-message {
    margin-top: 15px;
    font-weight: 500;
}

/* CALENDARIO */
#calendar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.events-list {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
}

.event-item {
    border-left: 4px solid #C0392B;
    padding: 12px 20px;
    margin-bottom: 15px;
    background: #fafafa;
}

/* CONTACTO */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info i {
    width: 30px;
    color: #C0392B;
    margin-right: 12px;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    background: #0B2F5E;
    color: white;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #C0392B;
    transform: translateY(-3px);
}

/* FOOTER */
.footer {
    background: #0a1c2f;
    color: #bbb;
    padding-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    line-height: 2;
}

.footer-bottom {
    border-top: 1px solid #1e2f3f;
    text-align: center;
    padding: 20px 0;
}

/* WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 99;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 40px;
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .about-grid,
    .afiliacion-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .hero-slider-section {
        height: 70vh;
    }

    .hero-stats {
        padding: 10px 20px;
        gap: 20px;
        bottom: 15px;
    }

    .hero-stats div span {
        font-size: 1.2rem;
    }
}

/* ==================== SLIDER / CARRUSEL ==================== */
.hero-slider-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
}

.slide.active {
    opacity: linear-gradient(to ritgh, blue 50%, transparent 100%);
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    color: white;
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Botones del slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--rojo-sindical);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Indicadores (dots) */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--rojo-sindical);
    width: 30px;
    border-radius: 20px;
}

.dot:hover {
    background: white;
}

/* Stats flotantes sobre el slider */
.hero-slider-section .hero-stats {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    width: fit-content;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    gap: 50px;
    color: white;
}

.hero-slider-section .hero-stats div span {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
    color: var(--naranja-accion);
}

/* Responsive para slider */
@media (max-width: 768px) {
    .hero-slider-section {
        height: 70vh;
        min-height: 500px;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .hero-slider-section .hero-stats {
        bottom: 60px;
        padding: 10px 20px;
        gap: 20px;
    }

    .hero-slider-section .hero-stats div {
        font-size: 0.8rem;
    }

    .hero-slider-section .hero-stats div span {
        font-size: 1.2rem;
    }
}

/* ===== BARRA DE ESTADÍSTICAS ===== */
.stats-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    background: linear-gradient(135deg, #0B2F5E 0%, #1a4a7a 100%);
    padding: 40px 20px;
    margin: 0 auto;
    text-align: center;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 5;
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.stat {
    flex: 1;
    min-width: 120px;
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat-num {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    *
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-bar {
        gap: 30px;
        padding: 30px 15px;
    }

    .stat-num {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-bar .stat {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.stats-bar .stat:nth-child(1) {
    animation-delay: 0.1s;
}

.stats-bar .stat:nth-child(2) {
    animation-delay: 0.2s;
}

.stats-bar .stat:nth-child(3) {
    animation-delay: 0.3s;
}

.stats-bar .stat:nth-child(4) {
    animation-delay: 0.4s;
}