@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary-50: #fef1f8;
    --primary-500: #f53f98;
    --primary-600: #e51d74;
    --primary-700: #c70f5a;
    --primary: #a4104b;
    --gold-50: #ddcaab;
    --gold-200: #caa97a;
    --gold-400: #be9461;
    --accent: #F3A6C8;
    --neutral-dark: #1F2937;
    --neutral-light: #F8FAFC;
    --neutral-card: #ffffffdc;
    --warm: #fb6bb5;
    --text: #1F2A44;
    --border: #f8fafd;
    --border-radius: 12px;
    --shadow: 0 2px 10px #00000021;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Poppins';
    color: var(--neutral-dark);
    background: var(--white);
    background-image: url('img/background.svg');
    background-size: contain;
    background-position: unset;
    background-repeat: round;
    line-height: 1.6;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    backdrop-filter: blur(55px);
    filter: saturate(2);
    z-index: -1;
}

/* HEADER */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* CONTENEDOR */
.header-top {
    max-width: 1580px;
    margin: auto;
    padding: 0.8rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo img {
    height: 49px;
    object-fit: contain;
}

/* NAV */
.main-nav {
    display: flex;
    align-items: center;
    gap: 1.0rem;
}

.main-nav a,
.nav-more span {
    text-decoration: none;
    font-size: 0.99rem;
    font-weight: 500;
    color: #1F2A44;
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    padding: 10px 16px;
    box-sizing: border-box;
}

.main-nav a:hover {
    background-color: var(--primary-50);
    color: var(--primary-700);
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
    box-sizing: border-box;
}

/* MÁS */
.nav-more {
    color: #1F2A44;
}

/* DROPDOWN */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    text-decoration: none;
    font-size: 0.99rem;
    font-weight: 500;
    color: #1F2A44;
    position: relative;
    cursor: pointer;
    border-radius: 9px;
    padding: 10px 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle:hover {
    background-color: var(--primary-50);
    color: var(--primary-700);
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 122%;
    left: 0;
    background: white;
    min-width: 150px;
    border-radius: 0px 0px 9px 9px;
    border: 1px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
    border-top: none;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: #1F2A44;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-menu a:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-menu a:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.dropdown-menu a:hover {
    background-color: var(--primary-50);
    color: var(--primary-700);
    padding-left: 20px;
}

.footer-section {
    padding: 1.5rem;
    background: #c70f5913;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.footer-section:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.footer-section:hover h3::after {
    width: 100%;
}

.footer-section p {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#visitas {
    background: linear-gradient(to right, var(--primary-600), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Sección Hero */
.hero {
    padding: 8rem 2rem 6rem;
    color: var(--text);
    text-align: center;
    position: relative;
    overflow: hidden;
}


.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    background: linear-gradient(to right, var(--primary), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;

    animation: fadeInUp 1s ease 0.2s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Sección de Proyectos */
.projects-section {
    padding: 6rem 2rem;
}

.projects-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
}

.project-info {
    padding: 1.5rem;
}

.project-progress {
    height: 8px;
    background: rgba(190, 148, 97, 0.2);
    border-radius: 4px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--warm);
    width: 65%;
    transition: width 1s ease;
}

/* Sección de Indicadores */
.indicators-section {
    padding: 4rem 2rem;
    background: var(--white);
}

.indicators-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.indicator-card {
    text-align: center;
    padding: 2rem;
    background: var(--neutral-light);
    border-radius: var(--border-radius);
    border: 2px solid var(--primary);
    transition: var(--transition);
}

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

.indicator-number {
    font-size: 2.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Formulario de Participación */
.form-section {
    padding: 6rem 2rem;
    background: linear-gradient(var(--neutral-light), var(--white));
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 3px solid  var(--neutral-light);
    position: relative;
}


.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 3px solid var(--neutral-light);
    border-radius: 8px;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(114, 15, 54, 0.1);
    outline: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(114, 15, 54, 0.2);
}

footer {
    background: #ffffff;
    padding: 4rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--neutral-light);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    background: linear-gradient(to right, var(--primary-600), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: flex;
    text-decoration: none;
    color: #ffffff;
    font-size: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    nav {
        padding: 0.75rem 1.5rem;
    }

    .logo img {
        height: 50px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 70px);
        background: var(--primary);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 6rem 1.5rem 4rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .projects-section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .form-container {
        padding: 2rem;
    }
}

.responsive-logo {
    max-width: 150px;
    /* Tamaño máximo en desktop */
    width: 100%;
    /* Ancho relativo al contenedor */
    height: auto;
    /* Mantiene la proporción */
    display: block;
    /* Elimina espacio extra debajo de la imagen */
    margin: 0 auto;
    /* Centra la imagen horizontalmente */
    transition: transform 0.3s ease;
    /* Animación suave al hacer hover */
    padding: 10px;
    /* Espaciado interno */
}

/* Efecto hover opcional */
.responsive-logo:hover {
    transform: scale(1.05);
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .responsive-logo {
        max-width: 120px;
        /* Tamaño más pequeño en móviles */
        padding: 5px;
    }
}

/* Contenedor opcional para mejor control */
.logo-container {
    max-width: 200px;
    margin: 0 auto;
    padding: 15px;
}

/* Estilos para los acordeones */
.accordion-section {
    max-width: 1285px;
    margin: 2rem auto;
    padding: 3rem 2rem;
}

.accordion-title {
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--primary), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
    font-weight: bold;
}

.accordion {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px #00000031;
}

.accordion-header {
    background: linear-gradient(to right, var(--primary), var(--primary-700));
    color: var(--neutral-light);
    padding: 1.5rem;
    cursor: default;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.accordion-content {
    background: #ffffff6b;
    backdrop-filter: blur(10px);
    max-height: none;
    overflow: visible;

}

.accordion-content-inner {
    padding: 1.5rem;


}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.grid-btn {
    display: inline-block;
    font-size: 1rem;
    text-align: center;
    padding: 1.5rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(100px);
    color: var(--neutral-dark);
    border: 2px solid #f5f5f6;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 10px #00000021;
}

.grid-btn:hover {
    border: 2px solid var(--primary);
    color: var(--primary);
    transform: scale(1.03);
}

.modal-content .button-grid .grid-btn {
    background: var(--white);
    color: var(--neutral-dark);
    border: 2px solid var(--primary);
}

.modal-content .button-grid .grid-btn:hover {
    background: var(--neutral-light);
    color: var(--primary);
}

@media (max-width: 768px) {
    .button-grid {
        grid-template-columns: 1fr;
    }

    .grid-btn {
        padding: 1.2rem;
        font-size: 0.9rem;
    }

    .accordion-header {
        padding: 1.2rem;
        font-size: 1rem;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 13, 14, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow);
    text-align: center;
}

.modal-content h3 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Galería de SVG */
.gallery-section {
    padding: 4rem 2rem;

}

.gallery-container {
    max-width: 1380px;
    max-height: 900px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.342);
    backdrop-filter: blur(100px);
    border: 3px solid #f8fafd;
    border-radius: 10px;
}


.svg-gallery {
    display: flex;
    position: relative;
    height: 800px;
    border-radius: 10px;
    background: var(--white);
}


.svg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.svg-slide.active {
    opacity: 1;
}

.svg-slide svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.gallery-controls {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-bottom: 2rem;
}

.gallery-controls button {
    background: #fff;
    border: 2px solid #f8fafd;
    box-shadow: var(--shadow);
    border-radius: 10px;
    color: var(--text);
    padding: 0.9rem 3rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.gallery-controls button:hover {
    transform: scale(1.1);

}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 7rem;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--primary-700);
}

.dot.active {
    background: var(--primary-700);
    border-color: var(--primary-700);
    transform: scale(1.5);
}

@media (max-width: 768px) {
    .svg-gallery {
        height: 250px;
    }

    .gallery-title {
        font-size: 1.5rem;
    }
}

/* Sección Hero */
.hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Sección de Contacto */
.contact-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: #ffffff6b;
    border-radius: var(--border-radius);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    border: 3px solid var(--neutral-card);

}

.contact-card h2 {
    background: linear-gradient(to right, var(--primary), var(--primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-card p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.president-signature {
    margin-top: 2rem;
    font-style: italic;
    font-weight: bold;
    text-align: right;
}

.btn-primary {
    background: var(--primary-600);
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-top: 1rem;
}

.btn-primary:hover {
    background: var(--primary-500);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(114, 15, 54, 0.2);
}

/* Formulario */
.form-container {
    background: #ffffff6b;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Poppins', sans-serif;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(190, 148, 97, 0.3);
    border-radius: 8px;
    transition: var(--transition);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(114, 15, 54, 0.1);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Mensajes de formulario */
#mensaje-exito,
#mensaje-error {
    display: none;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
    align-items: center;
    justify-content: center;
}

#mensaje-exito {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#mensaje-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loader */
.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

