/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --navy: #21467d;
    --navy-dark: #16458f;
    --navy-light: #0c71c3;
    --gold: #f2a100;
    --gold-light: #ee9f40;
    --white: #ffffff;
    --gray-bg: #f5f5f5;
    --text-dark: #333333;
    --text-light: #666666;
    --font: 'Open Sans', Arial, sans-serif;
    --pink: #ef2166;
    --cyan: #0da7db;
    --purple: #ab2eb2;
    --orange: #f97c00;
    --teal: #00c3c6;
    --green: #0aaf68;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text-dark); line-height: 1.7; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--navy);
    color: var(--white);
    padding: 8px 40px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 25px;
}
.top-bar a { color: var(--white); }
.top-bar i { margin-right: 5px; }

/* ===== HEADER ===== */
.main-header {
    background: var(--white);
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo-area { display: flex; align-items: center; }
.logo-area img { height: 60px; }

/* ===== NAV ===== */
.main-nav { position: relative; }
.nav-toggle {
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font);
    letter-spacing: 0.5px;
}
.nav-toggle:hover { color: var(--navy); }
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 220px;
    z-index: 200;
    border-top: 3px solid var(--gold);
}
.nav-dropdown.open { display: block; }
.nav-dropdown a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    border-bottom: 1px solid #eee;
    transition: background 0.2s, color 0.2s;
}
.nav-dropdown a:first-child { color: var(--gold); }
.nav-dropdown a:hover { background: var(--navy); color: white; }
.nav-dropdown .sub-menu a { padding-left: 35px; font-size: 13px; }

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}
.slide.active { opacity: 1; }
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 18px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}
.slider-arrow:hover { background: rgba(0,0,0,0.6); }
.slider-arrow.prev { left: 0; }
.slider-arrow.next { right: 0; }
.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    border: 2px solid white;
    transition: background 0.3s;
}
.slider-dot.active { background: var(--gold); }

/* ===== PAGE BANNER (subpages) ===== */
.page-banner {
    position: relative;
    height: 300px;
    overflow: hidden;
}
.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(33,70,125,0.8));
    padding: 30px 40px;
}
.page-banner-overlay h1 {
    color: white;
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

/* ===== SECTIONS ===== */
.section { padding: 60px 40px; max-width: 1100px; margin: 0 auto; }
.section-full { padding: 60px 40px; }
.section-title {
    color: var(--navy);
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 25px;
}
.section-title.white { color: var(--white); }
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }

/* ===== ABOUT ===== */
.about-section {
    padding: 60px 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.about-section p {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.8;
}

/* ===== DIAGONAL DIVIDERS ===== */
.diagonal-navy {
    position: relative;
    height: 80px;
    overflow: hidden;
}
.diagonal-navy::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--navy);
    clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}
.diagonal-gold {
    position: relative;
    height: 60px;
    overflow: hidden;
}
.diagonal-gold::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--gold-light);
    clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}

/* ===== NAVY / GOLD SECTIONS ===== */
.navy-section {
    background: var(--navy);
    color: var(--white);
    padding: 50px 40px;
    text-align: center;
}
.gold-section {
    background: var(--gold-light);
    color: var(--white);
    padding: 50px 40px;
}

/* ===== RUEDA ROTARIA ===== */
.rueda-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin-top: 30px;
}
.rueda-item h4 {
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    border-left: 3px solid var(--navy);
    padding-left: 10px;
}
.rueda-item p { font-size: 13px; line-height: 1.6; color: var(--text-light); }
.rueda-center { display: flex; justify-content: center; }
.rueda-center img { max-width: 280px; }

/* ===== HERO IMAGE ===== */
.hero-image-section {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.hero-image-section h2 {
    font-size: 38px;
    font-weight: 300;
    line-height: 1.4;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.4);
}
.hero-image-section h2 strong {
    font-size: 48px;
    font-weight: 700;
    display: block;
}

/* ===== AREAS GRID ===== */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 30px auto 0;
}
.area-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: start;
    padding: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.area-card img { width: 100%; border-radius: 6px; border: 1px solid #eee; }
.area-card h3 {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.area-card p { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.area-paz h3 { color: var(--navy-light); }
.area-salud h3 { color: var(--pink); }
.area-agua h3 { color: var(--cyan); }
.area-materno h3 { color: var(--purple); }
.area-educacion h3 { color: var(--orange); }
.area-economia h3 { color: var(--teal); }
.area-medio h3 { color: var(--green); }

/* ===== 9 OBRAS GRID ===== */
.obras-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1100px;
    margin: 30px auto;
}
.obras-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s;
    cursor: pointer;
}
.obras-gallery img:hover { transform: scale(1.03); }

/* ===== INVOCATION ===== */
.invocation-section {
    background: var(--navy);
    color: white;
    padding: 60px 40px;
    text-align: center;
}
.invocation-section h3 {
    color: var(--gold);
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.invocation-section blockquote {
    font-style: italic;
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
    opacity: 0.9;
}
.invocation-section h4 {
    color: var(--gold);
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.prueba-list { max-width: 500px; margin: 0 auto; text-align: left; list-style: none; }
.prueba-list li { padding: 8px 0; font-size: 15px; }
.prueba-list li::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--gold);
    border-radius: 50%;
    margin-right: 12px;
}

/* ===== LINKS GRID ===== */
.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px;
}
.link-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 25px 15px;
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s;
    display: block;
}
.link-card:hover { border-color: var(--gold); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.link-card img { height: 70px; margin-bottom: 12px; }
.link-card .link-label { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--navy); }

