/* Estilos base para el menú hamburguesa - OCULTO en desktop */
.menu-toggle {
    display: none;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: #2c5f2d;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Responsive para pantallas grandes */
@media (max-width: 1200px) {
    body {
        font-size: 14px;
    }

    header {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    .product-card {
        flex-basis: 45%;
        margin: 10px;
    }
}

/* Tablets */
@media (max-width: 968px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .features h2 {
        font-size: 2rem;
    }
}

/* Móviles - Menú Hamburguesa */
@media (max-width: 768px) {

    /* Mostrar botón hamburguesa */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
        gap: 5px;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Ocultar navegación por defecto */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    nav ul li a {
        display: block;
        padding: 20px 30px;
        color: #333;
        font-size: 16px;
    }

    nav ul li a:hover {
        background-color: #f8f8f8;
        color: #2c5f2d;
    }

    /* Overlay para cerrar el menú */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

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

    /* Ajustes hero responsive */
    .hero h1 {
        font-size: 2rem;
    }

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

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

    .product-card {
        flex-basis: 100%;
        margin: 5px 0;
    }
}

@media (max-width: 640px) {
    header .container {
        padding: 1rem;
    }

    .logo img {
        height: 60px;
    }

    .hero {
        padding: 5rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .features {
        padding: 2rem 1rem;
    }

    .features h2 {
        font-size: 1.75rem;
    }

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

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }

    .footer {
        font-size: 12px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    nav {
        width: 80%;
    }
}