/* ═══════════════════════════════════════════
   RECAUDOS FAC.CLICK — Stylesheet compartido
═══════════════════════════════════════════ */
:root {
  --primary: #1a56db;
  --primary-dark: #1341b0;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --dark: #1e293b;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
  --shadow: 0 4px 24px rgba(26,86,219,0.10);
  --nav-h: 64px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dark); background: var(--white); line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #0f172a; color: #cbd5e1;
  z-index: 9999; padding: 16px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  border-top: 3px solid var(--primary);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
#cookie-banner p { flex: 1; min-width: 260px; font-size: 13.5px; }
#cookie-banner a { color: #7dd3fc; }
.ck-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ck-accept {
  background: var(--success); color: white; border: none;
  padding: 9px 20px; border-radius: 6px; cursor: pointer;
  font-weight: 700; font-size: 13px;
}
.ck-reject {
  background: transparent; color: #94a3b8; border: 1px solid #334155;
  padding: 9px 20px; border-radius: 6px; cursor: pointer;
  font-weight: 600; font-size: 13px;
}
.ck-accept:hover { background: #059669; }
.ck-reject:hover { background: #1e293b; }

/* ── NAVBAR ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 20px; font-weight: 800; color: var(--primary);
  text-decoration: none; letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 6px;
}
.logo-dot { color: var(--accent); }
.nav-menu { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-menu a {
  color: var(--gray); text-decoration: none;
  font-size: 14.5px; font-weight: 500;
  padding: 6px 12px; border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-menu a:hover { color: var(--primary); background: #eff6ff; }
.nav-menu a.active { color: var(--primary); font-weight: 600; }
.nav-cta {
  background: var(--primary) !important; color: white !important;
  padding: 8px 18px !important; border-radius: 7px !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }
.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px; color: var(--dark);
}
.nav-mobile {
  display: none; flex-direction: column;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 12px 24px 20px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--dark); text-decoration: none; font-size: 15px;
  font-weight: 500; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }

/* ── PAGE HEADER / HERO SMALL ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white; padding: 56px 24px 60px; text-align: center;
}
.page-hero .breadcrumb {
  font-size: 13px; color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.page-hero h1 { font-size: clamp(26px,4vw,42px); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,0.85); max-width: 540px; margin: 0 auto; }

/* ── LAYOUT ── */
.container { max-width: 1140px; margin: 0 auto; }
section { padding: 72px 24px; }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 10px;
}
.section-title { font-size: clamp(24px,3.5vw,38px); font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.section-sub { font-size: 16px; color: var(--gray); margin-bottom: 44px; }
.text-center { text-align: center; }
.text-center .section-sub { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── CARDS ── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px; }
.card {
  background: white; border-radius: 12px;
  padding: 28px; border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(26,86,219,0.13); }
.card-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--gray); font-size: 14.5px; }

