body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.social-bar {
    background-color: #ffffff;
    padding: 0.5rem 0;
}

.social-bar .container {
    display: flex;
    justify-content: flex-end;
}

.social-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

.social-logo {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

header {
    background-color: #fffbde;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-height: 70px;
    width: auto;
    
}

.logo-link {
    display: inline-block;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #191b11;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

nav ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

nav .dropdown {
    position: relative;
}

nav .dropdown > a, nav ul.menu > li > a {
    color: #191b11;
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem 1rem;
    display: block;
    transition: background-color 0.3s ease;
}

nav .dropdown > a:hover, nav ul.menu > li > a:hover {
    background-color: #e6e2c4;
}

nav .dropdown:hover .submenu {
    display: block;
}

nav .submenu {
    display: none;
    position: absolute;
    z-index: 1000;
    background-color: #059669;
    list-style: none;
    padding: 0;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

nav .submenu li a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: block;
}

nav .submenu li a:hover {
    background-color: #047857;
}

.section {
    display: none;
    padding: 4rem 0;
    background-color: #f9fafb;
}

.section.active {
    display: block;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e40af;
}

.section p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.section-image {
    display: block;
    max-width: 600px;
    width: 100%;
    margin: 2rem auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#inicio {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.carousel {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    width: 100%;
    height: 100%;
    flex: 0 0 100%;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-prev, .carousel-next {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: white;
}

.carousel-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.carousel-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.carousel-text p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    background-color: #1e40af;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

.btn.oficina-cabanillas { background-image: url('images/oficina_cabanillas.png'); background-size: cover; background-position: center; color: white; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); }
.btn.agencia-mañazo { background-image: url('images/agencia_mañazo.png'); background-size: cover; background-position: center; color: white; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); }
.btn.agencia-atuncolla { background-image: url('images/agencia_atuncolla.png'); background-size: cover; background-position: center; color: white; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); }
.btn.agencia-coata { background-image: url('images/agencia_coata.png'); background-size: cover; background-position: center; color: white; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); }
.btn.agencia-puno { background-image: url('images/agencia_puno.png'); background-size: cover; background-position: center; color: white; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); }
.btn.agencia-juliaca { background-image: url('images/agencia_juliaca.png'); background-size: cover; background-position: center; color: white; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); }
.btn.agencia-ayaviri { background-image: url('images/agencia_ayaviri.png'); background-size: cover; background-position: center; color: white; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); }
.btn.agencia-azangaro { background-image: url('images/agencia_azangaro.png'); background-size: cover; background-position: center; color: white; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); }
.btn.agencia-arequipa { background-image: url('images/agencia_arequipa.png'); background-size: cover; background-position: center; color: white; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); }
.btn.agencia-crucero { background-image: url('images/agencia_crucero.png'); background-size: cover; background-position: center; color: white; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); }

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.servicio-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-5px);
}

.servicio-card .servicio-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.servicio-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1e40af;
}

.servicio-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

#agencias {
    background-color: #e5e7eb;
}

.agencias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.agencia-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.agencia-card:hover {
    transform: translateY(-5px);
}

.agencia-card.principal {
    background-color: #f0fdf4;
    border: 2px solid #047857;
}

.agencia-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1e40af;
}

.agencia-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.pdf-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

.pdf-list li {
    margin-bottom: 1rem;
}

.pdf-link {
    display: block;
    padding: 1rem;
    background-color: white;
    border-radius: 5px;
    text-decoration: none;
    color: #1e40af;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.pdf-link:hover {
    background-color: #e6e2c4;
    transform: translateY(-2px);
}

.memorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.memoria-card {
    text-align: center;
}

.memoria-card a {
    text-decoration: none;
    color: #1e40af;
}

.memoria-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
}

.comunicados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.comunicado-card {
    text-align: center;
}

.comunicado-card a {
    text-decoration: none;
    color: #1e40af;
}

.comunicado-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    max-width: 500px;
    width: 70%;
    height: 70%;
    position: relative;
    text-align: center;
}

.modal-close, .comunicado-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.modal-content h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #1e40af;
}

.modal-content p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.modal-content .comunicado-image {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 1px;
    margin-bottom: 1rem;
}

.modal-content a {
    color: #1e40af;
    text-decoration: underline;
}

.modal-content a:hover {
    color: #2563eb;
}

footer {
    background-color: #fffbde;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    color: #000000;
}

.container2 {
    background-color: #000000;
    display: flex;
    padding: 1% 0% 1% 20%;

}

.container2 p {
    text-align: left;
    margin: 0;
    font-size: 0.9rem;
    padding: 2% 0% 0% 3%;
}

.footer-logo .logo {
    max-height: 80px;
}

.footer-links h3, .footer-contact h3, .footer-social h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
}

.footer-links ul li a:hover {
    text-decoration: underline;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-social .social-links {
    justify-content: left;
}

footer p {
    text-align: left;
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul.menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #047857;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 0;
    }

    nav ul.menu.active {
        display: flex;
    }

    nav .submenu {
        position: static;
        box-shadow: none;
        background-color: #059669;
    }

    #inicio {
        height: 400px;
    }

    .carousel-text h2 {
        font-size: 2rem;
    }

    .carousel-text p {
        font-size: 1.2rem;
    }

    .carousel-prev, .carousel-next {
        padding: 0.3rem;
        font-size: 1.2rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-image {
        max-width: 100%;
    }

    .memorias-grid, .comunicados-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        
    }

    .modal-content {
        padding: 1rem;
        width: 95%;
    }

    .modal-content .comunicado-image {
        max-height: 200px;
        
    }
}

/* ============================================= */
/* SECCIÓN HISTORIA: CUADRO + IMAGEN AL LADO */
/* ============================================= */

.historia-contenedor {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.historia-texto {
    flex: 1;
    min-width: 300px;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.historia-texto p {
    text-align: justify;
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
}

.historia-imagen {
    flex: 0 0 350px;
    max-width: 350px;
}

.historia-imagen img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 3px solid #047857;
    object-fit: cover;
    display: block;
}

/* En móviles: imagen arriba */
@media (max-width: 768px) {
    .historia-contenedor {
        flex-direction: column;
    }
    .historia-imagen {
        flex: none;
        max-width: 100%;
        order: -1;
        margin-bottom: 1.5rem;
    }
    .historia-texto {
        min-width: 100%;
    }
}

/* ============================================= */
/* MISIÓN Y VISIÓN: 2 COLUMNAS EN TARJETAS */
/* ============================================= */

.mision-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mision-card, .vision-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: transform 0.3s ease;
}

.mision-card:hover, .vision-card:hover {
    transform: translateY(-5px);
}

.mision-card h3, .vision-card h3 {
    color: #1e40af;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.mision-card p, .vision-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.card-image {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 12px;
    border: 3px solid #047857;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .mision-vision-grid {
        grid-template-columns: 1fr;
    }
    .card-image {
        max-width: 180px;
    }
}

/* ============================================= */
/* VALORES: TARJETAS A LA IZQUIERDA + IMAGEN DERECHA */
/* ============================================= */

.valores-contenedor {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.valor-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.valor-card h3 {
    color: #1e40af;
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.valor-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.6;
}

.valores-imagen img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border: 4px solid #047857;
    object-fit: cover;
    display: block;
}

/* Responsive: Móvil - Imagen arriba */
@media (max-width: 768px) {
    .valores-contenedor {
        flex-direction: column;
    }
    .valores-imagen {
        flex: none;
        max-width: 100%;
        order: -1;
        margin-bottom: 2rem;
    }
    .valores-lista {
        min-width: 100%;
    }
}

/* ============================================= */
/* VALORES: ACORDEÓN A LA IZQUIERDA + IMAGEN DERECHA */
/* ============================================= */

