/* ==========================================================================
   New Call Enterprises — Design System
   ========================================================================== */

:root {
  --navy-950: #070c18;
  --navy-900: #0b1526;
  --navy-800: #101f38;
  --navy-700: #172b4d;
  --blue-600: #2f6fed;
  --blue-500: #4b83f2;
  --blue-100: #e8f0fe;
  --teal-400: #22d3c5;
  --teal-500: #14b8ac;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --border: #e3e8f0;
  --text: #131b2e;
  --text-muted: #5b6b85;
  --text-inverse: #f5f8ff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(15, 30, 60, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 30, 60, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 30, 60, 0.16);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.18; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 700; }
.section-lead { max-width: 640px; color: var(--text-muted); font-size: 18px; margin-top: 14px; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 48px; text-align: left; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 10px 24px rgba(47,111,237,0.30); }
.btn-primary:hover { background: #2a5fd0; box-shadow: 0 14px 30px rgba(47,111,237,0.38); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--blue-100); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.top-bar {
  background: var(--navy-950);
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.top-bar a { color: #fff; font-weight: 600; }
.top-bar-links { display: flex; gap: 20px; }
@media (max-width: 640px) { .top-bar-links span:not(:first-child) { display: none; } }

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--navy-900); }
.brand-logo { height: 48px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 20px; font-weight: 600; font-size: 15px; }
.nav-links a { color: var(--text-muted); transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--blue-600); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-weight: 700; color: var(--navy-900); font-size: 15px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-900); margin: 5px 0; border-radius: 2px; }

html[lang="es"] .nav-links { gap: 10px; font-size: 13px; }
html[lang="es"] .nav-actions { gap: 8px; }
html[lang="es"] .nav-phone { font-size: 13px; }
html[lang="es"] .btn-sm { padding: 9px 12px; font-size: 13px; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--border); transform: translateY(-140%); transition: transform 0.25s ease; box-shadow: var(--shadow-md); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-phone { display: none; }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(47,111,237,0.20), transparent 60%),
              linear-gradient(180deg, var(--navy-950), var(--navy-900));
  color: #fff;
  padding: 110px 0 100px;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } .hero { padding: 70px 0 60px; } }

.hero .eyebrow { background: rgba(255,255,255,0.08); color: var(--teal-400); }
.hero p.section-lead { color: rgba(255,255,255,0.72); max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust { margin-top: 44px; display: flex; gap: 26px; flex-wrap: wrap; color: rgba(255,255,255,0.55); font-size: 13px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }

.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(6px);
}
.hero-panel-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.10); }
.hero-panel-row:last-child { border-bottom: none; }
.hero-panel-label { font-size: 13px; color: rgba(255,255,255,0.55); }
.hero-panel-value { font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 4px rgba(34,211,197,0.18); }

/* Page (non-home) hero — shorter */
.page-hero { padding: 72px 0 64px; }
.page-hero .container { display: block; text-align: center; }
.page-hero p.section-lead { margin-left: auto; margin-right: auto; }
.page-hero .hero-ctas { justify-content: center; }

/* ==========================================================================
   Feature grid / cards
   ========================================================================== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(47,111,237,0.25); }

.icon-badge {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-100); color: var(--blue-600);
  margin-bottom: 18px;
}
.icon-badge svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; }

.tag-new {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--teal-500);
  background: rgba(20,184,172,0.12);
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: 8px;
  vertical-align: middle;
}

.card-more { margin-top: 14px; }
.card-more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--blue-600); }
.card-more summary::-webkit-details-marker { display: none; }
.card-more summary:after { content: '+'; font-size: 16px; font-weight: 400; }
.card-more[open] summary:after { content: '\2212'; }
.card-more p { margin-top: 10px; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.section-dark .card-more p { color: rgba(255,255,255,0.6); }

/* Alt section background */
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: #fff; }
.section-dark .section-lead { color: rgba(255,255,255,0.65); }
.section-dark .card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.10); }
.section-dark .card p { color: rgba(255,255,255,0.6); }
.section-dark .icon-badge { background: rgba(255,255,255,0.10); color: var(--teal-400); }

