/* ═══════════════════════════════════════════════
   shared.css — Boostraffic
   Fuente de verdad para nav, footer, bottom nav,
   WA float y tokens de diseño.
   NO edites nav/footer CSS en páginas individuales.
   ═══════════════════════════════════════════════ */

/* ─── RESET & TOKENS ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --blue:       #1a73e8;
  --blue-d:     #1557b0;
  --green:      #34a853;
  --red:        #ea4335;
  --yellow:     #fbbc04;
  --text:       #202124;
  --muted:      #5f6368;
  --border:     #dadce0;
  --bg:         #ffffff;
  --bg2:        #f8f9fa;
  --bg3:        #e8f0fe;
  --shadow:     0 1px 3px rgba(60,64,67,.12), 0 2px 8px rgba(60,64,67,.08);
  --shadow-hover: 0 4px 16px rgba(60,64,67,.18), 0 1px 3px rgba(60,64,67,.1);
  --radius:     12px;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
}

body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { color: var(--blue); text-decoration: none; }
ul   { list-style: none; }

/* ─── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 14px;
  padding: 12px 24px; border-radius: 24px; border: none;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 3px rgba(26,115,232,.4); }
.btn-primary:hover { background: var(--blue-d); box-shadow: 0 2px 8px rgba(26,115,232,.5); transform: translateY(-1px); }
.btn-outline  { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--bg3); }
.btn-wa       { background: #25d366; color: #fff; box-shadow: 0 1px 3px rgba(37,211,102,.4); }
.btn-wa:hover { background: #1da851; transform: translateY(-1px); }
.btn-lg       { padding: 16px 40px; font-size: 16px; border-radius: 28px; }

/* ─── NAV ─────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); padding: 0 20px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 36px; font-weight: 800; color: #202124; }
.nav-logo span { color: var(--blue); }
.nav-logo img { width: 56px; height: 56px; border-radius: 10px; }
.nav-cta { font-size: 14px; }

/* ─── FOOTER ──────────────────────────────────── */
footer { background: #202124; color: rgba(255,255,255,0.75); padding: 64px 24px 0; }
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }

.footer-brand .nav-logo { color: #fff; margin-bottom: 12px; font-size: 22px; }
.footer-tagline { font-size: 12px; color: #9aa0a6; margin-bottom: 20px; line-height: 1.5; max-width: 280px; }

.footer-contact-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #9aa0a6; margin-bottom: 8px; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 1px; color: #5f6368; }
.footer-contact-item a { color: #9aa0a6; text-decoration: none; transition: color var(--transition); }
.footer-contact-item a:hover { color: #fff; }

.response-note {
  margin-top: 14px; font-size: 12px; color: #5f6368;
  background: rgba(255,255,255,0.04); border-radius: 8px;
  padding: 8px 12px; border-left: 2px solid #1a73e8;
}
.trust-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.trust-badge {
  font-size: 11px; font-weight: 600; color: #9aa0a6;
  padding: 5px 10px; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; background: rgba(255,255,255,0.03); letter-spacing: 0.02em;
}

/* Footer columns: desktop sin acordeón */
details.footer-col { display: block; }
details.footer-col > summary {
  display: flex; justify-content: space-between; align-items: center;
  list-style: none; pointer-events: none; cursor: default;
}
details.footer-col > summary::-webkit-details-marker { display: none; }
details.footer-col > summary .footer-col-chevron { display: none; }
details.footer-col > summary h4 { margin-bottom: 16px; }
details.footer-col > .footer-col-body { display: block; }

/* Quick actions: solo en móvil */
.footer-quick-actions { display: none; }

.footer-col h4 { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col a, .footer-col span {
  display: block; font-size: 13px; color: #9aa0a6;
  margin-bottom: 10px; cursor: pointer; transition: color var(--transition); text-decoration: none;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding: 20px 0; font-size: 12px; color: rgba(255,255,255,.3);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.35); text-decoration: none; transition: color var(--transition); }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ─── WA FLOAT ────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 300;
  display: flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff;
  padding: 14px 20px; border-radius: 32px;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  font-family: var(--font); font-size: 14px; font-weight: 700;
  cursor: pointer; text-decoration: none;
  animation: wa-pulse 2.5s infinite; transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 28px rgba(37,211,102,.55); color: #fff; animation: none; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,.75), 0 0 0 8px rgba(37,211,102,.12); }
}

/* ─── BOTTOM NAV ──────────────────────────────── */
.mobile-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  height: 60px; background: #fff;
  border-top: 1px solid var(--border); z-index: 400; align-items: stretch;
}
.mobile-bottom-nav a {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; color: var(--muted); font-size: 10px; font-weight: 600;
  letter-spacing: 0.02em; text-decoration: none; transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover { color: var(--blue); }
.mobile-bottom-nav a svg { width: 22px; height: 22px; }

/* ═══════════════════════════════════════════════
   MÓVIL — @media (max-width: 768px)
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  body { padding-bottom: 60px; }
  .mobile-bottom-nav { display: flex; }

  /* NAV */
  .nav-cta { display: none; }
  .nav-logo { font-size: 20px; }
  .nav-logo img { width: 40px; height: 40px; }

  /* WA: sobre la bottom bar, compacto */
  .wa-float {
    bottom: 76px; right: 16px;
    width: 56px; height: 56px;
    padding: 0; border-radius: 50%;
    justify-content: center; font-size: 0; gap: 0;
  }
  .wa-float svg { width: 28px; height: 28px; }

  /* ── FOOTER MÓVIL ────────────────────────────── */
  footer { padding: 40px 20px 0; }

  .footer-top {
    display: flex !important; flex-direction: column;
    gap: 0; padding-bottom: 0; border-bottom: none;
  }
  .footer-brand {
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .footer-brand .nav-logo { font-size: 26px; margin-bottom: 6px; }
  .footer-tagline { font-size: 11px; margin-bottom: 16px; max-width: 100%; }
  .footer-contact-item { display: none; }
  .response-note { display: none; }

  /* Trust badges: scroll horizontal sin scrollbar */
  .trust-badges {
    flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    gap: 8px; padding-bottom: 4px; margin-top: 16px;
  }
  .trust-badges::-webkit-scrollbar { display: none; }
  .trust-badge { white-space: nowrap; flex-shrink: 0; }

  /* Quick actions glassmorphism */
  .footer-quick-actions {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin: 20px 0 0;
  }
  .footer-quick-action {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px; padding: 18px 12px; border-radius: 16px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
    text-decoration: none;
    transition: transform 0.15s;
    -webkit-tap-highlight-color: transparent;
  }
  .footer-quick-action:active { transform: scale(0.96); }
  .footer-quick-wa  { background: rgba(37,211,102,0.12); border: 1px solid rgba(37,211,102,0.25); color: #25d366; }
  .footer-quick-email { background: rgba(26,115,232,0.12); border: 1px solid rgba(26,115,232,0.25); color: #4a9eff; }

  /* Acordeón */
  details.footer-col {
    display: block !important;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  details.footer-col > summary {
    display: flex !important; align-items: center;
    justify-content: space-between; padding: 16px 0;
    cursor: pointer; list-style: none;
    -webkit-tap-highlight-color: transparent; user-select: none;
  }
  details.footer-col > summary::-webkit-details-marker { display: none; }
  details.footer-col > summary h4 { margin-bottom: 0; font-size: 11px; color: rgba(255,255,255,0.5); }
  details.footer-col > summary .footer-col-chevron {
    display: block !important; color: rgba(255,255,255,0.3);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); flex-shrink: 0;
  }
  details.footer-col[open] > summary .footer-col-chevron { transform: rotate(180deg); color: var(--blue); }
  details.footer-col[open] > summary h4 { color: #fff; }
  details.footer-col > .footer-col-body {
    padding-bottom: 16px;
    animation: slideDown 0.25s cubic-bezier(0.4,0,0.2,1);
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  details.footer-col .footer-col-body a,
  details.footer-col .footer-col-body span {
    padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 13px;
  }
  details.footer-col .footer-col-body a:last-child { border-bottom: none; }

  /* Footer bottom centrado */
  .footer-bottom { margin-top: 24px; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px 0; }
}

@media (max-width: 640px) {
  .nav-cta { display: none; }
}
