:root {
    /* Brand Colors */
    --gold: #D4A017;
    --navy: #1B3A5F;
    --dark: #2C2C2C;
    --light: #F5F5F5;

    /* Environmental Green Palette */
    --green-primary: #2D5016;
    --green-secondary: #52B788;
    --green-light: #95D5B2;
    --green-accent: #74C69D;
    --earth-brown: #8B6F47;

    /* Axis Colors - More vibrant */
    --contaminantes: #6C757D;
    --aguas: #4A90E2;
    --energia: #FDB813;
    --vegetal: #2D5016;
    --suelo: #8B6F47;
    --residuos: #E67E22;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 998;
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--green-secondary);
    background: transparent;
    color: var(--green-primary);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--green-secondary);
    color: white;
    border-color: var(--green-secondary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--spacing-md);
}

.logo {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--navy);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-secondary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--navy);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.95) 0%, rgba(27, 58, 95, 0.9) 100%),
                url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1920&q=80') center/cover no-repeat;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(82, 183, 136, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 160, 23, 0.15) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
    margin-bottom: 4rem;
}

.btn {
    padding: 1rem 2rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: transparent;
    color: white;
    border-color: var(--green-light);
}

.btn-primary:hover {
    background: var(--green-light);
    color: var(--green-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(149, 213, 178, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: var(--green-light);
}

.btn-secondary:hover {
    background: var(--green-light);
    color: var(--green-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(149, 213, 178, 0.3);
}

.btn-submit {
    background: var(--green-secondary);
    color: white;
    border-color: var(--green-secondary);
    box-shadow: 0 4px 15px rgba(82, 183, 136, 0.3);
    width: 100%;
}

.btn-submit:hover {
    background: var(--green-primary);
    border-color: var(--green-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(82, 183, 136, 0.5);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    animation: fadeIn 1s ease-out 1s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scroll-indicator {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--green-light), transparent);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(10px); opacity: 1; }
}

/* Quick Navigation - Ejes Overview */
.ejes-overview {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0.97), rgba(255, 255, 255, 0.95));
}

.ejes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.eje-card {
    background: white;
    padding: var(--spacing-sm);
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.eje-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.eje-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.eje-card:hover .eje-icon {
    transform: scale(1.1);
}

.eje-card h3 {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.eje-card p {
    color: #666;
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Colores específicos por eje */
.eje-card[data-eje="proteccion"] {
    border-color: #077f38;
}
.eje-card[data-eje="proteccion"]:hover {
    border-color: #077f38;
    box-shadow: 0 8px 20px rgba(7, 127, 56, 0.2);
}
.eje-card[data-eje="proteccion"] .eje-icon {
    background: #077f38;
    color: white;
}
.eje-card[data-eje="proteccion"] h3 {
    color: #077f38;
}

.eje-card[data-eje="contaminantes"] {
    border-color: #737373;
}
.eje-card[data-eje="contaminantes"]:hover {
    border-color: #737373;
    box-shadow: 0 8px 20px rgba(115, 115, 115, 0.2);
}
.eje-card[data-eje="contaminantes"] .eje-icon {
    background: #737373;
    color: white;
}
.eje-card[data-eje="contaminantes"] h3 {
    color: #737373;
}

.eje-card[data-eje="aguas"] {
    border-color: #024aac;
}
.eje-card[data-eje="aguas"]:hover {
    border-color: #024aac;
    box-shadow: 0 8px 20px rgba(2, 74, 172, 0.2);
}
.eje-card[data-eje="aguas"] .eje-icon {
    background: #024aac;
    color: white;
}
.eje-card[data-eje="aguas"] h3 {
    color: #024aac;
}

.eje-card[data-eje="energia"] {
    border-color: #ffde5a;
}
.eje-card[data-eje="energia"]:hover {
    border-color: #ffde5a;
    box-shadow: 0 8px 20px rgba(255, 222, 90, 0.3);
}
.eje-card[data-eje="energia"] .eje-icon {
    background: #ffde5a;
    color: #333;
}
.eje-card[data-eje="energia"] h3 {
    color: #d4b300;
}

.eje-card[data-eje="suelo"] {
    border-color: #B0810C;
}
.eje-card[data-eje="suelo"]:hover {
    border-color: #B0810C;
    box-shadow: 0 8px 20px rgba(176, 129, 12, 0.2);
}
.eje-card[data-eje="suelo"] .eje-icon {
    background: #B0810C;
    color: white;
}
.eje-card[data-eje="suelo"] h3 {
    color: #B0810C;
}

.eje-card[data-eje="residuos"] {
    border-color: #f6b537;
}
.eje-card[data-eje="residuos"]:hover {
    border-color: #f6b537;
    box-shadow: 0 8px 20px rgba(246, 181, 55, 0.2);
}
.eje-card[data-eje="residuos"] .eje-icon {
    background: #f6b537;
    color: white;
}
.eje-card[data-eje="residuos"] h3 {
    color: #f6b537;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--green-secondary) 0%, var(--green-light) 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: var(--spacing-md) auto 0;
}

/* About Section */
.about {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.95)),
                url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1920&q=80') center/cover fixed;
}

.about-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.about-item.reverse {
    direction: rtl;
}

.about-item.reverse > * {
    direction: ltr;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.02);
}

