/* ==========================================
   FUNDACIÓN LIBERTARIO — HIGH-END CAMPAIGN THEME
   ========================================== */

:root {
    /* Bold, Aggressive Palette */
    --accent: #EEDE18;      /* Exact Logo Yellow */
    --accent-hover: #D5C615;
    --dark: #0F0F0F;        /* Deep Premium Black */
    --darker: #050505;
    --white: #FFFFFF;       /* Pure White */
    --light: #F4F4F5;
    --gray: #A1A1AA;
    --green-wa: #25D366;

    /* Strong Campaign Typography */
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s ease;
}

/* ── Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; transition: var(--transition); }

/* ── Typography & Utilities ── */
.container { max-width: 1300px; margin: 0 auto; padding: 0 5%; }
.text-center { text-align: center; }
.text-dark { color: var(--dark); }
.text-white { color: var(--white); }
.text-accent { color: var(--accent); }
.bg-dark { background: var(--dark); }
.bg-white { background: var(--white); }
.mt-4 { margin-top: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.section-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.section-kicker {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

/* ── Buttons (Massive, Square, Bold) ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    padding: 16px 35px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
}

.btn-large { padding: 20px 45px; font-size: 1.3rem; }
.btn-block { width: 100%; }

.btn-accent { background: var(--accent); color: var(--dark); }
.btn-accent:hover { background: var(--white); color: var(--dark); }

.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--accent); color: var(--dark); }

.btn-white { background: var(--white); color: var(--dark); }
.btn-white:hover { background: var(--accent); color: var(--dark); }

/* ==========================================
   CAMPAIGN NAVBAR
   ========================================== */
.campaign-nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: var(--white);
    padding: 20px 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.campaign-nav.scrolled {
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img { height: 65px; }

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-menu a {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark);
}
.nav-menu a:hover { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 30px; }

.nav-social { display: flex; gap: 15px; }
.nav-social a { color: var(--dark); font-size: 1.2rem; }
.nav-social a:hover { color: var(--accent); }

.hamburger {
    display: none;
    background: none; border: none; font-size: 1.8rem; color: var(--dark); cursor: pointer;
}

/* ==========================================
   HERO MONUMENTAL
   ========================================== */
.hero-massive {
    position: relative;
    height: calc(100vh - 105px);
    margin-top: 105px;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center top;
    z-index: -2;
}

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

.hero-kicker {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 5px 15px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 7rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero-lead {
    font-size: 1.4rem;
    color: var(--white);
    max-width: 700px;
    margin-bottom: 50px;
    font-weight: 400;
}

.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }

/* ==========================================
   LA CAUSA (PURE BLACK & WHITE)
   ========================================== */
.cause-section {
    background: var(--light);
    padding: 120px 0;
}

.cause-grid {
    display: flex;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
    gap: 80px;
}

.cause-text {
    flex: 1.2;
}

.cause-intro {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 50px;
}

.manifesto-points { display: flex; flex-direction: column; gap: 40px; }

.point { display: flex; gap: 25px; }
.point i { font-size: 2.5rem; margin-top: 5px; }
.point h3 { font-family: var(--font-display); font-size: 1.8rem; text-transform: uppercase; margin-bottom: 10px; }
.point p { font-size: 1.05rem; color: #444; }

.cause-video {
    flex: 0 0 460px;
    display: flex;
    justify-content: center;
}

.cause-video video {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    background: var(--dark);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    border: 4px solid var(--white);
}

/* ==========================================
   LIDERAZGO (MARTINELLI FULLSCREEN)
   ========================================== */
.leader-section {
    position: relative;
    padding: 180px 0;
    display: flex;
    align-items: center;
}

.leader-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center 20%;
    z-index: -2;
}

.leader-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 100%);
    z-index: -1;
}

.leader-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 0 5%;
}

.massive-title {
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--white);
    line-height: 1;
    margin-bottom: 30px;
}

.leader-text {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 20px;
}

/* ==========================================
   CITA AYN RAND
   ========================================== */
.manifesto-band {
    background: var(--accent);
    padding: 100px 0;
}

.manifesto-quote {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--dark);
    line-height: 1.3;
    max-width: 1000px;
    margin: 0 auto 30px;
    text-transform: uppercase;
}

.manifesto-author {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 2px;
}

/* ==========================================
   IMPACTO MULTIMEDIA
   ========================================== */
.impact-section {
    background: var(--dark);
    padding: 120px 0;
}

.impact-header {
    text-align: center;
    margin-bottom: 80px;
}

.impact-lead {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.impact-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.impact-video-card {
    background: var(--darker);
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.impact-video-card:hover { border-color: var(--accent); transform: translateY(-10px);}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--dark);
    border-bottom: 3px solid var(--accent);
}

.v-poster, .v-real {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.v-real {
    opacity: 0;
    pointer-events: none;
}

.v-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.3);
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

.v-play-btn:hover {
    background: rgba(0,0,0,0.5);
    color: var(--accent);
    font-size: 3.5rem;
}

.video-wrapper.is-playing .v-poster,
.video-wrapper.is-playing .v-play-btn {
    opacity: 0;
    pointer-events: none;
}

