/* ============================================================
   PRESENTIQ.CO — Design System compartido
   Todas las páginas del sitio importan este archivo
   ============================================================ */

:root {
  --navy: #042C53;
  --navy-mid: #185FA5;
  --blue-accent: #378ADD;
  --blue-light: #E6F1FB;
  --white: #ffffff;
  --off-white: #F8F9FC;
  --gray-light: #F1F4F9;
  --gray-mid: #8896A8;
  --gray-dark: #3D4F63;
  --text-primary: #042C53;
  --text-secondary: #3D4F63;
  --text-muted: #8896A8;
  --border: #E2E8F0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(4,44,83,0.08);
  --shadow-lg: 0 12px 48px rgba(4,44,83,0.14);
  --green: #1D9E75;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Sora', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem; font-weight: 300;
  color: var(--navy); text-decoration: none; letter-spacing: -0.5px;
}
.nav-logo .logo-P { font-weight: 700; color: var(--navy); }
.nav-logo .logo-IQ { font-weight: 700; color: var(--navy-mid); }
.nav-links { display: flex; align-items: center; gap: 1.25rem; list-style: none; flex-wrap: nowrap; }
.nav-links a {
  font-size: 0.8rem; font-weight: 400;
  color: var(--text-secondary); text-decoration: none; transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); font-weight: 500; }
.btn-nav {
  background: var(--navy) !important; color: var(--white) !important;
  padding: 0.45rem 1rem; border-radius: 8px;
  font-weight: 500 !important; font-size: 0.78rem !important;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s !important;
}
.btn-nav:hover { background: var(--navy-mid) !important; transform: translateY(-1px); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; background: var(--navy); color: var(--white);
  padding: 0.875rem 1.75rem; border-radius: 10px;
  font-weight: 600; font-size: 0.9375rem; text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(4,44,83,0.25); cursor: pointer; border: none;
}
.btn-primary:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(4,44,83,0.3); }
.btn-secondary {
  display: inline-block; background: transparent; color: var(--navy);
  padding: 0.875rem 1.75rem; border-radius: 10px;
  font-weight: 500; font-size: 0.9375rem; text-decoration: none;
  border: 1.5px solid var(--border); transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--navy-mid); background: var(--blue-light); }
.btn-white {
  display: inline-block; background: var(--white); color: var(--navy);
  padding: 0.875rem 1.75rem; border-radius: 10px;
  font-weight: 600; font-size: 0.9375rem; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(255,255,255,0.25);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,0.35); }

/* ── TYPOGRAPHY ── */
section { padding: 4rem 5%; }
.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--navy-mid); margin-bottom: 1rem;
}
h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.15; color: var(--navy); margin-bottom: 1.5rem;
}
h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2; color: var(--navy); margin-bottom: 1rem;
}
h3 { font-size: 1.125rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
.lead { font-size: 1.125rem; color: var(--text-secondary); line-height: 1.75; max-width: 600px; }
.text-center { text-align: center; }
.text-center .lead { margin: 0 auto; }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--blue-light); border: 1px solid rgba(55,138,221,0.2);
  border-radius: var(--radius-lg); padding: 2.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; margin: 0 5% 3rem; flex-wrap: wrap;
}
.cta-banner-text h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.cta-banner-text p { font-size: 0.9rem; color: var(--text-muted); }

/* ── FOOTER ── */
footer {
  background: var(--navy); color: rgba(255,255,255,0.5);
  padding: 3rem 5%; display: grid;
  grid-template-columns: 1fr 2fr 1fr; gap: 2rem; align-items: start;
}
.footer-logo {
  font-family: 'Sora', sans-serif; font-size: 1.3rem; font-weight: 300;
  color: var(--white); text-decoration: none; display: block; margin-bottom: 0.5rem;
}
.footer-logo .logo-P { font-weight: 700; }
.footer-logo .logo-IQ { font-weight: 700; color: var(--blue-accent); }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.4); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; }
.footer-nav a { font-size: 0.875rem; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--white); }
.footer-right { text-align: right; }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); margin-top: 0.5rem; }
.footer-powered {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.2);
  grid-column: 1 / -1;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 5rem 5% 1rem; display: flex; gap: 0.5rem;
  align-items: center; font-size: 0.8rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--navy-mid); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-muted); }