.about-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    max-height: 250px;
}

.about-text {
    padding: var(--spacing-md);
}

.about-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    line-height: 1;
}

.about-text h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--green-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.about-text p {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Values Section - Carousel */
.values {
    padding: var(--spacing-xl) 0;
    background: var(--dark);
    color: white;
    overflow: hidden;
}

.values .section-title {
    color: white;
}

.values .section-title::after {
    background: linear-gradient(90deg, var(--green-secondary) 0%, var(--green-light) 100%);
}

.values-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 350px;
}

.value-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.value-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.value-slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.value-slide-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.85) 0%, rgba(27, 58, 95, 0.8) 100%);
}

.value-slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: var(--spacing-xl);
}

.value-icon {
    margin-bottom: var(--spacing-sm);
    animation: float 3s ease-in-out infinite;
    color: var(--green-light);
}

.value-icon svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.value-slide-content h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: white;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.value-slide-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    max-width: 600px;
}

/* Botones del Carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-btn:hover {
    background: rgba(82, 183, 136, 0.9);
    border-color: var(--green-secondary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* Indicadores (dots) */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 12px;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dots .dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.carousel-dots .dot.active {
    background: var(--green-secondary);
    border-color: white;
    transform: scale(1.3);
}

/* Solutions Section */
.solutions {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0.97), rgba(255, 255, 255, 0.95)),
                url('https://images.unsplash.com/photo-1574943320219-553eb213f72d?w=1920&q=80') center/cover fixed;
}

.solution-block {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--axis-color);
    backdrop-filter: blur(10px);
}

.solution-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--green-light);
}

.solution-header h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--green-primary);
    margin-bottom: 0.5rem;
}

.solution-header p {
    font-size: 1rem;
    color: #666;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-sm);
}

.project-card,
.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    padding: var(--spacing-md);
    border-radius: 12px;
    border: 1px solid rgba(82, 183, 136, 0.2);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.project-card:hover,
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(45, 80, 22, 0.15);
    border-color: var(--green-secondary);
}

