/* ==========================================================================
   Contadores EC — Design system
   Navy + gold identity, mobile-first, no framework.
   ========================================================================== */

:root {
  --navy-900: #081328;
  --navy-800: #0b1a35;
  --navy-700: #0f2246;
  --navy-600: #142c58;
  --gold-500: #ffd200;
  --gold-600: #e0ba00;
  --gold-700: #8c7300;
  --ink: #12161f;
  --ink-muted: #5b6472;
  --line: #e6e8ee;
  --surface: #ffffff;
  --surface-alt: #f5f6fa;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 10px 30px rgba(11, 26, 53, 0.08);
  --shadow-card-hover: 0 16px 40px rgba(11, 26, 53, 0.14);
  --container: 1180px;
  --font-head: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-muted); }

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

.section { padding: 72px 0; }
.section--alt { background: var(--surface-alt); }
.section--navy { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; }
.section--navy p { color: rgba(255,255,255,0.75); }
.section--navy h2 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold-700);
  margin-bottom: 10px;
}

.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head .accent-bar { margin-left: auto; margin-right: auto; }

.accent-bar {
  width: 56px;
  height: 4px;
  background: var(--gold-500);
  border-radius: 2px;
  margin: 10px 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-600); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,210,0,0.35); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: #fff; }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.brand .logo-mark { height: 42px; width: auto; display: block; flex: none; }
.brand .brand-ec { color: var(--gold-500); }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-500); border-color: var(--gold-500); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(6,13,30,0.86), rgba(11,26,53,0.82)), url('../img/fondo.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 92px 0 84px;
}
.hero { text-align: center; }
.hero .container { max-width: 760px; margin-left: auto; margin-right: auto; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--gold-500); display: block; }
.hero p.lead { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 620px; margin-left: auto; margin-right: auto; }
.hero .accent-bar { margin-left: auto; margin-right: auto; }
.hero-cta { margin-top: 22px; display: flex; justify-content: center; }

.trust-strip {
  background: var(--navy-800);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 24px;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .icon-badge { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; flex: none; color: var(--gold-500); }
.trust-item .icon-badge svg { width: 30px; height: 30px; }
.trust-item strong { display: block; font-size: 0.92rem; color: #fff; }
.trust-item span { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.card .icon-tile {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card .icon-tile svg { width: 22px; height: 22px; color: var(--gold-600); }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* Icon-beside-text card variant (Beneficios) */
.card--row { display: flex; gap: 16px; align-items: flex-start; text-align: left; }
.card--row .icon-tile { margin-bottom: 0; flex: none; }
.card--row .icon-3d { flex: none; }

/* 3D emoji-style icons: no background chip, just the glyph */
.icon-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  line-height: 1;
  font-style: normal;
}
.icon-3d.icon-3d--sm { font-size: 32px; }
.card .icon-3d { margin-bottom: 14px; }
.card--row .icon-3d { margin-bottom: 0; font-size: 34px; }

/* Servicios "incluye" bullet list */
.service-includes {
  list-style: none;
  padding: 0;
  margin: 10px 0 12px;
}
.service-includes li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 0.93rem;
  color: var(--ink-muted);
}
.service-includes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}
.service-result { font-size: 0.93rem; margin-bottom: 0; }
.service-result strong { color: var(--ink); }

.card-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.card-photo img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-photo figcaption { padding: 18px 20px; }

.img-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--surface-alt), #e9ebf2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px dashed #c7ccd8;
}

/* ---------- Two-column feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .eyebrow { display: block; }

/* ---------- Steps (Cómo funciona) ---------- */
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 8px; flex-wrap: wrap; }
.step { flex: 1 1 220px; max-width: 260px; text-align: center; }
.step .step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold-500); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin: 0 auto 18px;
}
.step .icon-tile { margin: 0 auto 16px; }
.step .icon-3d { margin: 0 auto 16px; font-size: 36px; }
.step-arrow { align-self: center; color: var(--gold-500); flex: 0 0 64px; margin-top: 40px; }
.step-arrow svg { width: 44px; height: 44px; }

