:root {
    --primary-color: #FFCC00; /* Amarillo del colectivo */
    --secondary-color: #FFFFFF; /* Blanco */
    --accent-color: #F4F4F4;
    --text-main: #1A1A1A;
    --text-muted: #555555;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --font-main: 'Outfit', sans-serif;
    --border-radius: 12px;
}

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

body {
    background-color: var(--secondary-color);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-container img {
    height: 50px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #000;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    background: linear-gradient(135deg, #FFF 60%, #FFCC00 100%);
    margin-top: 80px;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 4rem;
    color: #000;
    line-height: 1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-image img {
    max-width: 450px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Common Sections */
section {
    padding: 80px 10%;
}

.section-title {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 40px;
    text-transform: uppercase;
    border-left: 10px solid var(--primary-color);
    padding-left: 20px;
}

/* Nosotros Section */
.nosotros-container {
    max-width: 1000px;
    margin: 0 auto;
}

.nosotros-intro {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
}

.hashtags {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hashtags span {
    background: #000;
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.mision-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.mision-box {
    background: #F9F9F9;
    padding: 35px;
    border-radius: var(--border-radius);
    border-left: 6px solid var(--primary-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
}

.mision-box h3 {
    color: #000;
    margin-bottom: 15px;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mision-box i {
    color: var(--primary-color);
}

.nosotros-footer {
    font-size: 1.3rem;
    border-top: 2px solid var(--primary-color);
    padding-top: 30px;
    text-align: center;
    margin-top: 20px;
}

/* Iniciativa Section */
.iniciativa-box {
    background: #000;
    color: #FFF;
    padding: 60px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.iniciativa-box h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.iniciativa-box p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
}

.puntos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.punto-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-bottom: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.punto-card:hover, .punto-card:active {
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    transform: translateY(-5px);
    border-color: #FFF;
}

.punto-card h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.punto-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: #DDD;
}

.btn-drive {
    display: inline-block;
    background: var(--primary-color);
    color: #000;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-drive:hover {
    transform: scale(1.05);
    background: #FFF;
}

.fb-feed-container {
    margin-bottom: 40px;
    background: #f0f2f5;
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid #ddd;
}

.fb-feed-container .fb-page {
    max-width: 100%;
}

/* News & Convocatorias */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.card {
    background: #FFF;
    border: 1px solid #EEE;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.card-img {
    height: 220px;
    background: #F9F9F9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    position: relative;
    cursor: pointer;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-img .play-icon {
    position: absolute;
    font-size: 4rem;
    color: #FFF;
    text-shadow: 0 2px 15px rgba(0,0,0,0.8);
    opacity: 0.9;
    transition: 0.3s;
}

.card-img:hover .play-icon {
    transform: scale(1.1);
    opacity: 1;
}

.card-content {
    padding: 25px;
    flex-grow: 1;
}

.card-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.card-content h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #000;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    aspect-ratio: 1;
    background: #F4F4F4;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Forms */
form {
    background: #FFF;
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid #EEE;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #000;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 12px;
    background: #F9F9F9;
    border: 1px solid #DDD;
    color: #333;
    border-radius: 6px;
    outline: none;
}

input:focus, textarea:focus {
    border-color: var(--primary-color);
}

.btn-submit {
    background: var(--primary-color);
    color: black;
    border: none;
    padding: 15px 30px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    width: 100%;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #E6B800;
}

.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-status.loading {
    display: block;
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* Progress Bar Creativo */
.progress-container {
    margin-bottom: 20px;
    width: 100%;
}
.progress-track {
    position: relative;
    width: 100%;
    height: 40px;
    border-bottom: 3px dashed var(--primary-color);
    margin-bottom: 10px;
}
.progress-bus {
    position: absolute;
    left: 0%;
    bottom: -8px;
    font-size: 2rem;
    transition: left 0.3s ease-out;
    transform: translateX(-50%);
    z-index: 2;
}
.progress-goal {
    position: absolute;
    right: -10px;
    bottom: -5px;
    font-size: 1.8rem;
    z-index: 1;
}
.progress-text {
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #FFF;
}

/* Thermometer Chart */
.thermometer-item {
    margin-bottom: 15px;
}
.thermometer-label {
    display: flex;
    justify-content: space-between;
    color: #DDD;
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.thermometer-bar-container {
    width: 100%;
    height: 12px;
    background: #333;
    border-radius: 6px;
    overflow: hidden;
}
.thermometer-bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 6px;
    width: 0%; /* Se actualiza con JS */
    transition: width 1s ease-in-out;
}

/* Counter */
.counter-box {
    text-align: center;
    padding: 40px;
    background: var(--primary-color);
    color: black;
    border-radius: var(--border-radius);
}

.counter-number {
    font-size: 3rem;
    font-weight: 800;
}

/* Footer & Social */
footer {
    padding: 60px 10%;
    background: #F9F9F9;
    border-top: 1px solid #EEE;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.social-links a {
    color: #000;
    font-size: 1.8rem;
    transition: 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #FFF;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.social-links a:hover {
    color: var(--primary-color);
    background: #000;
    transform: scale(1.1);
}

.creative-signature {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed #DDD;
    display: inline-block;
}

.creative-signature p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.signature-name {
    font-size: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 1px 1px 0px #000;
}

/* Responsive - Mobile Menu & Carousels */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-main);
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    section {
        padding: 50px 5%;
        max-width: 100vw;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hashtags span {
        font-size: 0.75rem;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: 0.4s ease-in-out;
        gap: 30px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    nav ul.active {
        left: 0;
    }

    nav ul li a {
        font-size: 1.3rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        height: auto;
        padding-bottom: 40px;
    }
    
    .hero-content h1 { font-size: 2.5rem; }
    .hero-image img { max-width: 300px; margin-top: 30px; }
    
    .mision-vision-grid { grid-template-columns: 1fr; }
    .iniciativa-box { padding: 20px; }
    .iniciativa-box h2 { font-size: 1.8rem; }

    /* Horizontal Swipe Carousels for Mobile */
    .grid-container, .puntos-grid, .gallery-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px; /* Space for scrollbar */
        gap: 15px;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    /* Scrollbar Styling */
    .grid-container::-webkit-scrollbar, 
    .puntos-grid::-webkit-scrollbar, 
    .gallery-grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .grid-container::-webkit-scrollbar-thumb, 
    .puntos-grid::-webkit-scrollbar-thumb, 
    .gallery-grid::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }

    .card, .gallery-item {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }

    .puntos-grid a {
        flex: 0 0 85%; /* Las tarjetas ocupan el 85% del ancho para ser horizontales */
        scroll-snap-align: center;
        text-decoration: none;
    }

    .punto-card {
        padding: 15px;
        width: 100%; /* Ocupar todo el ancho del enlace */
        min-height: 100px; /* Asegurar formato rectangular horizontal */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .punto-card h4 {
        font-size: 1.1rem;
        margin-bottom: 5px;
        white-space: nowrap; /* Evitar que el título se rompa en varias líneas si es corto */
    }

    .punto-card p {
        font-size: 0.8rem;
        line-height: 1.2;
    }
}
