/* ═══════════════════════════════════════════════════════════
   HOSTIBERI — Responsive / Mobile
   Breakpoints: 1440px (desktop) · 1100px (tablet) · 768px (móvil) · 480px (small)
   ═══════════════════════════════════════════════════════════ */

/* ── 1440px ESCRITORIO ──────────────────────────────────── */
@media (max-width: 1440px) {
  .nav-logo img { height: 50px; }
}

/* ── 1100px TABLET ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav { padding: 18px 32px; }

  .hero-inner { padding: 110px 32px 200px; }

  .sw { padding: 80px 32px; }

  footer { padding: 56px 32px 36px; }

  .fb1, .fb2 { display: none; }
}

/* ── 768px MÓVIL ────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Navegación */
  .nav { padding: 16px 24px; }

  .nav-logo img { height: 80px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    z-index: 199;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    padding: 88px 22px 40px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  [data-variant="b"] .nav-links {
    background: #081728;
  }
  .nav-links.open { display: flex; }
  .nav-links > a {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    padding: 15px 16px;
  }
  [data-variant="b"] .nav-links a { color: rgba(255,255,255,.85); }
  .nav-links .nav-cta {
    margin-top: 14px;
    font-size: 16px;
    padding: 15px 36px;
    text-align: center;
  }

  /* Hero */
  .hero-inner {
    padding: 100px 24px 160px;
  }
  .hero-r { display: none; }

  h1.htitle { font-size: clamp(36px, 9vw, 54px); }
  .hsub { font-size: 16px; max-width: 100%; }

  .hbtns { gap: 12px; }
  .btn-p { padding: 14px 28px; font-size: 14px; }
  .btn-g { padding: 12px 20px; font-size: 14px; }

  .hstats { padding-top: 28px; margin-top: 40px; }
  .sv { font-size: 28px; }
  .sl { font-size: 11px; }

  #wCanvas { height: 140px; }

  /* Secciones */
  .sw { padding: 64px 24px; }

  .stitle { font-size: clamp(26px, 6vw, 40px); }
  .ssub { font-size: 15px; margin-bottom: 40px; }

  /* Servicios */
  .scard { padding: 28px 24px; }

  /* Por qué */
  .rn { font-size: 40px; min-width: 48px; }

  /* Testimonios */
  .tcard { min-width: 300px; max-width: 300px; padding: 24px; }

  /* CTA */
  .cta { padding: 80px 24px; }
  .cta-in h2 { font-size: clamp(26px, 6vw, 40px); }
  .cta-in p  { font-size: 16px; margin-bottom: 32px; }
  .cbtns { flex-direction: column; align-items: center; }
  .btn-w, .btn-ow { width: 100%; max-width: 320px; text-align: center; padding: 14px 24px; }

  /* Footer */
  footer { padding: 48px 24px 32px; }
  .fbot { flex-direction: column; gap: 8px; text-align: center; }

  /* Switcher */
  #vsw { bottom: 14px; left: 14px; right: auto; padding: 4px 5px 4px 12px; }
  #vsw-label { display: none; }
  .vsw-b { padding: 6px 12px; font-size: 11px; }
}

