:root {
    --color-primary: #16a34a;
    --color-primary-dark: #15803d;
    --color-black: #111827;
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
    color: var(--color-gray-900);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    z-index: 50;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: left;
    gap: 0.5rem;
    text-decoration: none;
    margin-right: auto;
    width: 90vw;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    z-index: 50;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    transform: scale(1.8);
    align-items: left;
    gap: 0.5rem;
    text-decoration: none;
    margin-right: auto;
    padding-left: 2cm;
}

.logo img {
    max-width: 100%;
    height: auto;
}


.desktop-menu {
    display: none;
}

@media (min-width: 768px) {

    .logo {
        max-width: 200px;
    }

    .desktop-menu {
        display: flex;
        gap: 2rem;
    }

    .desktop-menu a {
        color: var(--color-gray-600);
        text-decoration: none;
        transition: color 0.2s;
    }

    .desktop-menu a:hover {
        color: var(--color-primary);
    }

    .mobile-menu {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: relative;
}

.menu-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-gray-600);
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-gray-600);
    transition: transform 0.2s;
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    bottom: -6px;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-white);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
}

.mobile-menu:hover .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav a {
    color: var(--color-gray-600);
    text-decoration: none;
    padding: 0.5rem;
    transition: color 0.2s;
}

.mobile-nav a:hover {
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    padding-top: 5rem;
    background: linear-gradient(to bottom right, var(--color-gray-50), #dcfce7);
}

.hero-content {
    padding: 4rem 0;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-gray-600);
    margin-bottom: 2rem;
    text-shadow: 0 0 10px var(--color-primary), 0 0 20px rgb(4, 212, 15), 0 0 30px rgb(65, 219, 19);
    color: var(--color-gray-900);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background: var(--color-primary-dark);
}

.chevron-down {
    margin-left: 0.5rem;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 500px;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    flex-wrap: nowrap;
    width: 300%;
    /* Ajusta el ancho del contenedor para que se muestren todas las imágenes */
    height: 500px;
    overflow: hidden;
    transition: transform 0.5s ease-in-out;
    /* Agrega una transición suave a la propiedad transform */
    width: 500%;
}

.carousel-container img {
    height: 100%;
    width: calc(100%/15);
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-color 0.2s;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.7);
}

#prev {
    left: 1rem;
}

#next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background: var(--color-white);
}

.services h2 {
    text-align: center;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 3rem;
}

.services-content {
    max-width: 48rem;
    margin: 0 auto;
}

.services-content p {
    margin-bottom: 1.5rem;
    color: var(--color-gray-600);
}

.services-content ul {
    list-style-type: none;
    padding: 0;
}

.services-content li {
    padding: 0.5rem 0;
    color: var(--color-gray-600);
    position: relative;
    padding-left: 1.5rem;
}

.services-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* Benefits Section */
.benefits {
    position: relative;
    background-color: transparent;
}

.benefits::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../assets/Fondo\ celulosa.jpg);
    background-size: cover;
    background-position: center;
    opacity: 0.9;
    /* ajusta la opacidad de la imagen de fondo */
    z-index: -1;
    /* asegúrate de que el elemento pseudo esté detrás del contenido */
}

.benefits h2 {
    text-align: center;
    text-shadow: 0 0 10px var(--color-white);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-card#plagas {
    grid-column: 1/4;
    margin-bottom: 3rem;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 2rem;
    height: 2rem;
    margin-right: 1cm;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: var(--color-gray-600);
}

@media (max-width: 768px) {
    .benefits-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* About Section */
.about {
    padding: 4rem 0;
    background: var(--color-gray-50);
}

.about h2 {
    text-align: center;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 2rem;
}

.about-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    color: var(--color-gray-600);
    font-size: 1.125rem;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: var(--color-white);
}

.contact h2 {
    text-align: center;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 32rem;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 0.375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.submit-button {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background: var(--color-primary-dark);
}

.send-icon {
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 19l9 2-9-18-9 18 9-2zm0 0v-8'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
}

/* Footer */
.footer {
    background: var(--color-gray-900);
    color: var(--color-white);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--color-gray-400);
}

.footer-contact a{
    color: inherit;
    text-decoration:none;
}


.social-icons {
    display: flex;
    gap: 4rem;
}

.social-icon {
    width: 24px;
    height: 24px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.social-icon:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid var(--color-gray-800);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-gray-400);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        padding-right: 1cm;
        margin-bottom: 1cm;
        justify-content: center;
    }
}

.form-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745; /* Verde para éxito, cámbialo con JS si es error */
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    display: none; /* Oculto por defecto */
    transition: opacity 0.3s ease-in-out;
}
.form-message.error {
    background-color: #dc3545; /* Rojo para error */
}