.project-card.award {
    border: 2px solid var(--gold);
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.05) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.award-badge {
    position: absolute;
    top: -12px;
    right: 15px;
    background: linear-gradient(135deg, var(--gold) 0%, #B8860B 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(212, 160, 23, 0.4);
}

.project-logo {
    height: 140px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.project-card h4,
.service-card h4 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--green-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-card p,
.service-card ul {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green-secondary);
    font-weight: bold;
    font-size: 1.1rem;
}

.btn-contact {
    display: inline-block;
    margin-top: var(--spacing-md);
    padding: 0.6rem 1.2rem;
    background: var(--green-secondary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(82, 183, 136, 0.3);
    border-color: var(--green-secondary);
}

.btn-contact:hover {
    background: var(--green-primary);
    border-color: var(--green-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(82, 183, 136, 0.4);
}

/* Team Section */
.team {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.97), rgba(248, 249, 250, 0.93)),
                url('https://images.unsplash.com/photo-1530836369250-ef72a3f5cda8?w=1920&q=80') center/cover fixed;
}

.team-intro {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl) auto;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(82, 183, 136, 0.15);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(82, 183, 136, 0.2);
    border-color: var(--green-secondary);
}

.team-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--spacing-md) auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--green-secondary);
    box-shadow: 0 8px 25px rgba(82, 183, 136, 0.3);
    transition: all 0.3s ease;
}

.team-member:hover .team-photo {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(82, 183, 136, 0.4);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.team-member:hover .team-photo img {
    filter: grayscale(0%);
}

.team-name {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--green-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.team-role {
    color: var(--green-secondary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.team-bio {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* News Section */
.news {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: var(--spacing-lg);
}

.news-item {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 2rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.news-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.news-content {
    padding: 2rem 2rem 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.news-date,
.news-category {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
}

.news-date {
    background: rgba(82, 183, 136, 0.1);
    color: var(--green-secondary);
}

.news-category {
    background: rgba(27, 58, 95, 0.1);
    color: var(--navy);
}

.news-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.news-link {
    color: var(--green-secondary);
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.news-link:hover {
    color: var(--green-primary);
    transform: translateX(5px);
}

/* Hidden News Items */
.news-item.hidden-news {
    display: none;
}

/* News Actions (Load More Button) */
.news-actions {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

#loadMoreNews {
    min-width: 200px;
    background: var(--green-secondary);
    color: white;
    border-color: var(--green-secondary);
    box-shadow: 0 4px 15px rgba(82, 183, 136, 0.3);
}

#loadMoreNews:hover {
    background: var(--green-primary);
    border-color: var(--green-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(82, 183, 136, 0.4);
}

#loadMoreNews.hidden {
    display: none;
}

/* News Modal Specific Styles */
.news-modal-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.news-modal-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.news-modal-full-content {
    color: #333;
    line-height: 1.8;
    font-size: 1.05rem;
}

.news-modal-full-content p {
    margin-bottom: 1.5rem;
}

.news-modal-full-content h3 {
    font-family: var(--font-primary);
    color: var(--navy);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.news-modal-full-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.news-modal-full-content ul li {
    margin-bottom: 0.5rem;
}

.modal-header-content h2 {
    margin-bottom: 0;
}

/* Responsive News Section */
@media (max-width: 768px) {
    .news-item {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .news-image {
        height: 200px;
    }

    .news-content {
        padding: 1.5rem;
    }

    .news-title {
        font-size: 1.25rem;
    }
}

/* Contact Section */
.contact {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.94) 0%, rgba(27, 58, 95, 0.9) 100%),
                url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?w=1920&q=80') center/cover fixed;
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.contact-info h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: white;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.contact-item .icon {
    font-size: 2rem;
    color: var(--green-light);
}

.contact-item .icon svg {
    display: block;
}

.contact-item h4 {
    font-family: var(--font-primary);
    color: var(--green-light);
    margin-bottom: 0.3rem;
}

.contact-item a,
.contact-item p {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--green-light);
}

.contact-item p {
    margin: 0;
    line-height: 1.6;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #25D366;
    color: white !important;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-link svg {
    flex-shrink: 0;
}

.contact-form-wrapper {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-secondary);
    box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.15);
}

.form-message {
    padding: 1rem;
    border-radius: 10px;
    margin-top: var(--spacing-sm);
    display: none;
}

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

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

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: var(--spacing-md);
    filter: brightness(0) invert(1);
}

.footer-col h4 {
    font-family: var(--font-primary);
    color: var(--green-light);
    margin-bottom: var(--spacing-md);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--green-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Project Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--green-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: var(--green-secondary);
    transform: rotate(90deg);
}

.modal-header {
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-md);
    text-align: center;
    border-bottom: 2px solid var(--green-light);
    background: linear-gradient(135deg, rgba(82, 183, 136, 0.05) 0%, rgba(45, 80, 22, 0.05) 100%);
}

.modal-logo {
    height: 120px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.modal-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--green-primary);
    margin: 0;
}

.modal-content {
    padding: var(--spacing-lg);
}

.modal-section {
    margin-bottom: var(--spacing-lg);
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--green-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--green-light);
}

.modal-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

.modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    border-bottom: 1px solid rgba(82, 183, 136, 0.1);
}

.modal-list li:last-child {
    border-bottom: none;
}

.modal-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green-secondary);
    font-weight: bold;
    font-size: 1.3rem;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.modal-gallery-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.modal-gallery-image:hover {
    transform: scale(1.02);
}