/* ── INTERIOR PAGE HERO ── */
.page-hero {
  padding: 7rem 5% 3rem; background: linear-gradient(160deg, #F0F5FC 0%, var(--off-white) 60%, #EBF4FF 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero .eyebrow { margin-bottom: 0.75rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 760px; margin-bottom: 1.25rem; }
.page-hero .lead { max-width: 680px; }

/* ── ARTICLE CONTENT ── */
.article-body { max-width: 780px; margin: 0 auto; }
.article-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 3rem 0 1rem; }
.article-body h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.article-body p { font-size: 1rem; line-height: 1.85; color: var(--text-secondary); margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-body li { font-size: 1rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 0.4rem; }
.article-body strong { color: var(--navy); font-weight: 600; }
.article-body a { color: var(--navy-mid); text-decoration: underline; }
.article-body a:hover { color: var(--navy); }

.source-cite {
  background: var(--blue-light); border-left: 3px solid var(--blue-accent);
  border-radius: 0 8px 8px 0; padding: 1rem 1.25rem;
  margin: 1.5rem 0; font-size: 0.9rem; color: var(--text-secondary);
}
.source-cite strong { color: var(--navy-mid); }

.stat-callout {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-lg); padding: 2rem 2.5rem;
  margin: 2.5rem 0; display: flex; align-items: center; gap: 2rem;
}
.stat-callout-number {
  font-family: 'DM Serif Display', serif;
  font-size: 3.5rem; color: var(--blue-accent); line-height: 1; white-space: nowrap;
}
.stat-callout-text { font-size: 0.95rem; line-height: 1.6; color: rgba(255,255,255,0.8); }
.stat-callout-source { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 0.4rem; }

/* ── CARD GRID ── */
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 2rem 0; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2rem 0; }
.info-card {
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; background: var(--white);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.info-card:hover { border-color: var(--blue-accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.info-card-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.info-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.info-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }

/* ── COMPARISON TABLE ── */
.compare-table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.9rem; }
.compare-table th {
  background: var(--navy); color: var(--white);
  padding: 0.875rem 1.25rem; text-align: left; font-weight: 500;
}
.compare-table th:first-child { border-radius: 8px 0 0 0; }
.compare-table th:last-child { border-radius: 0 8px 0 0; }
.compare-table td { padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table tr:hover td { background: var(--gray-light); }
.compare-table .check { color: var(--green); font-weight: 700; }
.compare-table .cross { color: #E53E3E; font-weight: 700; }

/* ── CTA SECTION ── */
#contacto {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white); text-align: center; padding: 5rem 5%;
}
#contacto h2 { color: var(--white); }
#contacto .lead { color: rgba(255,255,255,0.75); margin: 0 auto 2rem; }
.cta-subtext { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 1rem; }
.cta-trust { display: flex; justify-content: center; gap: 2rem; margin-top: 1.5rem; flex-wrap: wrap; }
.trust-item { font-size: 0.85rem; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 0.4rem; }
.trust-check { color: #4ADE80; font-weight: 700; }

/* ── PLATFORM PILLS ── */
.platform-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--gray-light); padding: 0.3rem 0.7rem;
  border-radius: 100px; font-size: 0.75rem; font-weight: 500;
  color: var(--text-secondary); white-space: nowrap;
}
.platform-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-accent); }

/* ── FAQ ── */
.faq-grid { max-width: 780px; margin: 3rem auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 1.25rem 0; display: flex; justify-content: space-between; align-items: center;
  font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 500;
  color: var(--text-primary); text-align: left; gap: 1rem;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--navy-mid); }
.faq-icon { font-size: 1.25rem; color: var(--navy-mid); flex-shrink: 0; transition: transform 0.2s; }
.faq-answer { display: none; padding: 0 0 1.25rem; }
.faq-answer p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.75; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ── HAMBURGER MENU ── */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px; z-index: 200;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); z-index: 99;
  flex-direction: column; padding: 1rem 5% 1.5rem;
  box-shadow: 0 8px 32px rgba(4,44,83,0.1);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  padding: 0.85rem 0; font-size: 1rem; font-weight: 400;
  color: var(--text-secondary); text-decoration: none;
  border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.nav-mobile-menu a:last-child { border-bottom: none; margin-top: 0.5rem; }
.nav-mobile-menu a:hover { color: var(--navy); }
.nav-mobile-menu .btn-mobile {
  display: block; text-align: center; margin-top: 0.5rem;
  background: var(--navy); color: var(--white) !important;
  padding: 0.875rem; border-radius: 10px; font-weight: 600;
  font-size: 0.9rem; border-bottom: none !important;
}
.nav-mobile-menu .btn-mobile:hover { background: var(--navy-mid) !important; }

/* ── RESPONSIVE — MOBILE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
  .stat-callout { flex-direction: column; gap: 1rem; text-align: center; }
  footer { grid-template-columns: 1fr; }
  .footer-right { text-align: left; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .cta-trust { flex-direction: column; gap: 0.75rem; align-items: center; }
  section { padding: 3rem 5%; }
  .page-hero { padding: 6rem 5% 2rem; }
  h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
}

/* ── RESPONSIVE — LARGE SCREENS (27"+) ── */
@media (min-width: 1800px) {
  nav { padding: 0 8%; }
  section { padding: 5rem 8%; }
  .page-hero { padding: 8rem 8% 4rem; }
  .cta-banner { margin: 0 8% 3rem; }
  .article-layout, .blog-layout { max-width: 1300px; }
  footer { padding: 3rem 8%; }
  .lead { max-width: 720px; font-size: 1.2rem; }
  h1 { font-size: clamp(3rem, 3.5vw, 5rem); }
  h2 { font-size: clamp(2.2rem, 3vw, 3.5rem); }
  .stat-callout-number { font-size: 4.5rem; }
}

@media (min-width: 2400px) {
  nav { padding: 0 10%; }
  section { padding: 6rem 10%; }
  .page-hero { padding: 9rem 10% 5rem; }
  .cta-banner { margin: 0 10% 3rem; }
  footer { padding: 4rem 10%; }
}