.video-wrapper.is-playing .v-real {
    opacity: 1;
    pointer-events: auto;
}

.impact-video-desc { padding: 30px; }
.impact-video-desc h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); text-transform: uppercase; margin-bottom: 10px;}
.impact-video-desc p { color: var(--gray); }

/* ==========================================
   GALERÍA MOSAICO EDGE TO EDGE
   ========================================== */
.gallery-section {
    padding: 100px 0 0 0;
    background: var(--light);
}

.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 350px;
    gap: 0; /* NO GAPS - Campaign Style */
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s;
}

.gallery-img:hover {
    filter: brightness(1.2);
}

/* ==========================================
   LLAMADO A LA ACCIÓN MASIVO
   ========================================== */
.cta-massive {
    background: var(--white);
    padding: 120px 0;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 4rem;
    text-align: center;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--dark);
}

.cta-text {
    font-size: 1.25rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    color: #444;
}

.cta-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.cta-card {
    padding: 60px;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.cta-card h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.cta-card p { font-size: 1.1rem; margin-bottom: 30px;}

.quick-form input {
    width: 100%;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #CCC;
    font-family: var(--font-body);
    font-size: 1rem;
}
.quick-form input:focus { outline: none; border-color: var(--dark); }

/* ==========================================
   FOOTER
   ========================================== */
.footer-campaign {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 0 0;
    border-top: 5px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand img { height: 70px; margin-bottom: 20px; }
.footer-brand p { color: var(--gray); font-size: 1.1rem; }

.footer-contact h4, .footer-socials h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 25px;
}

.footer-contact p { margin-bottom: 15px; color: var(--gray); display: flex; align-items: center; gap: 15px;}
.footer-contact i { color: var(--white); font-size: 1.2rem; }

.social-box { display: flex; gap: 20px; }
.social-box a {
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px;
    background: var(--darker);
    color: var(--white);
    font-size: 1.5rem;
    border: 1px solid #333;
}
.social-box a:hover { background: var(--accent); color: var(--dark); border-color: var(--accent);}

.footer-legal {
    background: var(--darker);
    padding: 25px 0;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* ==========================================
   WHATSAPP FLOAT
   ========================================== */
.wa-float {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 70px; height: 70px;
    background: var(--green-wa);
    color: var(--white);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 35px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); }

/* ==========================================
   NOTICIAS (CMS)
   ========================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #EAEAEA;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--accent);
}

.news-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent);
}

.news-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.news-card-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    color: var(--dark);
    line-height: 1.3;
}

.news-card-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
}

.news-author {
    font-size: 0.85rem;
    color: #888;
}

.btn-share {
    background: transparent;
    border: 1px solid var(--dark);
    color: var(--dark);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-share:hover {
    background: var(--dark);
    color: var(--accent);
}

/* ==========================================
   IMAGE LIGHTBOX MODAL
   ========================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    border: 3px solid var(--accent);
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform:scale(0.9); opacity: 0;} 
    to {transform:scale(1); opacity: 1;}
}

.lightbox-close {
    position: fixed;
    top: 15px;
    right: 20px;
    color: #fff;
    background: rgba(0,0,0,0.6);
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.lightbox-close:hover {
    background: var(--accent);
    color: var(--dark);
    transform: scale(1.1);
}

.news-modal-content {
    margin: 40px auto 40px auto;
    background: #fff;
    max-width: 800px;
    width: 95%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s ease;
    overflow: hidden;
    position: relative;
}

/* Image Wrapper for Hover Effect */
.news-img-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    height: 200px;
    border-bottom: 3px solid var(--accent);
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-bottom: none; /* Removed because wrapper handles it */
}

.news-img-wrapper:hover img {
    transform: scale(1.05);
}

.news-img-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    font-size: 2.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-img-wrapper:hover .news-img-overlay {
    opacity: 1;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1200px) {
    .gallery-mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; }
}

@media (max-width: 992px) {
    .cause-grid { flex-direction: column; text-align: center; }
    .point { text-align: left; }
    .cause-video { flex: 0 0 auto; width: 100%; max-width: 400px; }
    .impact-video-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 5rem; }
    .massive-title { font-size: 4rem; }
}

@media (max-width: 768px) {
    .nav-actions { display: none; }
    .hamburger { display: block; margin-left: auto; padding-right: 15px; }
    .nav-logo img { height: 45px; }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px; left: 0; width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 5%;
        border-bottom: 3px solid var(--accent);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-menu.open { display: flex; }
    
    .hero-title { font-size: 3.5rem; }
    .hero-lead { font-size: 1.1rem; }
    .btn-large { width: 100%; }
    
    .cause-text { padding: 60px 5%; }
    .impact-video-grid { grid-template-columns: 1fr; }
    .gallery-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 250px; }
    
    .manifesto-quote { font-size: 2rem; }
    .section-title { font-size: 2.5rem; }
    
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 100px;
        right: 15px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .gallery-mosaic { grid-template-columns: 1fr; }
    .hero-title { font-size: 3rem; }
}
