/* =========================================
   NAVEGACIÓN: MENÚ AMPLIADO
   ========================================= */
@media (max-width: 1180px) {

    .header-container {
        position: relative;
    }

    .navbar {
        position: fixed;
        top: 88px;
        left: 0;
        width: 100%;
        display: none;
        padding: 24px 4%;
        background: rgba(17, 17, 17, .98);
        border-top: 1px solid rgba(255, 255, 255, .06);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    }

    .navbar.active,
    .navbar.is-open {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 22px;
    }

    .header-container > .btn-primary {
        display: none;
    }

    .menu-toggle {
        display: flex;
        padding: 8px;
        background: transparent;
        border: 0;
    }
}

/* =========================================
   TABLET Y NOTEBOOK PEQUEÑO
   ========================================= */
@media (max-width: 992px) {

    /* Header */
    .header-container {
        position: relative;
    }

    .navbar {
        position: fixed;
        top: 88px;
        left: 0;
        width: 100%;
        display: none;
        padding: 24px 4%;
        background: rgba(17, 17, 17, .98);
        border-top: 1px solid rgba(255, 255, 255, .06);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    }

    .navbar.active,
    .navbar.is-open {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 22px;
    }

    .header-container > .btn-primary {
        display: none;
    }

    .menu-toggle {
        display: flex;
        padding: 8px;
        background: transparent;
        border: 0;
    }

    .logo img {
        height: 42px;
    }

    /* Hero */
    .hero {
        min-height: auto;
        height: auto;
        padding: 138px 0 80px;
        background-position: center;
    }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, .74) 0%,
            rgba(0, 0, 0, .48) 48%,
            rgba(0, 0, 0, .64) 100%
        );
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        min-height: auto;
    }

    .hero-content {
        max-width: 680px;
        margin-top: 0;
    }

    .hero h1 {
        max-width: 620px;
        font-size: 30px;
        line-height: 1.15;
    }

    .hero p {
        max-width: 580px;
        font-size: 15px;
        margin-bottom: 32px;
    }

    .hero-buttons {
        flex-wrap: wrap;
        margin-bottom: 44px;
    }

    .hero-buttons .btn-primary,
    .cta-project-content .btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
        max-width: 520px;
        margin: 0;
    }

    .hero-stats div {
        width: 100%;
        height: 90px;
    }

    .hero-slider {
        position: relative;
        height: auto;
        margin-top: 0;
    }

    .slider {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .slide-info {
        left: 24px;
        right: auto;
        bottom: 54px;
        width: min(340px, calc(100% - 48px));
        padding: 16px;
    }

    .slide-info h3 {
        margin: 8px 0 14px;
        font-size: 22px;
    }

    .slider-dots {
        left: 50%;
        bottom: 20px;
        gap: 14px;
    }

    /* Servicios */
    .services {
        padding: 80px 0 40px;
    }

    .services-header {
        align-items: flex-start;
        gap: 28px;
        margin-bottom: 42px;
    }

    .services-title {
        font-size: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card {
        min-height: 400px;
    }

    /* CTA */
    .cta-project {
        padding: 70px 0 90px;
    }

    .cta-project-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .cta-project-content {
        padding: 48px;
    }

    .cta-project-image {
        height: 360px;
    }

    /* Footer */
    .footer {
        padding-top: 70px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 46px;
    }
}

/* =========================================
   TELÉFONO MÓVIL
   ========================================= */
@media (max-width: 768px) {

    .hero {
        padding: 124px 0 64px;
    }

    .hero-container {
        gap: 38px;
    }

    .hero-subtitle {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .hero h1 {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .hero-buttons {
        gap: 12px;
    }

    .hero-stats h2 {
        font-size: 30px;
    }

    .hero-stats span {
        font-size: 12px;
    }

    .slider {
        aspect-ratio: 4 / 3;
        border-radius: 18px;
    }

    .slide-info {
        left: 16px;
        bottom: 52px;
        width: calc(100% - 32px);
        padding: 14px;
    }

    .slide-info h3 {
        font-size: 20px;
    }

    .slide-info a {
        padding: 9px 16px;
    }

    .services-header {
        flex-direction: column;
        margin-bottom: 34px;
    }

    .services-title {
        font-size: 34px;
    }

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

    .service-card {
        min-height: 0;
    }

    .service-card img {
        height: 280px;
    }

    .cta-project-content {
        padding: 38px 30px;
    }

    .cta-project-content h2 {
        font-size: 34px;
    }

    .cta-project-image {
        height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 38px;
        margin-bottom: 46px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px 24px;
    }

    .whatsapp-float {
        right: 18px;
        bottom: 18px;
        width: 56px;
        height: 56px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* =========================================
   TELÉFONO PEQUEÑO
   ========================================= */
@media (max-width: 480px) {

    .navbar {
        padding: 22px 20px;
    }

    .hero {
        padding: 116px 0 56px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .hero-stats {
        gap: 6px;
    }

    .hero-stats div {
        height: 82px;
        padding: 8px 4px;
    }

    .hero-stats h2 {
        font-size: 26px;
        margin-bottom: 7px;
    }

    .hero-stats span {
        font-size: 10px;
    }

    .slider {
        aspect-ratio: 5 / 4;
    }

    .slide-info {
        bottom: 48px;
    }

    .slide-info span {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .slide-info h3 {
        margin: 6px 0 10px;
        font-size: 18px;
    }

    .slide-info a {
        padding: 8px 14px;
        font-size: 13px;
    }

    .slider-dots {
        bottom: 16px;
        gap: 11px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .services {
        padding-top: 64px;
    }

    .services-title {
        font-size: 30px;
    }

    .service-card img {
        height: 220px;
    }

    .cta-project {
        padding: 56px 0 72px;
    }

    .cta-project-content {
        padding: 30px 22px;
    }

    .cta-project-content h2 {
        font-size: 28px;
    }

    .cta-project-content .btn-primary {
        width: 100%;
    }

    .cta-project-image {
        height: 230px;
    }

    .footer {
        padding: 58px 0 26px;
    }

    .footer-column h3 {
        font-size: 21px;
        margin-bottom: 18px;
    }

    .footer-column p,
    .footer-column li {
        font-size: 14px;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        width: 52px;
        height: 52px;
    }
}
