/* =========================================================
   RESPONSIVE.CSS
   Todos los breakpoints del sitio MCamposPro, de mayor a menor.
   Se carga después de style.css para poder sobreescribirlo.
   ========================================================= */

/* ---------- Tablets grandes / laptops pequeños (≤ 1100px) ---------- */
@media (max-width:1100px){
  .hero__copy h1{ font-size:2.35rem; }
  .services{ padding:4rem 1.6rem 2rem; }
  .carousel__arrow--left{ left:-24px; }
  .carousel__arrow--right{ right:-24px; }
}

/* ---------- Tablets (≤ 960px) ---------- */
@media (max-width:960px){
  .hero__inner{ grid-template-columns:1fr; text-align:center; }
  .hero__copy p{ margin-inline:auto; }
  .hero__art{ margin-top:1rem; }
  .carousel__track{ grid-auto-columns:calc((100% - 1.5rem) / 2); }
  .carousel__arrow{ width:40px; height:40px; left:-24px; right:auto; }
  .carousel__arrow--right{ left:auto; right:-24px; }
  .reach__card{ grid-template-columns:1fr; }
  .reach__img{ height:260px; }
  .modal__box{ max-width:88vw; }
  .inner-hero h1{ font-size:1.7rem; }
  .portfolio__filters{ grid-template-columns:repeat(2, 1fr); border-radius:16px; }
  .contact__grid{ grid-template-columns:1fr; }
  .contact__info{ border-left:none; border-top:1px solid #eee; padding-left:0; padding-top:1.6rem; }
  .contact__form{ grid-template-columns:1fr; }
  .contact__form .field--full,
  .contact__form .cf{ grid-column:auto; }
  .site-footer__inner{ grid-template-columns:1fr 1fr; }
}

/* ---------- Tablets pequeñas / móviles grandes (≤ 760px) ---------- */
@media (max-width:760px){
  .navbar__inner{ padding:0 1.4rem; }
  .navbar__right{ gap:0.8rem; }
  .topline__inner{ padding:0 1.4rem; justify-content:center; text-align:center; }
  .topline__contact{ gap:0.9rem; }
  .hero{ padding:3.5rem 0 3.5rem; }
  .hero__inner{ padding:0 1.4rem; gap:2rem; }
  .highlight__inner{ flex-direction:column; text-align:center; }
  .cta__inner{ flex-direction:column; text-align:center; }
  .carousel__arrow{ width:36px; height:36px; left:-22px; right:auto; }
  .carousel__arrow--right{ left:auto; right:-22px; }

  /* El modal pasa a una sola columna: imagen arriba, texto abajo */
  .modal__box{
    grid-template-columns:1fr;
    padding:1.8rem;
    max-width:92vw;
    max-height:90vh;
  }
  .modal__content{ order:2; }
  .modal__media{ order:1; height:200px; min-height:0; }
  .contact__grid{ padding:1.6rem; }
}

/* ---------- Móviles (≤ 600px) ---------- */
@media (max-width:600px){
  .hero__copy h1{ font-size:2rem; }
  .topline{ padding:0.5rem 0; font-size:0.72rem; }
  .topline__inner{ padding:0 1.2rem; gap:0.4rem 0.8rem; }
  .topline__phone{ display:none; } /* en mobile solo se muestra el correo, como en la referencia */
  .navbar{ padding:0.85rem 0; }
  .navbar__inner{ padding:0 1.2rem; }
  .navbar__right{ gap:0.6rem; }
  .logo{ height:46px; }
  .services{ padding:3rem 1.2rem 1.5rem; }
  .services__intro h2{ font-size:1.6rem; }
  .carousel__track{ grid-auto-columns:88%; }
  .carousel__arrow{ width:32px; height:32px; left:-12px; right:auto; }
  .carousel__arrow--right{ left:auto; right:-12px; }
  .highlight, .reach{ padding-left:1.2rem; padding-right:1.2rem; }
  .cta__inner{ padding:1.4rem 1.2rem; }
  .highlight__inner{ padding:1.6rem; }
  .reach__card{ padding:1.1rem; }
  .reach__img{ height:200px; }
  .portfolio, .techstack, .blog, .contact, .logos{ padding-left:1.2rem; padding-right:1.2rem; }
  .portfolio__img{ height:230px; }
  .logo-badge{ width:96px; height:52px; }
  .techstack__grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); gap:1rem; }
  .tech-card__icon{ max-width:100%; height:100px; }
  .tech-card__icon img{ max-width:100%; max-height:100%; width:auto; height:auto; }
  .portfolio__filters{ grid-template-columns:1fr 1fr; padding:0.7rem; }
  .filter-pill{ font-size:0.82rem; padding:0.6rem 0.5rem; }
  .site-footer__inner{ grid-template-columns:1fr; text-align:left; }
  .footer-col a, .footer-col span{ margin-bottom:0.5rem; }
  .bottombar__inner{ flex-direction:column; text-align:center; }
  .inner-hero{ padding:1.8rem 0 2.2rem; }
  .inner-hero h1{ font-size:1.5rem; }
  .breadcrumbs{ font-size:0.78rem; }
}

/* ---------- Móviles pequeños (≤ 400px) ---------- */
@media (max-width:400px){
  .hero__copy h1{ font-size:1.7rem; }
  .btn{ padding:0.65rem 1.4rem; font-size:0.88rem; }
  .card h3{ font-size:1.2rem; }
  .modal__box{ padding:1.4rem; }
  .modal__box.is-gallery .modal__media{ min-height:280px; }
  .back-to-top{ right:1rem; bottom:1rem; width:42px; height:42px; font-size:0.95rem; }
}

/* ---------- Accesibilidad: movimiento reducido ---------- */
@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}


/* octubre — INICIO: responsive de las secciones CTA promocionales */
@media (max-width:960px){
  .cta-promo__card{ padding:2.4rem 2rem; min-height:320px; }
  .cta-promo__content h2{ font-size:1.9rem; }
  .cta-promo__card::after{
    background:linear-gradient(90deg, rgba(11,15,35,0.94) 0%, rgba(11,15,35,0.70) 100%);
  }
}
@media (max-width:600px){
  .cta-promo{ padding:0 1.2rem; }
  .cta-promo__card{ padding:2rem 1.4rem; min-height:0; border-radius:18px; }
  .cta-promo__content h2{ font-size:1.5rem; }
  .cta-promo__actions .btn{ flex:1 1 100%; }
}
/* octubre — FIN: responsive CTA promocionales */


/* octubre — INICIO: páginas legales (Privacy / Terms / Cookies) */
@media (max-width:600px){
  .legal{ padding:2rem 1.2rem 2.5rem; }
  .legal h2{ font-size:1.1rem; }
}
/* octubre — FIN: páginas legales */


/* octubre — INICIO: blog (interna de cada artículo + sidebar) */
@media (max-width:960px){
  .post-layout{ grid-template-columns:1fr; padding:2.4rem 1.6rem 3rem; }
  .post-sidebar{ position:static; }
}
@media (max-width:600px){
  .post-layout{ padding:2rem 1.2rem 2.5rem; gap:2rem; }
  .post__content h2{ font-size:1.2rem; }
  .post-nav{ grid-template-columns:1fr; }
  .post-nav__item--next{ text-align:left; }
  .post-nav__item--next small{ justify-content:flex-start; }
}
/* octubre — FIN: blog */
