/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ===== VARIABLES ===== */
:root {
    --primary-color: #2C5530;
    --secondary-color: #F4A261;
    --accent-color: #E76F51;
    --neutral-light: #F8F9FA;
    --neutral-dark: #212529;
    --white: #FFFFFF;
    --black: #000000;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), #1a3d1f);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #e67e22);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    height: 80px;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo .logo {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--neutral-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--neutral-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(44, 85, 48, 0.6) 0%,
        rgba(26, 61, 31, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-text {
    max-width: 800px;
    padding: 0 2rem;
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo-img {
    height: 80px;
    width: auto;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 162, 97, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== COLECTIVIDADES SECTION ===== */
.colectividades {
    padding: 5rem 0;
    background: var(--neutral-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.colectividades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.colectividad-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.colectividad-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.colectividad-image {
    height: 200px;
    overflow: hidden;
}

.colectividad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.colectividad-card:hover .colectividad-image img {
    transform: scale(1.1);
}

.colectividad-content {
    padding: 1.5rem;
}

.colectividad-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.colectividad-description {
    color: #666;
    margin-bottom: 1rem;
}

/* ===== SOBRE NOSOTROS SECTION ===== */
.sobre-nosotros {
    padding: 5rem 0;
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.sobre-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1rem;
}

.sobre-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.sobre-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 45px;
    width: auto;
    opacity: 0.9;
}

.footer-brand h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--secondary-color);
    font-weight: 500;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 300px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links li:hover {
    opacity: 1;
    transform: translateX(5px);
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-links i {
    color: var(--secondary-color);
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

.social-links {
    color: #FFFFFF;
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
}

.social-link:hover {
    background: var(--secondary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(244, 162, 97, 0.3);
}

.social-link i {
    font-size: 1.1rem;
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-copyright p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.footer-developer p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    font-weight: 500;
}

.developer-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
}

.developer-link:hover {
    color: var(--color-blanco);
    text-decoration: none;
}

.developer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.developer-link:hover::after {
    width: 100%;
}

/* ===== HERO SCROLL ARROW ===== */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator {
    text-align: center;
    color: var(--white);
}

.scroll-text {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border: 2px solid var(--white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    margin: 0 auto;
    animation: scrollBounce 2s infinite;
    position: relative;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* ===== SWIPER CUSTOMIZATION ===== */
.swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--secondary-color);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        height: 100vh;
        padding-top: 80px;
    }

    .hero-content {
        padding: 0 1rem;
        height: calc(100vh - 80px);
    }

    .hero-logo-img {
        height: 60px;
    }

    .hero-text {
        padding: 0 1rem;
        max-width: 100%;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 6rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-scroll {
        bottom: 1rem;
    }

    .scroll-text {
        font-size: 0.8rem;
    }

    .scroll-arrow {
        width: 16px;
        height: 16px;
    }

    .sobre-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .colectividades-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Footer Responsive Mejorado */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-logo-section {
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .footer-logo {
        height: 40px;
    }

    .footer-brand h3 {
        font-size: 1.2rem;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }

    .footer-description {
        max-width: none;
        margin: 0 auto;
        font-size: 0.9rem;
    }

    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links li {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
        text-align: center;
    }

    .footer-links i {
        margin-right: 0.3rem;
        width: 14px;
    }

    .social-links {
        justify-content: center;
        gap: 1.5rem;
        margin-top: 1rem;
    }

    .social-link {
        width: 50px;
        height: 50px;
        background: var(--secondary-color);
        border: 2px solid var(--secondary-color);
    }

    .social-link i {
        font-size: 1.5rem;
        color: var(--white);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding-top: 2rem;
    }

    .footer-copyright p,
    .footer-developer p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 100vh;
        padding-top: 80px;
    }

    .hero-content {
        padding: 0 1rem;
        height: calc(100vh - 80px);
    }

    .hero-logo-img {
        height: 50px;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin-bottom: 5rem;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .hero-scroll {
        bottom: 0.5rem;
    }

    .scroll-text {
        font-size: 0.75rem;
    }

    .scroll-arrow {
        width: 14px;
        height: 14px;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Footer Mobile Mejorado */
    .footer {
        padding: 2.5rem 0 1rem;
    }

    .footer-main {
        gap: 2rem;
    }

    .footer-logo {
        height: 35px;
    }

    .footer-brand h3 {
        font-size: 1.1rem;
    }

    .footer-brand p {
        font-size: 0.8rem;
    }

    .footer-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .footer-links li {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .footer-links i {
        margin-right: 0.2rem;
        width: 12px;
        font-size: 0.8rem;
    }

    .social-links {
        gap: 1.2rem;
        margin-top: 0.8rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
        background: var(--secondary-color);
        border: 2px solid var(--secondary-color);
    }

    .social-link i {
        font-size: 1.3rem;
        color: var(--white);
    }

    .footer-bottom {
        gap: 0.8rem;
        padding-top: 1.5rem;
    }

    .footer-copyright p,
    .footer-developer p {
        font-size: 0.8rem;
    }

    .developer-link {
        font-weight: 600;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a3d1f;
}

/* ===== MULTIPLE FLAGS STYLING ===== */
.colectividad-image-multiple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 200px;
    gap: 2px;
}

.colectividad-image-multiple img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.colectividad-card:nth-child(11) .colectividad-image-multiple {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

.colectividad-card:nth-child(11) .colectividad-image-multiple img {
    height: 100%;
}

.colectividad-card:nth-child(12) .colectividad-image-multiple {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.colectividad-card:hover .colectividad-image-multiple img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .colectividad-image-multiple {
        height: 150px;
    }
}