/* ── BOTONES ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 8px;
  font-weight: 700; font-size: 15px;
  text-decoration: none; border: none; cursor: pointer;
  transition: all .2s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: #eff6ff; }
.btn-accent { background: var(--accent); color: var(--dark); }
.btn-accent:hover { background: #d97706; color: white; }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: #f0f9ff; }

/* ── LISTAS ESTILO CHECK ── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--gray); font-size: 15px;
}
.check-list li::before {
  content: '✓';
  width: 22px; height: 22px; flex-shrink: 0;
  background: var(--success); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; margin-top: 1px;
}

/* ── LEGAL DOC ── */
.legal-wrap {
  background: white; border-radius: 12px;
  padding: 40px 48px; border: 1px solid var(--border);
  max-width: 840px; margin: 0 auto;
}
.legal-wrap .legal-date { color: var(--gray); font-size: 13px; margin-bottom: 24px; }
.legal-wrap h2 { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.legal-wrap h3 { font-size: 16px; font-weight: 700; margin: 28px 0 10px; color: var(--dark); }
.legal-wrap h3:first-of-type { margin-top: 0; }
.legal-wrap p, .legal-wrap li { color: var(--gray); font-size: 15px; line-height: 1.8; }
.legal-wrap ul, .legal-wrap ol { padding-left: 22px; margin: 10px 0; }
.legal-wrap li { margin-bottom: 5px; }
.legal-wrap a { color: var(--primary); }
.legal-nav {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px;
}
.legal-nav a {
  padding: 8px 18px; border-radius: 6px;
  background: var(--light); border: 1px solid var(--border);
  color: var(--gray); text-decoration: none; font-size: 14px; font-weight: 600;
  transition: all .2s;
}
.legal-nav a.active, .legal-nav a:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ── FORMULARIO ── */
.form-wrap { background: var(--light); border-radius: 14px; padding: 32px; border: 1px solid var(--border); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 15px; background: white; font-family: inherit;
  transition: border .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.form-group textarea { height: 110px; resize: vertical; }
.btn-submit {
  width: 100%; background: var(--primary); color: white;
  border: none; padding: 13px; border-radius: 8px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: var(--primary-dark); }
.form-note { font-size: 12px; color: var(--gray); margin-top: 10px; text-align: center; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 20px 0; font-size: 16px; font-weight: 600; color: var(--dark);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.faq-q .icon { font-size: 20px; color: var(--primary); transition: transform .2s; flex-shrink: 0; }
.faq-q.open .icon { transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 20px; color: var(--gray); font-size: 15px; line-height: 1.75; }
.faq-a.open { display: block; }

/* ── BLOG ── */
.blog-card { background: white; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.blog-card:hover { transform: translateY(-3px); }
.blog-thumb { height: 180px; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); display: flex; align-items: center; justify-content: center; font-size: 56px; }
.blog-body { padding: 22px; }
.blog-meta { font-size: 12px; color: var(--gray); margin-bottom: 8px; }
.blog-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.blog-body h3 a { color: var(--dark); text-decoration: none; }
.blog-body h3 a:hover { color: var(--primary); }
.blog-body p { color: var(--gray); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.blog-tag {
  display: inline-block; background: #eff6ff; color: var(--primary);
  padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 600;
  margin-bottom: 10px;
}

/* ── AVISO / NOTICE ── */
.notice {
  border-radius: 10px; padding: 20px 24px; margin-bottom: 20px;
  border-left: 4px solid;
}
.notice-warning { background: #fffbeb; border-color: var(--accent); }
.notice-danger { background: #fff5f5; border-color: var(--danger); }
.notice-info { background: #eff6ff; border-color: var(--primary); }
.notice-success { background: #f0fdf4; border-color: var(--success); }
.notice h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.notice p { font-size: 14px; color: var(--gray); }

/* ── CONTACTO INFO ── */
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.ci-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--light); border: 1px solid var(--border);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.ci-icon { margin-top: 2px; }
.contact-item h4 { font-size: 13px; font-weight: 600; color: var(--gray); margin-bottom: 3px; }
.contact-item p { font-size: 15px; color: var(--dark); font-weight: 500; }

/* ── FOOTER ── */
footer { background: var(--dark); color: #94a3b8; padding: 56px 24px 24px; }
.footer-inner { max-width: 1140px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand .logo { color: white; display: block; margin-bottom: 14px; font-size: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: white; font-size: 14px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.3px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #94a3b8; text-decoration: none; font-size: 13.5px; transition: color .2s; }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid #334155; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 13px; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: #64748b; font-size: 13px; text-decoration: none; }
.footer-legal a:hover { color: white; }
.ssl-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #1e3a5f; color: #7dd3fc;
  padding: 5px 12px; border-radius: 5px; font-size: 12px; font-weight: 600;
  border: 1px solid #1d4ed8; margin-top: 14px;
}

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 10000;
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: white; border-radius: 16px;
  max-width: 480px; width: 92%; padding: 40px;
  position: relative; text-align: center;
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; font-size: 22px;
  cursor: pointer; color: var(--gray);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-menu { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .legal-wrap { padding: 24px 20px; }
  section { padding: 52px 20px; }
}
