/* Responsive Design */

/* Tablet and Mobile Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .productos {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .producto {
        flex: 1 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
        min-width: 250px;
        margin: 0;
        padding: 40px 15px 20px;
        font-size: 14px;
    }

    .producto h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .producto p {
        font-size: 13px;
        line-height: 1.3;
    }

    .modal-content {
        width: 95%;
        max-width: 450px;
        margin: 10% auto;
        padding: 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    #chat-window {
        width: 85vw;
        max-width: 300px;
        height: 60vh;
        max-height: 400px;
        bottom: 70px;
        right: 5vw;
    }

    /* Mobile Navigation */
    .navbar .container {
        padding: 10px 15px;
        max-width: 100%;
        width: 70%;
        margin: 0 auto;
    }

    .navbar-toggle {
        display: flex !important;
    }

    .navbar ul {
        position: absolute;
        top: 100%;
        left: 5%;
        width: 90%;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        display: block !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        border-radius: 0 0 12px 12px;
        z-index: 999;
        opacity: 0;
    }

    .navbar ul.active {
        max-height: 500px;
        opacity: 1;
    }

    .navbar li {
        margin: 0;
        border-bottom: 1px solid rgba(0,123,255,0.1);
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .navbar ul.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .navbar li:nth-child(1) { transition-delay: 0.1s; }
    .navbar li:nth-child(2) { transition-delay: 0.15s; }
    .navbar li:nth-child(3) { transition-delay: 0.2s; }
    .navbar li:nth-child(4) { transition-delay: 0.25s; }
    .navbar li:nth-child(5) { transition-delay: 0.3s; }
    .navbar li:nth-child(6) { transition-delay: 0.35s; }

    .navbar a {
        display: block;
        padding: 20px 30px;
        text-align: center;
        transition: all 0.3s ease;
    }

    .navbar a:hover {
        background: rgba(0,123,255,0.05);
        transform: translateX(5px);
    }
}

/* Mobile Only Styles */
@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }

    section {
        padding: 40px 0;
    }

    .producto {
        margin: 15px;
        padding: 50px 15px 25px;
    }

    .testimonio {
        padding: 25px 15px;
    }

    .modal-content {
        margin: 10% auto;
        padding: 15px;
    }

    .form-row {
        gap: 10px;
    }

    #chat-window {
        width: 95vw;
        height: 80vh;
        bottom: 70px;
        right: 2.5vw;
    }

    #chat-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