/* ── 480px PEQUEÑO ──────────────────────────────────────── */
@media (max-width: 480px) {
  .hbtns {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-p, .btn-g {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .mv { font-size: 34px; }
  .metric { padding: 22px 16px; }

  .scard { padding: 24px 20px; }

  .tcard { min-width: 270px; max-width: 270px; }

  .reason { gap: 16px; }
  .rn { font-size: 34px; min-width: 42px; }

  .stag { font-size: 10px; }
}

/* ── DARK VARIANT MOBILE TWEAKS ──────────────────────────── */
@media (max-width: 768px) {
  [data-variant="b"] .nav-toggle span { background: #fff; }
}

/* ── INTERIOR PAGES RESPONSIVE ──────────────────────────────── */

@media (max-width: 1100px) {
  .page-hero { padding: 130px 32px 64px; }
  .blog-feat-img { min-height: 220px; }
  .article-header { padding: 140px 32px 64px; }
}

@media (max-width: 768px) {
  /* Nav dropdown mobile */
  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid rgba(26,122,140,.08);
  }
  [data-variant="b"] .nav-item { border-color: rgba(76,191,160,.1); }
  /* trigger row: link grows, chevron is a big tap target */
  .nav-item > a {
    flex: 1;
    justify-content: flex-start;
    font-size: 20px; font-weight: 600;
    padding: 15px 56px 15px 16px;
  }
  .nav-item > a .arr { display: none; }
  .nav-item .nav-arr-btn {
    display: flex; align-items: center; justify-content: center;
    position: absolute; right: 0; top: 0;
    width: 56px; height: 56px;
    margin: 0; padding: 0; font-size: 15px;
  }
  /* anchor the chevron to the row */
  .nav-item { position: relative; }
  .nav-drop {
    position: static;
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: none; box-shadow: none;
    background: transparent; display: none;
    padding: 2px 0 10px; min-width: auto;
    width: 100%;
  }
  .nav-item.open .nav-drop { display: block; }
  .nav-drop a {
    font-size: 15px; padding: 12px 4px 12px 16px;
    color: var(--mid); font-weight: 500;
    border-bottom: 1px solid rgba(26,122,140,.06);
    border-radius: 0; text-align: left;
    white-space: normal;
  }
  .nav-drop a:last-child { border-bottom: none; }
  .nav-drop .drop-all { border-bottom: 1px solid rgba(26,122,140,.12); }
  [data-variant="b"] .nav-drop a { border-color: rgba(76,191,160,.08); color: rgba(255,255,255,.7); }

  /* Page hero */
  .page-hero { padding: 110px 24px 52px; }
  .page-hero h1 { font-size: clamp(28px, 7vw, 42px); }
  .page-hero p  { font-size: 15px; }

  /* Breadcrumb */
  .breadcrumb { font-size: 12px; }

  /* Contact */
  .btn-submit { width: 100%; text-align: center; justify-content: center; }

  /* Services */
  .svc-big-card { padding: 28px 24px; }

  /* Service detail */
  .process-steps::before { display: none; }

  /* Blog */
  .blog-cats { gap: 8px; }
  .blog-cat  { padding: 6px 14px; font-size: 12px; }
  .blog-feat-img { min-height: 200px; }
  .blog-feat-body { padding: 24px; }

  /* Article */
  .article-header { padding: 120px 24px 48px; }
  .article-header .ameta { flex-wrap: wrap; gap: 10px; }
  .article-sidebar { position: static; }
  .article-content { font-size: 15px; }
}

@media (max-width: 1100px) {
  .port-feat-visual { min-height: 240px; }
}

@media (max-width: 768px) {
  .port-feat-body { padding: 28px 24px; }
}

/* ── HOSTING PLANS ────────────────────────────────────────── */
@media (max-width: 1200px) {
  .plan-for { min-height: 0; }
}
@media (max-width: 768px) {
  .plan { padding: 26px 22px 28px; }
  .plan-switch { display: flex; width: 100%; }
  .plan-switch button { flex: 1; padding: 13px 10px; font-size: 13.5px; }
  .plan-tag { left: 22px; }
}

/* ── QUIENES SOMOS ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .qs-shot image-slot { aspect-ratio: 16/10; }
}
@media (max-width: 768px) {
  .qs-intro .lead { font-size: 18px; }
  .tl-row { padding: 24px 0; }
  .tl-row .tl-year { flex-basis: 100%; }
  .tl-year { font-size: 24px; }
}


/* ── CONTENT THEMES ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .ct2-hero { padding: 150px 40px 90px; }
  .ct3-wrap { padding: 120px 40px 72px; }
  .ct3-wrap--cont { padding-top: 56px; }
  .ct3-aside { position: static; }
  /* A una columna el hueco reservado al aside ya no hace falta */
  .ct3-aside[aria-hidden="true"] { display: none; }
}
@media (max-width: 768px) {
  .ct1-body .sw, .ct5-body .sw { padding-top: 44px; padding-bottom: 56px; }
  .ct1-featured, .ct5-featured { margin-bottom: 32px; }
  .ct2-hero { padding: 128px 22px 64px; min-height: 52vh; }
  .ct2-body { padding-bottom: 64px; }
  .ct2-card { margin-top: -56px; padding: 40px 24px; }
  .ct2-card--cont { margin-top: 48px; }
  .ct3-wrap { padding: 104px 22px 64px; }
  .ct3-wrap--cont { padding-top: 48px; }
  .ct4-wrap { padding: 116px 22px 80px; }
  .ct4-wrap--cont { padding-top: 48px; }
}

/* ── AVISO DE COOKIES (RGPD) ─────────────────────────────── */
@media (max-width: 768px) {
  .gdprcookie { left: 14px; right: 14px; bottom: 14px; max-width: none; padding: 22px 20px; }
  .gdprcookie-intro h2 { font-size: 17px; }
  .gdprcookie-intro p { font-size: 13px; }
  /* Apilados y a todo el ancho: el `margin-left:auto` del principal no aplica */
  .gdprcookie-buttons { flex-direction: column-reverse; align-items: stretch; }
  .gdpr-btn-primary { margin-left: 0; }
  /* Con el aviso abierto el switcher se va arriba; bajo el nav fijo no estorba */
  body:has(.gdprcookie) #vsw { top: auto; bottom: 14px; opacity: 0; pointer-events: none; }
}