.valores-contenedor {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.valores-accordion {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.accordion-item {
    margin-bottom: 0.8rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
}

.accordion-header {
    width: 100%;
    padding: 1rem 1.3rem;
    background-color: #f0fdf4;
    border: none;
    text-align: left;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e40af;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #dcfce7;
}

.accordion-icon {
    font-size: 1.4rem;
    font-weight: bold;
    color: #047857;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 1.3rem;
    max-height: 0;
    overflow: hidden;
    background-color: #ffffff;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-item.active .accordion-content {
    padding: 1.3rem;
    max-height: 300px;
}

.accordion-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.7;
}

/* IMAGEN DERECHA (sin cambios) */
.valores-imagen {
    flex: 0 0 700px;
    max-width: 700px;
}

.valores-imagen img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border: 4px solid #047857;
    object-fit: cover;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .valores-contenedor {
        flex-direction: column;
    }
    .valores-imagen {
        flex: none;
        max-width: 100%;
        order: -1;
        margin-bottom: 2rem;
    }
    .valores-accordion {
        min-width: 100%;
    }
}

/* ============================================= */
/* ORGANIGRAMA: IMAGEN MÁS GRANDE Y CENTRADA */
/* ============================================= */

.organigrama-imagen {
    display: block;
    max-width: 2000px;     /* ← Ajusta este valor si quieres más o menos grande */
    width: 100%;
    margin: 2rem auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 4px solid #047857;
    object-fit: contain;
    background-color: #ffffff;
    padding: 1rem;
}

/* En móviles: ajusta tamaño */
@media (max-width: 768px) {
    .organigrama-imagen {
        max-width: 100%;
        padding: 0.5rem;
        border-width: 3px;
    }
}

/* ============================================= */
/* REGLAMENTOS: TARJETAS 2 COLUMNAS + ÍCONO + HOVER */
/* ============================================= */

.reglamentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.reglamento-card {
    background-color: #ffffff;
    padding: 1.8rem;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reglamento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.reglamento-card h3 {
    color: #1e40af;
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.reglamento-card p {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
    text-align: justify;
    flex-grow: 1;
}

.pdf-btn {
    background-color: #047857;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.pdf-btn:hover {
    background-color: #059669;
}

/* Responsive: 1 columna en móvil */
@media (max-width: 768px) {
    .reglamentos-grid {
        grid-template-columns: 1fr;
    }
    .reglamento-card {
        padding: 1.5rem;
    }
}

/* ============================================= */
/* SERVICIOS DESTACADOS EN PÁGINA PRINCIPAL */
/* ============================================= */

.servicios-destacados {
    padding: 3rem 0;
    background-color: #f9fafb;
}

.servicios-destacados .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.servicios-destacados h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #1e40af;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
    margin-top: 1rem;
}

.servicio-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 5px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.servicio-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.servicio-card h3 {
    font-size: 1.3rem;
    margin: 0 0 0.8rem 0;
    color: #1e40af;
    font-weight: 700;
}

.servicio-card p {
    font-size: 0.95rem;
    color: #374151;
    margin: 0 0 1.2rem 0;
    line-height: 1.6;
    flex-grow: 1;
}

.servicio-btn {
    background-color: #047857;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    margin-top: auto;
    text-decoration: none;
    display: inline-block;
}

.servicio-btn:hover {
    background-color: #059669;
}

/* COLORES POR SERVICIO */
.ahorro { border-top-color: #047857; }
.prestamo { border-top-color: #1e40af; }
.aporte { border-top-color: #ea580c; }
.prevision { border-top-color: #7c3aed; }

/* Responsive */
@media (max-width: 768px) {
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    .servicio-card {
        padding: 1.8rem;
    }
}

/*efecto hover del lodo de la coopac*/
.logo-link {
    display: block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

/* Asegurar que servicios destacados se muestren dentro de #inicio */
.servicios-destacados {
    display: block !important;
    padding: 40px 0;
    background: #f9f9f9;
}

.servicios-destacados .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* ============================================= */
/* AHORROS: 2 COLUMNAS + PESTAÑAS */
/* ============================================= */

/* 2 COLUMNAS: BENEFICIOS Y REQUISITOS */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 35px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #eee;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.info-title {
    color: #d32f2f;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
}

.info-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #d32f2f;
    border-radius: 2px;
}

/* PESTAÑAS */
.tabs-container {
    margin: 40px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.tabs {
    display: flex;
    background: #f0f0f0;
}

.tab-btn {
    flex: 1;
    padding: 16px;
    background: #f0f0f0;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: #d32f2f;
    transition: width 0.3s ease;
}

.tab-btn.active {
    background: white;
    color: #d32f2f;
}

.tab-btn.active::after {
    width: 100%;
}

.tab-btn:hover:not(.active) {
    background: #e0e0e0;
}

.tab-content {
    padding: 30px;
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.highlight-box {
    background: #fff8f8;
    border-left: 5px solid #10942d;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
}

.highlight-box p {
    margin: 8px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    .tabs {
        flex-direction: column;
    }
    .tab-btn {
        text-align: center;
    }
}

/* ============================================= */
/* PRÉSTAMOS - ACORDEÓN PLEGABLE (SOLO CSS) */
/* ============================================= */

.accordion-prestamos {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.accordion-item {
    border-bottom: 1px solid #eee;
    background: white;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-toggle {
    display: none;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #333;
    position: relative;
}

.accordion-header:hover {
    background: #e9ecef;
}

.icono-acordeon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.accordion-icon {
    margin-left: auto;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
    color: #11038d;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 20px;
    background: white;
}

.accordion-toggle:checked ~ .accordion-content {
    max-height: 300px;
    padding: 20px;
}

.accordion-toggle:checked ~ .accordion-header .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content p {
    margin: 0 0 15px;
    line-height: 1.7;
    color: #444;
    text-align: justify;
}

.accordion-content .btn-small {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.9rem;
    background: #11038d;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.accordion-content .btn-small:hover {
    background: #11038d;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .accordion-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px;
    }
    .accordion-header span:not(.accordion-icon) {
        order: -1;
    }
    .accordion-icon {
        margin-left: 0;
    }
}
/* ============================================= */
/* ASÓCIATE - RECUADRO + PESTAÑAS REQUISITOS */
/* ============================================= */

/* RECUADRO: QUIÉNES PUEDEN SER SOCIOS */
.recuadro-quienes {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 35px 0;
    border-left: 6px solid #11038d;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.recuadro-quienes h3 {
    color: #11038d;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    position: relative;
}

.recuadro-quienes h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #11038d;
    border-radius: 2px;
}

.recuadro-quienes p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.lista-check {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.lista-check li {
    background: white;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #444;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    padding-left: 35px;
}

.lista-check li::before {
    content: '✓';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #11038d;
    font-weight: bold;
    font-size: 1.1rem;
}

/* PESTAÑAS (REUTILIZA DE #AHORRO) */
.tabs-container {
    margin: 40px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.tabs {
    display: flex;
    background: #f0f0f0;
}

.tab-btn {
    flex: 1;
    padding: 16px;
    background: #f0f0f0;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: #11038d;
    transition: width 0.3s ease;
}

.tab-btn.active {
    background: white;
    color: #11038d;
}

.tab-btn.active::after {
    width: 100%;
}

.tab-btn:hover:not(.active) {
    background: #e0e0e0;
}

.tab-content {
    padding: 30px;
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* REQUISITOS GRID */
.requisitos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.requisito-item {
    background: #fff8f8;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    border-left: 5px solid #11038d;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.requisito-item:hover {
    transform: translateY(-5px);
}

.requisito-item strong {
    color: #11038d;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .recuadro-quienes {
        padding: 20px;
    }
    .lista-check {
        grid-template-columns: 1fr;
    }
    .tabs {
        flex-direction: column;
    }
    .requisitos-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================= */
/* APORTACIONES - RECUADROS + GRID (VERDE) */
/* ============================================= */

/* RECUADRO: ¿QUÉ ES UN APORTE? */
.recuadro-que-es {
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 35px 0;
    border-left: 6px solid #2e7d32;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.recuadro-que-es h3 {
    color: #2e7d32;
    margin-bottom: 20px;
    font-size: 1.5rem;
    position: relative;
}

.recuadro-que-es h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #2e7d32;
    border-radius: 2px;
}

.recuadro-que-es p {
    font-size: 1.05rem;
    color: #333;
    margin: 15px 0;
    line-height: 1.7;
}

.aporte-destacado {
    background: #2e7d32;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.small-text {
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
}

/* BENEFICIOS GRID */
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.beneficio-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 5px solid #2e7d32;
}

.beneficio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(46, 125, 50, 0.15);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: #e8f5e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    padding: 15px;
}

.card-icon img {
    width: 40px;
    height: 40px;
}

.beneficio-card h4 {
    color: #2e7d32;
    margin: 15px 0 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.beneficio-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* RECUADRO: ¿PARA QUÉ SIRVE? */
.recuadro-para-que {
    background: #f8fff8;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 5px solid #2e7d32;
    text-align: center;
}

.recuadro-para-que h3 {
    color: #2e7d32;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.recuadro-para-que p {
    color: #444;
    line-height: 1.7;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .beneficios-grid {
        grid-template-columns: 1fr;
    }
    .recuadro-que-es,
    .recuadro-para-que {
        padding: 20px;
    }
}

/* ============================================= */
/* DERECHOS Y OBLIGACIONES - 2 COLUMNAS (VERDE) */
/* ============================================= */

.derechos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.columna-derechos,
.columna-obligaciones {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.columna-header {
    padding: 20px;
    text-align: center;
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
}

.columna-header.derechos {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
}

.columna-header.obligaciones {
    background: linear-gradient(135deg, #1b5e20, #388e3c);
}

.columna-header h3 {
    margin: 0;
    position: relative;
}

.columna-header h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.lista-items {
    padding: 20px;
}

.item-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8fff8;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid #2e7d32;
    transition: all 0.3s ease;
}

.item-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.1);
}

.icono-item {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.item-card strong {
    color: #2e7d32;
    font-size: 1rem;
    display: block;
}

.item-card small {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* RESUMEN COMPROMISO */
.resumen-compromiso {
    background: linear-gradient(135deg, #e8f5e8 0%, #f8fff8 100%);
    padding: 25px;
    border-radius: 15px;
    margin: 40px 0;
    text-align: center;
    border: 2px dashed #2e7d32;
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .derechos-grid {
        grid-template-columns: 1fr;
    }
    .item-card {
        flex-direction: column;
        text-align: center;
    }
    .icono-item {
        margin: 0 auto;
    }
}
/* ÍCONOS FALTANTES (agregar al CSS anterior si no existen) */
.icono-item {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    filter: brightness(0) invert(1); /* Blanco sobre fondo verde */
}

/* ============================================= */
/* BENEFICIOS - GRID DE TARJETAS (VERDE) */
/* ============================================= */

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.beneficio-card {
    background: white;
    padding: 30px 25px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.4s ease;
    border-top: 6px solid #2e7d32;
    position: relative;
    overflow: hidden;
}

.beneficio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #2e7d32, #4caf50);
}

.beneficio-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(46, 125, 50, 0.2);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: #e8f5e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    padding: 18px;
    transition: all 0.3s ease;
}

.card-icon img {
    width: 45px;
    height: 45px;
    filter: brightness(0) saturate(100%) invert(34%) sepia(88%) saturate(747%) hue-rotate(76deg) brightness(92%) contrast(94%);
}

.beneficio-card:hover .card-icon {
    background: #2e7d32;
    transform: scale(1.1);
}

.beneficio-card:hover .card-icon img {
    filter: brightness(0) invert(1);
}

.beneficio-card h3 {
    color: #2e7d32;
    margin: 15px 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.beneficio-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .beneficios-grid {
        grid-template-columns: 1fr;
    }
    .beneficio-card {
        padding: 25px 20px;
    }
}

/* ============================================= */
/* TABLA DE SANCIONES SBS */
/* ============================================= */

.tabla-sanciones {
    margin: 30px 0;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.tabla-sanciones table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

.tabla-sanciones th {
    background: linear-gradient(135deg, #0f9225, #30eb84);
    color: white;
    padding: 16px 12px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

.tabla-sanciones td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.tabla-sanciones tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.tabla-sanciones tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.nota-tabla {
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    background: #fef3c7;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

/* Responsive */
@media (max-width: 768px) {
    .tabla-sanciones {
        margin: 20px 0;
    }
    .tabla-sanciones th,
    .tabla-sanciones td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
}