@charset "utf-8";
/* ===========================
   Estilos generales
=========================== */
body {
    font-family: Montserrat, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    text-align: center;
    margin: 0.5rem 0;
    font-family: Montserrat, sans-serif;
}

.row {
    max-width: 2000px;
    align-content: center;
    padding: 20px;
}

/* ===========================
   Banner
=========================== */
.banner-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: auto;
}

.imagen {
    display: block;
    width: 70%;
    margin: 0 auto;
}

.visibleMobile {
    display: block;
    width: 100%;
    margin: 0 auto;
}

.visibleDesktop {
    display: none;
}

.visibleMobile {
    display: block;
}

@media (min-width: 520px) {
    .visibleDesktop {
        display: block;
    }
    .visibleMobile {
        display: none;
    }
}

/* ===========================
   Tarjetas
=========================== */
.card {
    background-color: #f0f0f0;
    border-radius: 20px;
    padding: 20px;
    border: 0px;
    text-align: center;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 15px auto 0 auto;
    border-radius: 10px;
}

.card .mt-3 {
    text-align: center;
}

.nombre {
    color:#3f6b1c;
    font-weight:700;
    font-size: 1.1rem;
    margin-bottom:10px;
}

.btn-colsubsidio {
    display: block;
    margin: 10px auto 0 auto;
    padding: 6px 12px;
    border-radius: 25px;
    background-color: #80B918;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.contenedor {
    display: flex;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* center photos inside the card image container (second child) */
.card > div:nth-child(2) {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card > div:nth-child(2) img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px !important;
}

/* ===========================
   Botones
=========================== */
.btn-secondary {
    background-color: #333333;
    border-radius: 50px;
}

.btn-light {
    background-color: #E85521;
    border-radius: 50px;
    border-color: white;
    color: white;
}

button:hover, .btn-colsubsidio:hover {
    opacity: 0.85;
}

/* ===========================
   Carrusel planchas
=========================== */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    background: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 36px;
    height: 36px;
    filter: invert(45%) sepia(1) saturate(6) hue-rotate(60deg);
}

/* ===========================
   Paginacion planchas
=========================== */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.btn-plancha {
    background: white;
    border: 2px solid #80B918;
    color: #3b5a02;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 22px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.btn-plancha:hover {
    background: #80B918;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128,185,24,0.35);
    opacity: 1;
}

.btn-plancha.activo {
    background: #3b5a02;
    border-color: #3b5a02;
    color: white;
    box-shadow: 0 4px 12px rgba(59,90,2,0.3);
}

.plancha-seccion {
    display: none;
    animation: fadeIn 0.4s ease;
}

.plancha-seccion.visible {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   Modal PDF
=========================== */
.pdf-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    animation: fadeIn 0.25s ease;
}

.pdf-modal-overlay.activo {
    display: flex;
}

