/* ============================================================
   responsive.css — BitBox360 Landing Page
   Media queries for all breakpoints
   ============================================================ */

/* ============================================================
   BREAKPOINTS
   --bp-xl:   1280px  (large desktop)
   --bp-lg:   1024px  (laptop)
   --bp-md:    768px  (tablet)
   --bp-sm:    640px  (large mobile)
   --bp-xs:    400px  (small mobile)
   ============================================================ */


/* ============================================================
   LARGE DESKTOP (≥ 1280px) — minor tweaks only
   ============================================================ */
@media (min-width: 1280px) {
  .hero__title { font-size: 5rem; }
}


/* ============================================================
   LAPTOP (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {

  :root {
    --section-pad-v: 5rem;
  }

  /* Hero */
  .hero__title { font-size: 3.5rem; }

  /* Services grid → 2 columns */
  .servicios__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Why Us → stack */
  .whyus__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .whyus__visual {
    min-height: 280px;
  }

  /* CTA → stack */
  .contacto__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contacto__deco {
    min-height: 260px;
  }

  .contacto__deco-ring--3 {
    width: 360px;
    height: 360px;
  }
}


/* ============================================================
   TABLET (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

  :root {
    --section-pad-v: 4rem;
    --navbar-height: 64px;
  }

  .container {
    padding: 0 1.5rem;
  }

  /* Navbar — mobile menu */
  .navbar__links {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(248,249,251,.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    gap: 0.25rem;
    margin-left: 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .navbar__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .navbar__link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--text-color) !important;
    background: none !important;
  }

  .navbar__link:hover {
    background: rgba(44,62,80,.06) !important;
    color: var(--text-color) !important;
  }

  .navbar__cta {
    display: none;
  }

  .navbar__toggle {
    display: flex;
  }

  /* Even when scrolled — use dark for toggle spans */
  .navbar:not(.scrolled) .navbar__toggle span {
    background: #fff;
  }

  /* Hero */
  .hero__content {
    padding: 3rem 0 4rem;
  }

  .hero__title {
    font-size: 2.75rem;
    letter-spacing: -.015em;
  }

  .hero__subtitle {
    font-size: 1.0625rem;
  }

  .hero__actions {
    gap: 0.75rem;
  }

  .hero__stats {
    gap: 1.5rem;
  }

  /* Services → 1 column */
  .servicios__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  /* Section titles */
  .section-title {
    font-size: 2rem;
  }

  .contacto__title {
    font-size: 2rem;
  }

  /* Floating cards on why us */
  .whyus__floating-card {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    animation: none;
  }

  .whyus__card-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .whyus__visual {
    min-height: auto;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer__nav ul {
    gap: 1.5rem;
  }
}


/* ============================================================
   LARGE MOBILE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {

  :root {
    --section-pad-v: 3.5rem;
  }

  /* Hide inline break on mobile */
  .hide-mobile { display: none; }

  /* Hero */
  .hero__title {
    font-size: 2.25rem;
  }

  .hero__badge {
    font-size: 0.6875rem;
  }

  .hero__stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero__stat-divider {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* CTA channels */
  .contacto__channel {
    padding: 0.875rem 1rem;
  }

  .contacto__deco {
    display: none; /* Hide decorative rings on small screens */
  }

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

  /* Section */
  .section-title {
    font-size: 1.75rem;
  }

  .contacto__title {
    font-size: 1.875rem;
  }

  /* Card padding */
  .card {
    padding: 2rem;
  }
}


/* ============================================================
   SMALL MOBILE (≤ 400px)
   ============================================================ */
@media (max-width: 400px) {

  :root {
    --navbar-height: 60px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .btn {
    font-size: 0.8125rem;
    padding: 0.625rem 1.25rem;
  }
}


/* ============================================================
   HOVER MEDIA QUERY — only apply hover effects on devices
   that support hover (not touch-only)
   ============================================================ */
@media (hover: none) {
  .card:hover {
    transform: none;
    box-shadow: none;
  }

  .contacto__channel:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }
}