/* Stats row */
.stats { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.stat { text-align: center; flex: 1; min-width: 140px; }
.stat-number { font-size: 40px; font-weight: 800; color: var(--blue-600); }
.section-dark .stat-number { color: var(--teal-400); }
.stat-label { color: var(--text-muted); font-size: 14px; margin-top: 6px; }
.section-dark .stat-label { color: rgba(255,255,255,0.6); }

/* Testimonials */
.quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 30px; box-shadow: var(--shadow-sm); }
.quote-card p { font-size: 17px; color: var(--text); margin-bottom: 20px; }
.quote-person { display: flex; align-items: center; gap: 12px; }
.quote-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-600), var(--teal-400)); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; }
.quote-name { font-weight: 700; font-size: 14px; }
.quote-role { font-size: 13px; color: var(--text-muted); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--blue-600), #1746b0 60%, var(--navy-950));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner .section-lead { color: rgba(255,255,255,0.8); margin-left: auto; margin-right: auto; }
.cta-banner .hero-ctas { justify-content: center; margin-top: 28px; }
@media (max-width: 640px) { .cta-banner { padding: 36px 24px; } }

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-toggle { display: flex; justify-content: center; margin-bottom: 40px; gap: 10px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

.plan-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative; }
.plan-card.featured { border: 2px solid var(--blue-600); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--blue-600); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 16px; border-radius: 999px; }
.plan-name { font-weight: 700; color: var(--text-muted); text-transform: uppercase; font-size: 13px; letter-spacing: 0.06em; }
.plan-price { font-size: 42px; font-weight: 800; margin: 12px 0 4px; }
.plan-price span { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.plan-note { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }
.plan-features { flex: 1; margin: 0 0 28px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; }
.plan-features svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--teal-500); margin-top: 2px; }

.compare-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.compare-table th { background: var(--navy-900); color: #fff; font-weight: 700; }
.compare-table td:not(:first-child), .compare-table th:not(:first-child) { text-align: center; }
.compare-table tr:last-child td { border-bottom: none; }
.check-yes { color: var(--teal-500); font-weight: 800; }
.check-no { color: #c7cedb; }
.table-scroll { overflow-x: auto; }

/* ==========================================================================
   Support
   ========================================================================== */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .support-grid { grid-template-columns: 1fr; } }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px; background: #fbfcfe; transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); background: #fff; }
.field { margin-bottom: 16px; }

.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content .legal-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 36px; }
.legal-content h2 { font-size: 24px; margin-top: 48px; margin-bottom: 16px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 16px; margin-top: 28px; margin-bottom: 10px; }
.legal-content p { margin-bottom: 16px; color: var(--text); }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--blue-600); font-weight: 600; }
.legal-content a:hover { text-decoration: underline; }
.faq-item summary:after { content: '+'; font-size: 22px; color: var(--blue-600); font-weight: 400; }
.faq-item[open] summary:after { content: '−'; }
.faq-item p { margin-top: 12px; color: var(--text-muted); font-size: 15px; }

.faq-group-title { margin: 40px 0 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-600); }
.faq-group-title:first-child { margin-top: 0; }
.app-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }

/* ==========================================================================
   Integration logos strip
   ========================================================================== */
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.logo-pill { border: 1px solid var(--border); background: var(--surface); padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--text-muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy-950); color: rgba(255,255,255,0.6); padding: 64px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; margin-bottom: 14px; display: inline-flex; background: #fff; padding: 10px 16px; border-radius: 10px; }
.footer-brand p { font-size: 14px; max-width: 280px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 18px; }
.footer ul li { margin-bottom: 10px; font-size: 14px; }
.footer ul li a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: 13px; flex-wrap: wrap; gap: 12px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 16px; height: 16px; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