.pdf-modal-box {
    background: white;
    border-radius: 16px;
    width: 92vw;
    max-width: 960px;
    height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: linear-gradient(135deg, #3b5a02, #80B918);
    color: white;
    flex-shrink: 0;
}

.pdf-modal-titulo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.pdf-modal-icono {
    font-size: 1.3rem;
}

.pdf-modal-acciones {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-btn-descargar {
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
    background: rgba(255,255,255,0.2);
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 50px;
    padding: 5px 14px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.pdf-btn-descargar:hover {
    background: rgba(255,255,255,0.35);
    color: white;
}

.pdf-btn-cerrar {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-btn-cerrar:hover {
    background: rgba(255,255,255,0.35);
    opacity: 1;
}

.pdf-modal-body {
    flex: 1;
    overflow: hidden;
}

.pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ===========================
   Seccion Info (index)
=========================== */
.seccion-info {
    padding: 20px 20px 65px;
    background: #f0f0f0;
}
.seccion-info-inner {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}
.seccion-titulo {
    font-family: Montserrat, sans-serif;
    color: #2a2a2a;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 50px;
    line-height: 1.6;
}
.seccion-titulo span {
    color: #80B918;
}
.info-cards {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    flex-wrap: wrap;
}
.info-card-link {
    text-decoration: none;
    display: flex;
}
/* ===========================
   Aqui puedes cambiar el degradado de los botones de Candidatos Junta Directiva, y Acta de Escrutinios Vota aqui!  
=========================== */

.info-card {
    background: linear-gradient(145deg, #2a7000, #5ab800); /* ===========================
       Aqui puedes cambiar el degradado de los botones de Candidatos Junta Directiva, y Acta de Escrutinios Vota aqui!  
    =========================== */
    border-radius: 22px;
    padding: 48px 36px 36px;
    width: 320px;
    min-height: 420px;
    color: white;
    box-shadow: 0 8px 24px rgba(42,112,0,0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
.info-card:hover {
    transform: translateY(-9px) scale(1.03);
    box-shadow: 0 22px 48px rgba(42,112,0,0.45);
}
.info-card-icon {
    font-size: 9rem;
    display: block;
    margin-bottom: 18px;
    line-height: 1;
    height: 9rem;
}
.info-card-divider {
    border-color: rgba(255,255,255,0.4);
    margin: 0 0 16px;
}
.info-card-label {
    font-family: Montserrat, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 22px;
    color: white;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.info-card-btn {
    display: inline-block;
    border: none;
    border-radius: 50px;
    padding: 11px 32px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #2a7000;
    background: white;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: Montserrat, sans-serif;
    white-space: nowrap;
}
.info-card:hover .info-card-btn {
    background: #e8f5c8;
    color: #1d5000;
}

@media (max-width: 519px) {
    .seccion-info {
        padding: 16px 12px 40px;
    }
    .info-cards {
        gap: 10px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
    }
    .info-card-link {
        width: 44vw;
        max-width: 180px;
    }
    .info-card {
        width: 100%;
        min-height: unset;
        padding: 16px 10px 14px;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        border-radius: 16px;
        gap: 0;
    }
    .info-card:hover {
        transform: none;
    }
    .info-card-icon {
        font-size: 3rem;
        height: 3rem;
        margin-bottom: 10px;
    }
    .info-card-divider {
        display: none;
    }
    .info-card-label {
        font-size: 0.78rem;
        white-space: normal;
        margin-bottom: 10px;
        text-align: center;
        line-height: 1.3;
    }
    .info-card-btn {
        font-size: 0.72rem;
        padding: 6px 10px;
        white-space: normal;
        text-align: center;
    }
}

/* ===========================
   Footer
=========================== */
footer .row {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 60px;
    gap: 200px;
}
#footertext {
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 10px 0;
}

@media (max-width: 519px) {
    footer .row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 16px 20px;
    }
}

/* ===========================
   Formulario
=========================== */
.formulario-container {
    width: 80%;
    max-width: 100%;
    margin: 20px auto;
    background-color: #F6F6F6;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    text-align: justify;
}

input {
    padding: 8px;
    margin-bottom: 16px;
}

button {
    background-color: #80B918;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #004D28;
}

/* ===========================
   Misc
=========================== */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.info-box{
  border:1px solid #8c8c8c;
  border-radius:20px;
  padding:15px 18px;
  background:#f5f5f5;
}

.info-box p{
  margin-bottom:4px;
  font-size:15px;
}

.card-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #386B0F;
    margin-bottom: 8px;
}

.card-text {
    font-weight: 400;
    font-size: 1rem;
    color: #555555;
    line-height: 1.4;
}

/* ===========================
   Altura uniforme para tarjetas de candidatos
=========================== */
.card.shadow {
    min-height: 220px !important;
}

/* ===========================
   Tarjetas candidatos - Mobile
=========================== */
@media (max-width: 575px) {
    /* Reducir padding y gap de la tarjeta */
    .card.shadow {
        gap: 10px !important;
        padding: 10px !important;
        min-height: 140px !important;
    }

    /* Caja del número */
    .card.shadow > div:nth-child(1) {
        width: 46px !important;
        height: 56px !important;
        min-width: 46px !important;
        border-radius: 10px !important;
    }
    .card.shadow > div:nth-child(1) span {
        font-size: 1.5rem !important;
    }

    /* Contenedor de la foto */
    .card.shadow > div:nth-child(2) {
        width: 90px !important;
        height: 110px !important;
        min-width: 90px !important;
    }

    /* Contenido de texto */
    .card.shadow > div:nth-child(3) h6 {
        font-size: 0.82rem !important;
        margin-bottom: 4px !important;
    }
    .card.shadow > div:nth-child(3) p {
        font-size: 0.75rem !important;
        margin-bottom: 3px !important;
    }
    .card.shadow > div:nth-child(3) button {
        font-size: 0.72rem !important;
        padding: 6px 10px !important;
    }
}