/* ===================================================
   MAC OS SOPORTE V2.2 — RESPONSIVE
   Breakpoints: 1100px | 900px | 768px | 480px
   ================================================ */
   

/* ── Tablet landscape ── */
@media (max-width: 1100px) {

    .hero-text h1 { font-size: 50px; }

    .solutions-grid,
    .sectors-grid,
    .stats-grid,
    .values-grid,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .cta-band { padding: 60px 30px; }
}

/* ── Tablet portrait / nav móvil ── */
@media (max-width: 900px) {

    .navbar {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: 0.35s;
        border-bottom: 1px solid var(--border);
        z-index: 998;
    }

    .navbar.open { max-height: 400px; }

    .navbar ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 6%;
    }

    .navbar ul li { border-top: 1px solid var(--border); }

    .navbar a { display: block; padding: 18px 0; }

    .nav-toggle { display: flex; }

    .btn-header { display: none; }

    .hero {
        padding-top: 150px;
        min-height: auto;
    }

    .hero-content,
    .solution-block,
    .solution-block.reverse,
    .story-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .story-grid {
        gap: 32px !important;
        padding: 32px 24px !important;
        box-shadow: 4px 4px 0 #0f172a !important;
    }

    .story-visual {
        height: auto !important;
        min-height: 240px;
    }

    .story-visual img {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        max-width: 280px !important;
        object-fit: contain !important;
    }

    .solution-block { padding: 60px 0; }

    .hero-image { order: -1; }

    .hero-text h1 { font-size: 40px; }

    .hero-buttons { flex-direction: column; }

    .hero-buttons a { text-align: center; }

    .page-hero { padding: 150px 0 60px; }

    .page-hero h1 { font-size: 36px; }

    .cards,
    .solutions-grid,
    .sectors-grid,
    .stats-grid,
    .values-grid,
    .cases-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-us-section { padding: 60px 0; }

    .why-us-header { margin-bottom: 40px; }

    .section-title { font-size: 32px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: left;
    }

    .form-row { grid-template-columns: 1fr; }

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

    .integral-banner {
        flex-direction: column;
        text-align: center;
        padding: 32px 26px;
    }

    .gradient-text { white-space: normal !important; }

    .hero-badge-tag {
        white-space: normal;
        font-size: 22px;
    }
}

