/* Reset y Variables */
:root {
    --primary-color: #2d5016;
    --secondary-color: #4a7c2a;
    --accent-color: #6ba83a;
    --dark-color: #1a1a1a;
    --light-color: #f5f5f5;
    --white: #ffffff;
    --gray: #666666;
    --light-gray: #e0e0e0;
    --text-color: #333333;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(-100%);
}

.header.header-visible {
    transform: translateY(0);
}

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

/* Header width 80% on desktop */
@media (min-width: 1025px) {
    .header .container {
        max-width: 80%;
        width: 80%;
    }
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo a img {
    display: block;
    margin: 0;
}

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

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    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: var(--transition);
}

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

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-block {
    width: 100%;
    text-align: center;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border: none;
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
}

/* Benefits Quick */
.benefits-quick {
    padding: 4rem 0;
    background: var(--light-color);
}

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

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* What We Do */
.what-we-do {
    padding: 4rem 0;
    background: var(--white);
}

.what-we-do-image {
    transition: var(--transition);
}

.what-we-do-image:hover {
    transform: scale(1.02);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.section-text {
    font-size: 1.1rem;
    color: var(--gray);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

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

/* Featured Projects */
.featured-projects {
    padding: 4rem 0;
    background: var(--light-color);
}

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

.project-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
    background-size: cover;
    background-position: center;
}

.project-card h3 {
    padding: 1.5rem;
    color: var(--primary-color);
}

.project-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray);
}

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

/* Why Choose Us */
.why-choose-us {
    padding: 4rem 0;
    background: var(--white);
}

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

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Services */
.services {
    padding: 4rem 0;
    background: var(--light-color);
}

.service-item {
    background: var(--white);
    border-radius: 10px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-image {
    transition: var(--transition);
}

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

.service-image img {
    border-radius: 10px;
}

.service-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-item h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-item p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.service-list {
    list-style: none;
    text-align: left;
    max-width: 600px;
    margin: 1.5rem 0;
}

.service-list li {
    padding: 0.5rem 0;
    color: var(--gray);
}

.service-list i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.service-number {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 50px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.service-benefits {
    margin-top: 1.5rem;
    text-align: left;
    max-width: 600px;
    width: 100%;
}

.service-benefits h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Services CTA Section */
.services-cta {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    text-align: center;
    color: var(--white);
}

.services-cta-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.services-cta-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

.services-cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.services-cta-buttons .btn {
    min-width: 250px;
}

.services-cta-buttons .btn i {
    margin-right: 0.5rem;
}

/* Quick Links Section */
.quick-links {
    padding: 4rem 0;
    background: var(--light-color);
}

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

.quick-link-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    color: var(--primary-color);
}

.quick-link-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.quick-link-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.quick-link-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Projects Full */
.projects {
    padding: 4rem 0;
    background: var(--white);
}

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

.project-card-full {
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.project-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.project-image-full {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 5rem;
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-location,
.project-type,
.project-service,
.project-description,
.project-result {
    margin-bottom: 0.8rem;
    color: var(--gray);
    line-height: 1.6;
}

.project-location i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.project-number {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* Projects CTA Section */
.projects-cta {
    margin: 4rem auto 0;
    padding: 4rem 3rem;
    max-width: 900px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    text-align: center;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.projects-cta-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.projects-cta-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

.projects-cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.projects-cta-buttons .btn {
    min-width: 250px;
}

.projects-cta-buttons .btn i {
    margin-right: 0.5rem;
}

/* About */
.about {
    padding: 4rem 0;
    background: var(--light-color);
}

.about-intro {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.about-intro .section-text {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Misión y Visión */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.mission-vision-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.mission-vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.mission-vision-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.mission-vision-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.mission-vision-text {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Valores */
.values-section {
    margin-top: 4rem;
}

.values-section .section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

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

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

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.value-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Contact */
.contact {
    padding: 4rem 0;
    background: var(--white);
}

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

.contact-form-wrapper {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.whatsapp-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem;
    border-radius: 10px;
}

.whatsapp-box h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.whatsapp-box h3 i {
    margin-right: 0.5rem;
}

.whatsapp-box p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    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 {
    margin-bottom: 1rem;
    color: var(--white);
}

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

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

.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--light-gray);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    color: var(--white);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
        font-size: 28px;
    }
}

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

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav.active {
        max-height: 500px;
    }

    .nav-list {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

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

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

    .hero-buttons {
        flex-direction: column;
    }

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

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

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .values-grid-extended {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .benefits-grid,
    .features-grid,
    .projects-grid,
    .projects-grid-full,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .projects-cta {
        padding: 2.5rem 1.5rem;
        margin-top: 3rem;
    }

    .projects-cta-title {
        font-size: 1.75rem;
    }

    .projects-cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .projects-cta-buttons .btn {
        min-width: 100%;
        width: 100%;
    }

    .project-info {
        padding: 1.5rem;
    }

    .project-number {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    .service-item {
        padding: 2rem 1.5rem;
    }

    .service-content {
        text-align: left;
    }

    .service-list {
        max-width: 100%;
    }

    .services-cta {
        padding: 2.5rem 1.5rem;
        margin-top: 3rem;
    }

    .services-cta-title {
        font-size: 1.75rem;
    }

    .services-cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .services-cta-buttons .btn {
        min-width: 100%;
        width: 100%;
    }

    .service-benefits {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .service-item {
        padding: 2rem 1rem;
    }

    .service-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        line-height: 40px;
    }

    .services-cta {
        padding: 2rem 1.5rem;
        margin-top: 3rem;
    }

    .services-cta-title {
        font-size: 1.5rem;
    }

    .services-cta-text {
        font-size: 1rem;
    }

    .services-cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .services-cta-buttons .btn {
        min-width: 100%;
        width: 100%;
    }

    .project-card-full,
    .project-card {
        margin-bottom: 1rem;
    }

    .projects-cta {
        padding: 2rem 1.5rem;
        margin-top: 3rem;
    }

    .projects-cta-title {
        font-size: 1.5rem;
    }

    .projects-cta-text {
        font-size: 1rem;
    }

    .projects-cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .projects-cta-buttons .btn {
        min-width: 100%;
        width: 100%;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mission-vision-card {
        padding: 2rem 1.5rem;
    }

    .mission-vision-icon {
        font-size: 2.5rem;
    }

    .mission-vision-title {
        font-size: 1.5rem;
    }

    .values-grid-extended {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .value-card {
        padding: 1.5rem;
    }
}

/* Hero Section from index2.html - Integrated Design */
.hero-section-index2 {
    position: relative;
    width: 100%;
    padding-top: 0;
    background: var(--white);
    overflow: hidden;
}

.hero-section-index2 .hero-grid {
    position: relative;
    z-index: 1;
}

.hero-section-index2 .container {
    position: relative;
    z-index: 2;
}

/* Ensure overflow-hidden works with Tailwind classes */
.overflow-hidden {
    overflow: hidden;
}

/* Ensure Tailwind transform classes work */
.transform {
    transform: translateZ(0);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-700 {
    transition-duration: 700ms;
}

