/* ============================================================
   NetAccess — Componentes (botões, header, footer, forms, etc.)
   ============================================================ */

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 19px; height: 19px; flex: none; }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-600); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; box-shadow: var(--shadow); }

.btn--white { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn--white:hover { background: #f3f3f5; }

.btn--wpp { background: var(--wpp); color: #06351f; }
.btn--wpp:hover { background: var(--wpp-700); color: #fff; }

.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border-strong); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--ghost-light { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn--ghost-light:hover { background: rgba(255,255,255,.22); }

.btn--lg { min-height: 54px; padding: 16px 30px; font-size: 16px; }
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--icon-only { padding: 0; width: 46px; min-height: 46px; border-radius: 50%; }

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: var(--pill);
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
}
.badge--brand { background: var(--brand); color: #fff; }
.badge--soft  { background: var(--brand-050); color: var(--brand-700); }
.badge--glass { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.25); }
.badge--dark  { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.logo__mark {
  position: relative; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand); box-shadow: 0 6px 14px rgba(225,16,32,.35);
}
.logo__mark svg { width: 22px; height: 22px; }
.logo__dot { position: absolute; bottom: 8px; width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.logo__text { font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
.logo__text span { color: var(--brand); }
.logo--light .logo__text { color: #fff; }
.logo__img { display: block; height: 36px; width: auto; }
.logo__img--invert { filter: brightness(0) invert(1); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink); color: #fff;
  font-size: 13px;
  padding: 7px 0;
  padding-top: max(7px, env(safe-area-inset-top));
}
.topbar__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
.topbar__promo { color: rgba(255,255,255,.82); }
.topbar__contacts { margin-left: auto; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
.topbar__phone { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.topbar__phone:hover { opacity: .85; }
.topbar__wpp { display: inline-flex; align-items: center; gap: 6px; color: #4ade80; }
.topbar__wpp:hover { color: #6ee7a0; }
.topbar__icon { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(16,16,24,.07); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: var(--header-h);
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav__link {
  font-weight: 500; font-size: 14px;
  color: var(--text-2); transition: color var(--t);
}
.nav__link:hover { color: var(--brand); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Hamburger ---------- */
.hamburger {
  display: none; place-items: center;
  width: 46px; height: 46px; border-radius: 11px; color: var(--ink);
  border: 1px solid var(--border);
}
.hamburger svg { width: 24px; height: 24px; }
.hamburger__close { display: none; }
.hamburger.is-open .hamburger__open { display: none; }
.hamburger.is-open .hamburger__close { display: block; }

/* ---------- Drawer (menu mobile) ---------- */
.drawer {
  position: fixed; z-index: var(--z-menu);
  top: 0; right: 0; height: 100dvh; width: min(86vw, 360px);
  background: #fff; box-shadow: var(--shadow-lg);
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 12px) 20px 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 8px;
  transform: translateX(100%); transition: transform var(--t);
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer__nav { display: flex; flex-direction: column; gap: 2px; }
.drawer__link {
  padding: 14px 12px; border-radius: 10px; font-weight: 600; font-size: 17px;
  color: var(--text); border-bottom: 1px solid var(--border);
}
.drawer__link:hover { background: var(--bg-alt); color: var(--brand); }
.drawer__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.drawer__backdrop {
  position: fixed; inset: 0; z-index: calc(var(--z-menu) - 1);
  background: rgba(10,10,16,.5); opacity: 0; transition: opacity var(--t);
}
.drawer__backdrop.is-open { opacity: 1; }

/* ---------- Cards genéricos ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--t), border-color var(--t);
}
.card:hover { box-shadow: var(--shadow-lg); border-color: #fca5a5; }
.card__icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 12px; background: #fef2f2; color: var(--brand);
  margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; }
.card__title { font-size: 18px; font-weight: 700; }
.card__text { color: #52525b; margin-top: 4px; font-size: 14px; line-height: 1.55; }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; padding: 13px 14px;
  font-size: 16px; /* evita zoom no iOS */
  background: #fff; color: var(--text);
  border: 1.5px solid var(--border-strong); border-radius: var(--r);
  transition: border-color var(--t), box-shadow var(--t);
}
.input::placeholder, .textarea::placeholder { color: #9a9aa4; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-050);
}
.textarea { resize: vertical; min-height: 96px; }
.field__error { color: var(--danger); font-size: 13px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Accordion (FAQ via <details>) ---------- */
.accordion { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden;
}
.faq-item > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px; font-weight: 700; font-size: 16px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item__sign { flex: none; color: var(--brand); font-size: 24px; line-height: 1; transition: transform var(--t); }
.faq-item[open] .faq-item__sign { transform: rotate(45deg); }
.faq-item__body { padding: 0 20px 20px; color: var(--muted); line-height: 1.6; }

/* ---------- WhatsApp flutuante ---------- */
.wpp-float {
  position: fixed; z-index: var(--z-toast);
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  border-radius: var(--pill); padding: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wpp); color: #fff; font-weight: 600; box-shadow: var(--shadow-lg);
  transition: transform var(--t), background var(--t);
}
.wpp-float:hover { transform: scale(1.04); background: var(--wpp-700); }
.wpp-float svg { width: 24px; height: 24px; flex: none; }
.wpp-float__label { line-height: 1; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: var(--on-dark-muted);
  padding-block: clamp(40px, 6vw, 64px) 24px;
}
.site-footer__top {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 5vw, 56px);
  align-items: start;
  padding-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--on-dark-border);
}
.site-footer__about { margin-top: 14px; font-size: 14.5px; line-height: 1.6; max-width: 360px; }
.site-footer__addr { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 13.5px; }
.site-footer__pin { width: 16px; height: 16px; flex: none; color: var(--brand); margin-top: 2px; }
.site-footer__social { display: flex; gap: 10px; margin-top: 18px; }
.site-footer__social a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.08); color: #fff; transition: background var(--t), transform var(--t);
}
.site-footer__social a:hover { background: var(--brand); transform: translateY(-2px); }
.site-footer__social a svg { width: 18px; height: 18px; }

.site-footer__contact { display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.site-footer__contact h2 { color: #fff; font-size: 15px; margin-bottom: 2px; }
.site-footer__pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: var(--pill); background: rgba(255,255,255,.06); color: #fff;
  font-weight: 600; font-size: 14px; transition: background var(--t); overflow-wrap: anywhere;
}
.site-footer__pill:hover { background: rgba(255,255,255,.12); }
.site-footer__pill svg { width: 17px; height: 17px; flex: none; color: var(--brand); }
.site-footer__contact .btn { margin-top: 4px; }

.site-footer__grid {
  display: grid; gap: clamp(24px, 4vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: clamp(28px, 4vw, 40px);
}
.site-footer__col h2 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col a { font-size: 14.5px; transition: color var(--t); }
.site-footer__col a:hover { color: #fff; }
.site-footer__more { display: inline-flex; align-items: center; gap: 5px; color: #fff; font-weight: 600; }
.site-footer__more svg { width: 15px; height: 15px; }
.site-footer__bottom {
  margin-top: clamp(28px, 4vw, 44px); padding-top: 22px;
  border-top: 1px solid var(--on-dark-border);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: 13px;
}
.site-footer__legal { opacity: .7; }

/* ============================================================
   Responsivo — header/footer/drawer
   ============================================================ */
@media (max-width: 900px) {
  .nav { display: none; }
  .hamburger { display: grid; }
}
@media (min-width: 901px) {
  .drawer, .drawer__backdrop { display: none !important; }
}
@media (max-width: 768px) {
  .wpp-float__label { display: none; }
}
@media (max-width: 860px) {
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__contact { max-width: none; }
}
@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; }
  .btn--icon-only { display: none; }
}
