:root {
    --primary: #ab1144;
    --dark: #ab1144;
    --white: #ffffff;
    --gray: #f4f4f4;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; line-height: 1.6; color: #333; padding-top: 80px; overflow-x: hidden; }

/* Header */
.main-header {
    position: fixed; top: 0; width: 100%; height: 80px;
    background: var(--dark); display: flex;
    justify-content: space-between; align-items: center;
    padding: 0 5%; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.logo a { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.logo img { height: 55px; width: auto; }
.logo-texto { color: var(--white); display: flex; flex-direction: column; }
.nombre { font-size: 1.2rem; font-weight: 600; }
.subtitulo { font-size: 0.65rem; opacity: 0.8; }

/* Navegación Desktop */
nav ul { display: flex; list-style: none; gap: 20px; }
nav a { color: var(--white); text-decoration: none; font-weight: 400; transition: var(--transition); }
nav a:hover { color: rgb(51, 205, 202); }

/* Menú Burger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

/* Slider y Secciones */
.hero-slider {
    height: 60vh; width: 100%; background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; position: relative;
    transition: background-image 1s ease-in-out;
}
.hero-slider::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.hero-content { position: relative; color: var(--white); text-align: center; z-index: 10; padding: 0 20px; }
.hero-content h1 { font-size: clamp(1.8rem, 5vw, 3rem); }

.section { padding: 60px 5%; text-align: center; }
.cards-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; background: var(--primary); padding: 30px; border-radius: 15px;
}
.value-card { background: var(--white); border-radius: 10px; overflow: hidden; padding-bottom: 20px; transition: 0.3s; }
.value-card:hover { transform: translateY(-5px); }
.img-zoom-cont { height: 200px; overflow: hidden; }
.img-zoom-cont img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); cursor: zoom-in; }
.img-zoom-cont:hover img { transform: scale(1.1); }

/*objetivos Metas */
.section-metas { background: var(--gray); padding: 60px 5%; }
.metas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.info-box { background: var(--white); padding: 30px; border-radius: 12px; border-top: 6px solid var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.icon-main { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }
.progress-bar { background: #ddd; height: 12px; border-radius: 10px; margin: 5px 0 15px; overflow: hidden; }
.progress { background: var(--primary); height: 100%; color: white; font-size: 10px; line-height: 12px; text-align: right; padding-right: 5px; }

/*mision Vision */
.section-mision { background: var(--gray); padding: 60px 5%; }
.metas-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.info-box3 { background: var(--white); padding: 30px; border-radius: 12px; border-top: 6px solid var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.icon-main3 { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }
.progress-bar3 { background: #ddd; height: 12px; border-radius: 10px; margin: 5px 0 15px; overflow: hidden; }
.progress3 { background: var(--primary); height: 100%; color: white; font-size: 10px; line-height: 12px; text-align: right; padding-right: 5px; }

/* nuestros colaboradores */
.section-colaboradores { background: var(--gray); padding: 60px 5%; }
.colaboradores-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.info-box1 { background: var(--white); padding: 30px; border-radius: 12px; border-top: 6px solid var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.icon-main1 { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }
.progress-bar1 { background: #ddd; height: 12px; border-radius: 10px; margin: 10px 0 20px; overflow: hidden; }
.progress1 { background: var(--primary); height: 100%; color: var(--white); font-size: 9px; text-align: right; padding-right: 5px; }

/* bienvenida Asociacion rikchariy */
.section-rikchariy { background: var(--gray); padding: 60px 5%; }
.rikchariy-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.info-box2 { background: var(--white); padding: 30px; border-radius: 12px; border-top: 6px solid var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.icon-main2 { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }
.progress-bar2 { background: #ddd; height: 12px; border-radius: 10px; margin: 10px 0 20px; overflow: hidden; }
.progress2 { background: var(--primary); height: 100%; color: var(--white); font-size: 9px; text-align: right; padding-right: 5px; }

/* Footer */
.main-footer { background: var(--dark); color: white; padding: 50px 5% 20px; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-box h4 { color: black; margin-bottom: 20px; border-left: 3px solid var(--primary); padding-left: 10px; }
.footer-box p { margin-bottom: 10px; font-size: 0.9rem; }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 2000; justify-content: center; align-items: center; }
.lightbox img { max-width: 90%; max-height: 80%; }
.close-lb { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; cursor: pointer; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    nav {
        position: fixed; top: 80px; right: -100%; width: 250px; height: 100vh;
        background: var(--dark); transition: 0.4s ease; padding-top: 40px;
    }
    nav.active { right: 0; }
    nav ul { flex-direction: column; align-items: center; }
}

/* Contenedor principal del proyecto */

.proyecto-card {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
/* Responsivo: imagen arriba en móviles */

@media (max-width: 768px) {
    .proyecto-card {
        flex-direction: column;
    }
}
.proyecto-imagen {
    flex: 1; /* Ocupa el 50% aprox */
    max-width: 400px;
}
.proyecto-imagen img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
}
.proyecto-info {
    flex: 1.5;
}
/* Lógica del "Leer más" */
.contenido-extra {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    margin-bottom: 10px;
}
.contenido-extra.abierto {
    max-height: 1000px; /* Un valor alto para que quepa el texto */
}
.btn-leer-mas {
    background: #007bff; /* Cambia al color de tu marca */
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;

}/*fin de contenido extra*/
.btn-leer-mas:hover {
    background: #0056b3; /* Un tono más oscuro para el hover */
}   

/* CSS FOOTER Y WHATSAPP */
footer { background: #222; color: #eee; padding: 50px 5% 20px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; max-width: 1200px; margin: 0 auto; }
.footer-copy { text-align: center; margin-top: 40px; border-top: 1px solid #444; padding-top: 20px; font-size: 0.8rem; }

.btn-whatsapp {
    position: fixed; bottom: 25px; right: 25px; background: #25D366;
    color: white; width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; text-decoration: none; z-index: 2000;
}
.blink { animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }