/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #76C043; /* Verde brillante del logo */
    --secondary-color: #A4D65E; /* Verde lima suave */
    --text-color: #1D1D1B; /* Negro profundo como en el texto del logo */
    --light-color: #F5F5F5; /* Gris neutro claro */
    --dark-color: #1D1D1B; /* Negro profundo */
    --accent-color: #A4D65E; /* Azul petróleo como complementario */
    --border-color: #e0e0e0;
    --header-bg: #ffffff; /* Fondo blanco para que el logo destaque */
}

/* Optimización responsive general */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

section {
    padding: 80px 0;
}

/* Botones */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Header y navegación */
header {
    background-color: var(--header-bg);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Menú Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Sección Hero con Video de Fondo */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 90px;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Oscurece el video para que el texto sea legible */
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Sección Nuestra Historia */
.about {
    background-color: var(--light-color);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.about p {
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto 20px;
    text-align: center;
}

/* Slider de Productos */
.products-slider {
    padding: 100px 20px; /* Más espacio vertical */

}

.products-slider h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.slider-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 40px 0;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center; /* Asegura que la imagen se centre correctamente */
    transition: transform 0.5s ease; /* Añade una transición suave */
}

.slide:hover img {
    transform: scale(1.05); /* Ligero efecto de zoom al pasar el ratón */
}

/* Estilo de fondo para la slide-content */
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(29, 29, 27, 0.8); /* Color oscuro del logo con transparencia */
    color: white;
    padding: 20px;
}

.slide-content h3 {
    font-size: 1.8rem;
    color: white;
}

.slide-content p {
    font-size: 1.1rem;
}

.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Ajustando los puntos de navegación del slider */
.slider-dot.active {
    background-color: var(--primary-color);
    width: 14px;
    height: 14px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 5px rgba(118, 192, 67, 0.5);
    transform: none; /* Eliminamos la transformación que puede causar problemas */
}

/* Corrigiendo las clases de las flechas de navegación */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background-color: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* Catálogo de Productos Slider */
.catalog-slider-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 40px 0;
}

.catalog-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.catalog-slide {
    min-width: 100%;
    position: relative;
}

.catalog-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
}

@media screen and (max-width: 767px) {
    .catalog-cards {
        flex-direction: column;
    }
}

.catalog-prev,
.catalog-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.catalog-prev:hover,
.catalog-next:hover {
    background-color: white;
}

.catalog-prev {
    left: 20px;
}

.catalog-next {
    right: 20px;
}

.catalog-nav {
    margin-top: 20px;
}

/* Sección Productos */
.products {
    padding: 100px 0; /* Más espacio vertical */
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease; /* Añade una transición suave */
}

.product-card:hover img {
    transform: scale(1.05); /* Ligero efecto de zoom al pasar el ratón */
}

.product-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-card p {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.product-card p:last-child {
    margin-bottom: 0;
}

.note {
    text-align: center;
    font-style: italic;
    color: #666;
}

/* Sección Ventajas */
.features {
    background-color: #eaf0e5; /* Fondo verde claro que combina con los verdes del logo */
    padding: 80px 0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    background-color: white;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

/* Ajustando los íconos de características */
.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Sección Contacto */
.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-details h3,
.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-details p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-details i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: inline-block;
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.footer-links h3,
.footer-social h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: white;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .container {
        width: 95%;
    }
    
    .slide img {
        height: 450px;
    }
}

@media screen and (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slide img {
        height: 400px;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    nav {
        position: fixed;
        top: -100vh;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 0;
        background-color: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transition: all 0.3s ease-in-out;
        z-index: 1000;
        overflow: hidden;
    }
    
    nav.active {
        top: 90px;
        max-height: 80vh;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    nav ul li {
        margin: 15px 0;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 10px 0;
        font-size: 1.2rem;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Hero section responsive */
    .hero {
        height: auto;
        min-height: 60vh;
        padding: 120px 0 80px;
        margin-top: 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }
    
    /* Slider responsive */
    .slide img {
        height: 350px;
    }
    
    /* Catálogo responsive */
    .catalog-cards {
        flex-direction: column;
        gap: 20px;
    }
    
    .product-card {
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Features grid responsive */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Contacto responsive */
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    section {
        padding: 50px 0;
    }

    h2 {
        font-size: 1.8rem !important;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 13px;
    }
    
    .container {
        width: 90%;
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .slide img {
        height: 280px;
    }
    
    .slide-content h3 {
        font-size: 1.5rem;
    }
    
    .product-card img {
        height: 180px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    h2 {
        font-size: 1.6rem !important;
        margin-bottom: 25px;
    }
}