.btn-contact-modal {
    display: inline-block;
    margin-top: var(--spacing-md);
    padding: 0.75rem 1.5rem;
    background: var(--green-secondary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(82, 183, 136, 0.3);
    border-color: var(--green-secondary);
}

.btn-contact-modal:hover {
    background: var(--green-primary);
    border-color: var(--green-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(82, 183, 136, 0.4);
}

/* Advisory Modal Specific Styles */
.advisory-modal {
    max-width: 700px;
}

.modal-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.advisory-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--navy);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-secondary);
    box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.advisory-submit {
    width: 100%;
    margin-top: var(--spacing-sm);
    padding: 0.9rem 2rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.advisory-submit:hover {
    transform: translateY(-2px);
}

/* Clickable project cards */
.project-card.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5rem;
}

.project-card.clickable::after {
    content: attr(data-click-text);
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    text-align: center;
    font-size: 0.85rem;
    color: white;
    font-weight: 600;
    background: var(--green-secondary);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(82, 183, 136, 0.3);
}

.project-card.clickable:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(82, 183, 136, 0.25);
}

.project-card.clickable:hover::after {
    background: var(--green-primary);
    box-shadow: 0 6px 20px rgba(82, 183, 136, 0.4);
    transform: translateX(-50%) translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: var(--spacing-md);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .ejes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xs);
    }

    .carousel-track {
        height: 280px;
    }

    .value-slide-content h3 {
        font-size: 1.4rem;
    }

    .value-slide-content p {
        font-size: 0.9rem;
    }

    .value-icon {
        font-size: 2.5rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .about-item,
    .about-item.reverse {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        direction: ltr;
    }

    .about-image {
        order: 1;
    }

    .about-text {
        order: 2;
        padding: 0;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .language-selector {
        top: 10px;
        right: 70px;
        z-index: 998;
    }

    .modal-overlay {
        padding: 0.5rem;
    }

    .modal-container {
        max-height: 95vh;
        border-radius: 15px;
    }

    .modal-header {
        padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
    }

    .modal-logo {
        height: 80px;
    }

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

    .modal-content {
        padding: var(--spacing-md);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-section-title {
        font-size: 1.3rem;
    }

    .modal-text,
    .modal-list li {
        font-size: 1rem;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animations */
/* Mobile Small Screens */
@media (max-width: 480px) {
    .ejes-grid {
        grid-template-columns: 1fr;
    }

    .eje-card {
        padding: var(--spacing-md);
    }

    .eje-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .eje-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .eje-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
        font-size: 1.5rem;
    }

    .project-card.clickable::after {
        width: 80%;
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }

    .project-card.clickable {
        padding-bottom: 4.5rem;
    }

    .service-card li {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0.6rem 0;
        padding-left: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