/* ---------- Stats bar ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats .icon-tile { margin: 0 auto 14px; background: rgba(255,255,255,0.08); }
.stats .icon-tile svg { color: var(--gold-500); }
.stats .icon-3d { margin: 0 auto 12px; font-size: 32px; }
.stat-num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--gold-500); }
.stat-label { color: rgba(255,255,255,0.72); font-size: 0.9rem; }

/* ---------- FAQ accordion ---------- */
.faq-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: start; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  background: #fff;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.faq-question .chev { margin-left: auto; transition: transform 0.2s ease; color: var(--ink-muted); flex: none; }
.faq-question .chev svg { width: 20px; height: 20px; }
.faq-item[open] .faq-question .chev { transform: rotate(180deg); color: var(--gold-600); }
.faq-answer { padding: 0 20px 22px 20px; font-size: 0.95rem; color: var(--ink-muted); }
.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }

.pendiente {
  display: inline-block;
  background: #fff4d6;
  color: #8a6100;
  border: 1px dashed #e0b23a;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.help-box {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.help-box .icon-tile { background: var(--gold-500); margin-bottom: 0; }
.help-box .icon-tile svg { color: var(--navy-900); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 40px 0;
}
.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-left: 4px solid var(--gold-500);
  padding-left: 24px;
}
.cta-banner h2 { color: #fff; margin-bottom: 4px; font-size: 1.4rem; }
.cta-banner p { color: rgba(255,255,255,0.75); margin: 0; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 16px;
}
.contact-card .icon-tile { background: var(--navy-900); margin-bottom: 0; flex: none; }
.contact-card .icon-tile svg { color: var(--gold-500); }
.contact-card h3 { margin-bottom: 6px; }
.contact-card p { margin: 0; font-size: 0.93rem; }
.contact-card a { color: var(--navy-700); font-weight: 600; }

.schedule-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.schedule-table td { padding: 6px 0; font-size: 0.93rem; color: var(--ink-muted); border-bottom: 1px solid var(--line); }
.schedule-table td:first-child { padding-right: 36px; }
.schedule-table td:last-child { text-align: right; font-weight: 600; color: var(--ink); }

.social-row { display: flex; gap: 12px; margin-top: 10px; }
.social-row a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.social-row a:hover { background: var(--gold-600); color: var(--navy-900); }
.social-row svg { width: 20px; height: 20px; }

/* Plain (no circle) social row — used on the Contacto page, centered under the map */
.social-row--plain {
  justify-content: center;
  margin: 28px auto 0;
  gap: 22px;
}
.social-row--plain a {
  width: auto; height: auto;
  background: none;
  color: var(--gold-600);
}
.social-row--plain a:hover { color: var(--gold-700); background: none; }
.social-row--plain svg { width: 30px; height: 30px; }

.map-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }
.map-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  width: 48px;
  height: 58px;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.35));
  z-index: 2;
}

.social-follow-label {
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  margin: 28px 0 0;
}
.social-follow-label + .social-row--plain { margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer p { color: rgba(255,255,255,0.6); font-size: 0.92rem; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold-500); }
.footer-col .contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 0.92rem; }
.footer-col .contact-line svg { width: 18px; height: 18px; color: var(--gold-500); flex: none; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--gold-500); }
.footer-legal { display: flex; gap: 18px; }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 { margin-top: 2em; }
.legal-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.legal-content li { margin-bottom: 0.5em; color: var(--ink-muted); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
  z-index: 200;
}
.wa-float svg { width: 30px; height: 30px; color: #fff; }

.promo-bubble {
  position: fixed;
  bottom: 34px;
  right: 92px;
  max-width: 210px;
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.2);
  z-index: 199;
}
.promo-bubble::after {
  content: '';
  position: absolute;
  right: -6px;
  bottom: 16px;
  width: 12px; height: 12px;
  background: #fff;
  transform: rotate(45deg);
}
@media (max-width: 560px) {
  .promo-bubble { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .trust-strip .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; inset: 78px 0 0 0; background: var(--navy-900); flex-direction: column; align-items: flex-start; padding: 24px; gap: 8px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: inline-flex; }
  .main-nav .btn-gold { margin-top: 12px; }
  .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 4px 0; }
  .cta-banner .container { flex-direction: column; align-items: flex-start; text-align: left; }
}