/* ===== CONTENT PAGES ===== */
.page-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 40px;
}
.page-content h2 {
    color: var(--navy);
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 35px 0 15px;
}
.page-content h2:first-child { margin-top: 0; }
.page-content p {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.8;
}
.page-content img.content-img {
    width: 100%;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.page-content .two-col-img {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}
.page-content .two-col-img img { border-radius: 8px; height: 250px; object-fit: cover; }

/* ===== SOCIOS GRID ===== */
.socios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.socio-card {
    text-align: center;
    padding: 20px;
    background: var(--gray-bg);
    border-radius: 8px;
}
.socio-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid var(--gold);
}
.socio-card h4 { font-size: 13px; color: var(--navy); font-weight: 700; }
.socio-card p { font-size: 11px; color: var(--text-light); }

/* ===== JUNTA DIRECTIVA ===== */
.junta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.junta-card { text-align: center; }
.junta-card img {
    width: 130px; height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    margin-bottom: 10px;
}
.junta-card h4 { font-size: 13px; color: var(--navy); font-weight: 700; text-transform: uppercase; }
.junta-card p { font-size: 11px; color: var(--gold); font-weight: 600; }

/* ===== OBRAS CARDS ===== */
.obras-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 30px 0;
}
.obra-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 25px;
    align-items: start;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}
.obra-card img { width: 100%; height: 250px; object-fit: cover; }
.obra-card-body { padding: 25px 25px 25px 0; }
.obra-card h3 {
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.obra-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 600px; margin: 30px auto; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font);
    font-size: 14px;
    transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}
.contact-form textarea { height: 150px; resize: vertical; }
.contact-form button {
    background: var(--gold);
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}
.contact-form button:hover { background: var(--navy); }
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}
.contact-info-grid i { font-size: 28px; color: var(--gold); margin-bottom: 10px; display: block; }
.contact-info-grid h4 { font-size: 14px; color: var(--navy); margin-bottom: 8px; }
.contact-info-grid p { font-size: 13px; color: var(--text-light); }

/* ===== FOOTER ===== */
.footer {
    background: var(--gold-light);
    padding: 50px 40px 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    color: white;
}
.footer-logo { display: flex; align-items: center; justify-content: center; }
.footer-logo img {
    height: 100px;
    background: white;
    border-radius: 50%;
    padding: 15px;
}
.footer h4 { font-size: 14px; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 0.5px; }
.footer p, .footer a { font-size: 13px; color: rgba(255,255,255,0.9); line-height: 1.8; }
.footer a:hover { color: white; text-decoration: underline; }
.footer-bottom {
    background: #c98400;
    padding: 12px 40px;
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
}
.footer-bottom a { color: white; }

/* ===== SIDE SOCIAL ===== */
.side-social {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    display: flex;
    flex-direction: column;
}
.side-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    color: white;
    font-size: 16px;
    transition: transform 0.3s;
}
.side-social a:hover { transform: scale(1.15); }
.side-social .fb { background: #e91e8c; }
.side-social .ig { background: #e91e63; }

/* ===== SCROLL TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--navy);
    color: white;
    width: 42px; height: 42px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 99;
    border: none;
}
.scroll-top.visible { opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-header { padding: 10px 20px; }
    .top-bar { padding: 8px 15px; font-size: 11px; flex-wrap: wrap; }
    .hero-slider { height: 300px; }
    .page-banner { height: 200px; }
    .rueda-grid { grid-template-columns: 1fr; }
    .areas-grid { grid-template-columns: 1fr; }
    .area-card { grid-template-columns: 1fr; }
    .links-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .obra-card { grid-template-columns: 1fr; }
    .obra-card-body { padding: 20px; }
    .socios-grid { grid-template-columns: repeat(2, 1fr); }
    .junta-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-info-grid { grid-template-columns: 1fr; }
    .section, .section-full, .about-section, .page-content { padding: 30px 20px; }
    .hero-image-section { height: 350px; padding: 20px; }
    .hero-image-section h2 { font-size: 24px; }
    .hero-image-section h2 strong { font-size: 32px; }
    .obras-gallery { grid-template-columns: repeat(2, 1fr); }
    .page-content .two-col-img { grid-template-columns: 1fr; }
}