/* ── Móvil ── */
@media (max-width: 768px) {

    .footer-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 45px;
    }

    .footer-links-mid {
        margin-left: 0;
        margin-top: 0;
        gap: 50px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-grid > div:last-child { margin-top: 0; }

    .footer-brand {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .footer-social { justify-content: center; }

    .solution-block {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .solution-block.reverse { direction: ltr !important; }

    .solution-visual {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .solution-visual img {
        width: 100% !important;
        height: auto !important;
        display: block;
        object-fit: contain !important;
    }

    .solution-visual img.img-escalada {
        transform: none;
        width: 100%;
    }

    .modes-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        margin-bottom: 60px !important;
    }

    .mode-tile {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .steps-container,
    .process-steps,
    .steps {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }

    .steps-container span,
    .process-steps span,
    .steps span,
    .arrow { display: none !important; }

    .founder-section .container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .founder-title { font-size: 36px; }

    .founder-image { height: auto; }

    .gallery-track img,
    .gallery-item,
    .gallery-item img,
    .gallery-item video {
        width: 280px;
        height: 187px;
        flex: 0 0 280px;
    }

    .trade-in-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .trade-in-title { font-size: 32px; }

    .trade-in-description { font-size: 16px; }

    .trade-in-image { height: 300px; }

    .trade-in-text { padding: 0; }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content { max-width: 100%; }

    .hero h1 {
        font-size: 2.3rem;
        line-height: 1.15;
    }

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

    .hero-image img {
        width: 100%;
        max-width: 380px;
        height: auto;
        margin: auto;
        display: block;
    }

    .solutions-grid > .card-image {
        min-height: 200px;
    }

    .solutions-grid > .card-image img {
        min-height: 200px;
    }
}

/* ── Móvil pequeño ── */
@media (max-width: 480px) {

    .hero-text h1 { font-size: 32px; }

    .section-title,
    .section-title h2 { font-size: 28px; }

    .contact-form { padding: 28px; }

    .case-card { padding: 28px; }

    .why-card .card-image { height: 180px; }

    .why-card .card-content { padding: 20px; }

    .card-title { font-size: 16px; }

    .header .container { height: 90px; }

    .logo img { height: 70px; }

    .page-hero h1 { font-size: 28px; }

    .stats-grid { gap: 24px; }

    .stat-num { font-size: 32px; }
}
/* ============================================
   CENTRAR LOGO Y TEXTO EN FOOTER (MÓVIL)
   ============================================ */

@media (max-width: 768px) {
    .footer-brand {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .footer-brand .logo {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 6px !important;
    }

    .footer-brand .logo img {
        height: 80px !important;
        width: auto !important;
        max-width: 140px !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .footer-brand .logo-text {
        font-size: 18px !important;
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        color: white !important;
    }

    .footer-brand .logo-text span {
        font-size: 12px !important;
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        color: #98A2C0 !important;
    }

    .footer-brand p {
        text-align: center !important;
        max-width: 280px !important;
        margin: 18px auto 0 !important;
    }

    .footer-social {
        justify-content: center !important;
    }
}
@media (max-width: 768px) {
    .banner-expandido-section {
        display: block !important;
        /* Espacio moderado respecto al menú de hamburguesa */
        margin-top: 40px; 
        
        /* Espacio para que NO se empalme con el texto de abajo */
        margin-bottom: -10px; 
    }

    .banner-expandido-section img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
}
@media (max-width:900px){
    #apple .btn-primary,
    #apple .eyebrow,
    [id="soporte técnico"] .btn-primary,
    [id="soporte técnico"] .eyebrow,
    #windows .btn-primary,
    #windows .eyebrow,
    #infraestructura .btn-primary,
    #infraestructura .eyebrow,
    .trade-in-text .btn-primary{
        left:0;
    }
}

/* ── Banner: desactiva el jalón hacia arriba (pensado solo
   para escritorio completo) en todo el rango intermedio,
   para que nunca quede debajo del header ── */
@media (max-width: 1300px) {
    .banner-expandido-section {
        margin-top: 25px;
        margin-bottom: -40px;
    }
}
/* ===================================================
   CONTROL EXCLUSIVO DE BANNER POR RANGOS DE PANTALLA
   =================================================== */

/* 1. Pantallas medianas / Laptops pequeñas (901px a 1300px) */
@media screen and (min-width: 901px) and (max-width: 1300px) {
  .banner-expandido-section {
    margin-top: -25px !important;
    margin-bottom: -30px !important;
  }
}

/* 2. Tablets y pantallas como la tuya de 657px (481px a 900px) */
@media screen and (min-width: 481px) and (max-width: 900px) {
  .banner-expandido-section {
    display: block !important;
    margin-top: 25px !important; /* Quita el hueco blanco en los 657px */
    margin-bottom: -10px !important;
  }
}

/* 3. Celulares pequeños (0px a 480px) */
@media screen and (max-width: 480px) {
  .banner-expandido-section {
    display: block !important;
    margin-top: 50px !important; /* Espacio limpio para la hamburguesa móvil */
    margin-bottom: 0px !important;
  }
}
/* ===================================================
   TRANSICIÓN SUAVE GLOBAL PARA TODO EL SITIO
   =================================================== */
*, *::before, *::after {
  transition: 
    margin 0.3s ease-out,
    padding 0.3s ease-out,
    font-size 0.3s ease-out,
    gap 0.3s ease-out,
    width 0.3s ease-out,
    max-width 0.3s ease-out;
}
@media screen and (max-width: 768px) {

  /* 1. Permite que las tarjetas de CCTV crezcan sin recortar texto ni imagen */
  .card, 
  .service-card, 
  .container-reveal {
    height: auto !important;
    min-height: fit-content;
    overflow: visible !important;
  }

  .card img, 
  .service-card img {
    width: 100%;
    height: auto !important;
    object-fit: contain;
  }

  /* 2. Apila las tarjetas de evolución de Macs en una sola columna vertical */
  .evolution-section .grid-container,
  .history-cards, 
  .cards-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
  }

  .history-card, 
  .mac-card {
    width: 100% !important;
    height: auto !important;
    padding-bottom: 25px;
  }
}


