/* ==========================================================================
   RESPONSIVE MAESTRO: D&A SOFTWARE R
   Secciones: Navbar, Hero, Quick Services, Our Services, About, Portfolio
========================================================================== */

/* =========================================
   1. LAPTOPS Y PANTALLAS MEDIANAS (1200px)
========================================= */
@media (max-width: 1200px) {
    
    /* --- TÍTULOS GLOBALES --- */
    .hero-title,
    .os-main-title,
    .about-title-wrapper h2 {
        font-size: 3rem;
    }

    /* --- QUICK SERVICES --- */
    .services-cards {
        flex-wrap: wrap;
    }
    .card {
        flex: 1 1 30%;
    }
    .timeline {
        display: none;
    }

    /* --- OUR SERVICES --- */
    .os-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* --- ABOUT --- */
    .about-section {
        flex-direction: column;
    }
    .about-left {
        min-height: 400px;
        width: 100%;
        margin-bottom: 2rem;
    }
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* --- PORTFOLIO --- */
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================
   2. TABLETS (992px)
========================================= */
@media (max-width: 992px) {
    
    /* --- NAVBAR --- */
    .navbar {
        flex-direction: column;
        gap: 1.5rem;
    }
    .navbar-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    /* --- HERO --- */
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-description {
        max-width: 100%;
    }
    .hero-visual {
        width: 100%;
        min-height: 350px;
    }
    .hero-decorator {
        margin: 0 auto 2rem auto;
    }

    /* --- OUR SERVICES --- */
    .os-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* --- ABOUT --- */
    .about-title-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .about-description {
        text-align: center;
    }
    .about-features {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    /* --- PORTFOLIO --- */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   3. DISPOSITIVOS MÓVILES (768px)
========================================= */
@media (max-width: 768px) {
    
    /* --- AJUSTES GLOBALES MÓVILES --- */
    body {
        padding: 1.5rem;
    }
    main {
        gap: 4rem;
    }

    /* --- HERO --- */
    .hero-title,
    .about-title-wrapper h2,
    .portfolio-header h2 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .btn-primary, 
    .btn-secondary {
        justify-content: center;
        width: 100%;
    }

    /* --- QUICK SERVICES --- */
    .services-cards {
        flex-direction: column;
    }
    .card {
        flex: 1 1 100%;
    }

    /* --- OUR SERVICES --- */
    .os-grid {
        grid-template-columns: 1fr;
    }
    .os-main-title {
        font-size: 2.2rem;
    }
    .os-subtitle {
        font-size: 1rem;
    }
    .os-bottom-ornament .orn-line {
        display: none;
    }

    /* --- ABOUT --- */
    .about-floating-badge {
        position: relative;
        max-width: 100%;
        flex-direction: column;
        text-align: center;
    }
    .about-cards-container {
        padding-left: 0;
    }
    .about-timeline, 
    .card-timeline-dot {
        display: none;
    }
    .about-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .valores-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .about-features {
        flex-direction: column;
        width: 100%;
    }
    .feature-dot {
        display: none;
    }

    /* --- PORTFOLIO --- */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-decorator .p-dec-line {
        width: 40px;
    }
}
