:root {
    --verde-fondo: #395d53;
    --blanco-crema: #fbffc6;
    --mostaza: #ffc800;
    --blanco: #ffffff;
    --gris-oscuro: #333333;
    --gris-claro: #f5f5f5;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--gris-oscuro);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--verde-fondo);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--blanco-crema);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.logo p {
    color: var(--mostaza);
    font-size: 0.9rem;
    font-weight: 300;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--blanco-crema);
    margin: 3px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li a {
    color: var(--blanco-crema);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
    position: relative;
}

.nav-menu li a:hover {
    color: var(--mostaza);
}

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--verde-fondo) 0%, #2a4540 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23fbffc6" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--blanco-crema);
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--blanco-crema);
    margin-bottom: 2rem;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-primary {
    background-color: var(--mostaza);
    color: var(--verde-fondo);
}

.btn-primary:hover {
    background-color: #e6b500;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 200, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--verde-fondo);
    border: 2px solid var(--verde-fondo);
}

.btn-secondary:hover {
    background-color: var(--verde-fondo);
    color: var(--blanco-crema);
    transform: translateY(-3px);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--verde-fondo);
    font-weight: 700;
    margin-bottom: 1rem;
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--mostaza), var(--verde-fondo));
    margin: 0 auto;
}

/* About Section */
.about {
    background-color: var(--gris-claro);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--verde-fondo);
    margin-bottom: 0.5rem;
}

.about-text .subtitle {
    color: var(--mostaza);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--gris-oscuro);
    line-height: 1.8;
}

/* News Section */
.news {
    background-color: var(--blanco);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: var(--blanco);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--gris-claro);
}

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

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--mostaza);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-content h3 {
    color: var(--verde-fondo);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.news-content p {
    color: var(--gris-oscuro);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-link {
    color: var(--verde-fondo);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.news-link:hover {
    color: var(--mostaza);
}

.text-center {
    text-align: center;
}

/* Projects Section */
.projects {
    background: linear-gradient(135deg, var(--verde-fondo) 0%, #2a4540 100%);
}

.projects .section-header h2 {
    color: var(--blanco-crema);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: rgba(251, 255, 198, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, background-color 0.3s;
    border: 2px solid transparent;
}

.project-card:hover {
    transform: translateY(-10px);
    background-color: rgba(251, 255, 198, 0.15);
    border-color: var(--mostaza);
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-card h3 {
    color: var(--blanco-crema);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--blanco-crema);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background-color: var(--gris-claro);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    color: var(--verde-fondo);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    margin-bottom: 2rem;
    color: var(--gris-oscuro);
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item .icon {
    font-size: 2rem;
}

.contact-item h4 {
    color: var(--verde-fondo);
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--gris-oscuro);
}

.contact-form {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--verde-fondo);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--verde-fondo);
    color: var(--blanco-crema);
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--blanco-crema);
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(251, 255, 198, 0.8);
}

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

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

.footer-section ul li a {
    color: rgba(251, 255, 198, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--mostaza);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: rgba(251, 255, 198, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--mostaza);
}

.footer-bottom {
    border-top: 1px solid rgba(251, 255, 198, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(251, 255, 198, 0.8);
    font-size: 0.9rem;
}

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

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--verde-fondo);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

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

    .hero {
        margin-top: 70px;
        min-height: 80vh;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

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

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }

    .logo p {
        font-size: 0.8rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
    }
}
