@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --slate: #1b2838;
  --slate2: #243447;
  --gold: #c9a227;
  --gold-light: #e8d48a;
  --cream: #f7f4ef;
  --white: #ffffff;
  --muted: #5c6b7a;
  --border: rgba(27, 40, 56, 0.12);
  --font-h: 'Fraunces', Georgia, serif;
  --font-b: 'Source Sans 3', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-b); background: var(--cream); color: var(--slate); line-height: 1.65; }
h1, h2, h3 { font-family: var(--font-h); font-weight: 600; line-height: 1.2; }
a { color: var(--slate); }
img { max-width: 100%; display: block; height: auto; }

.skip-link { position: absolute; left: -9999px; z-index: 999; background: var(--gold); padding: 8px 16px; }
.skip-link:focus { left: 8px; top: 8px; }

/* Top bar BCV */
.top-bar {
  background: var(--slate);
  color: #fff;
  font-size: 0.8rem;
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
}
.tasa-bcv {
  font-weight: 600;
  color: var(--gold-light);
  font-size: 0.82rem;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.logo img { height: 44px; }
.nav-panel { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav-panel a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
}
.nav-panel a:hover, .nav-panel a.active { color: var(--gold); }
.nav-btn {
  display: none;
  background: var(--slate);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}
.btn-gold { background: var(--gold); color: var(--slate); }
.btn-gold:hover { background: var(--gold-light); text-decoration: none; }
.btn-slate { background: var(--slate); color: #fff; }
.btn-slate:hover { background: var(--slate2); text-decoration: none; color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--slate); color: var(--slate); }
.btn-ghost:hover { background: var(--slate); color: #fff; text-decoration: none; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }

/* Hero (estilo editorial consultoría) */
.hero {
  background: var(--cream);
  color: var(--slate);
  overflow: hidden;
}
.hero-gc .hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px 56px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.hero-visual img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(27, 40, 56, 0.15);
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 28px;
}
.text-accent { color: var(--gold); }
.hero-cta-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 1rem;
}
.hero-cta-link a { text-decoration: none; color: var(--slate); }
.hero-cta-link a:hover .text-accent { text-decoration: underline; }
.cta-arrow {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--slate);
  color: var(--gold-light);
  border-radius: 50%;
  font-size: 1.2rem;
}

.band-purpose {
  background: var(--slate);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}
.band-purpose--alt { background: var(--slate2); }
.band-inner { max-width: 720px; margin: 0 auto; }
.band-purpose h5 {
  font-family: var(--font-b);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-bottom: 12px;
  font-weight: 700;
}
.band-purpose p {
  font-family: var(--font-h);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  line-height: 1.45;
}

.section-big-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  position: relative;
  z-index: 1;
}
.section-title-block { padding-bottom: 8px; }

.split-block {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split-block--reverse .split-media { order: 2; }
.split-block--reverse .split-text { order: 1; }
.split-text h2 { font-size: 1.65rem; margin-bottom: 16px; }
.split-text p { color: var(--muted); margin-bottom: 14px; text-align: justify; }
.split-media img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}
.split-media--frame img {
  min-height: 280px;
  max-height: 400px;
  box-shadow: 0 16px 40px rgba(27, 40, 56, 0.12);
  border: 4px solid var(--white);
}

.beliefs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.beliefs-list li {
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-size: 0.95rem;
}
.split-block--creencias { background: var(--white); border-radius: 8px; margin-bottom: 24px; }

.srv-areas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 36px;
}
.srv-areas a {
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: 0.2s;
}
.srv-areas a:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
  color: var(--slate);
}

.timeline-section { padding-top: 0; }
.timeline-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.timeline-nav button {
  padding: 8px 16px;
  border: none;
  background: transparent;
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-radius: 4px;
}
.timeline-nav button.on,
.timeline-nav button:hover {
  background: var(--slate);
  color: var(--gold-light);
}
.timeline-panel {
  display: none;
  animation: fadeIn 0.35s ease;
}
.timeline-panel.on { display: block; }
.timeline-panel p { color: var(--muted); margin-bottom: 10px; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Stats */
.stats {
  max-width: 1180px;
  margin: -32px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-box {
  background: var(--white);
  padding: 24px;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(27,40,56,0.1);
  border-top: 4px solid var(--gold);
}
.stat-box strong { display: block; font-family: var(--font-h); font-size: 2rem; color: var(--slate); }
.stat-box span { font-size: 0.85rem; color: var(--muted); }

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px;
}
.section-head { margin-bottom: 32px; max-width: 640px; }
.section-head h2 { font-size: 1.85rem; margin-bottom: 10px; }
.section-head p { color: var(--muted); }

/* Service cards */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.srv-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.srv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(27,40,56,0.12);
}
.srv-img { position: relative; overflow: hidden; }
.srv-img img { width: 100%; height: 200px; object-fit: cover; }
.srv-dur {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--slate);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
}
.srv-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.srv-sku { font-size: 0.72rem; color: var(--gold); font-weight: 700; letter-spacing: 0.05em; }
.srv-body h3 { font-size: 1.15rem; margin: 8px 0; font-family: var(--font-h); }
.srv-body h3 a { text-decoration: none; color: var(--slate); }
.srv-body h3 a:hover { color: var(--gold); }
.srv-body > p { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; flex: 1; }
.srv-price { margin-bottom: 14px; }
.srv-price strong { font-size: 1.35rem; color: var(--slate); display: block; }
.price-was { font-size: 0.85rem; color: var(--muted); text-decoration: line-through; margin-right: 8px; }
.price-bs { font-size: 0.82rem; color: var(--muted); display: block; margin-top: 4px; }
.srv-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Process */
.process {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process-steps li {
  list-style: none;
  padding: 20px;
  border-left: 2px solid var(--gold);
  counter-increment: step;
}
.process-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-h);
  font-size: 1.5rem;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}
.process-steps h4 { font-size: 1rem; margin-bottom: 6px; }
.process-steps p { font-size: 0.88rem; color: var(--muted); }

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--white);
  padding: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.contact-wrap input, .contact-wrap textarea {
  width: 100%;
  margin: 6px 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
}
.contact-wrap textarea { min-height: 100px; resize: vertical; }
.mapa iframe { width: 100%; height: 280px; border: 0; border-radius: 6px; }

/* Footer */
.site-footer {
  background: var(--slate);
  color: rgba(255,255,255,0.75);
  margin-top: 48px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-inner h4 { color: var(--gold-light); margin-bottom: 12px; font-family: var(--font-b); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-inner ul { list-style: none; }
.footer-inner li { margin-bottom: 8px; }
.footer-inner a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-inner a:hover { color: #fff; }
.footer-bottom { text-align: center; padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; }

.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.scroll-top {
  position: fixed;
  bottom: 88px;
  right: 28px;
  z-index: 89;
  width: 42px;
  height: 42px;
  background: var(--gold);
  color: var(--slate);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  font-weight: 700;
}
.scroll-top.show { opacity: 1; pointer-events: auto; }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  z-index: 200;
  transform: translateY(100%);
  transition: 0.3s;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.cookie-inner p { font-size: 0.88rem; color: var(--muted); flex: 1; }

.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filtros button {
  padding: 8px 18px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-b);
  font-weight: 600;
  color: var(--muted);
}
.filtros button.on, .filtros button:hover {
  background: var(--slate);
  color: var(--gold-light);
  border-color: var(--slate);
}

.pagina-legal { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.pagina-legal h1 { color: var(--slate); margin-bottom: 8px; }
.pagina-legal h2 { margin: 24px 0 10px; font-size: 1.15rem; color: var(--gold); }
.pagina-legal p, .pagina-legal li { color: var(--muted); margin-bottom: 10px; }
.empty { text-align: center; padding: 48px; color: var(--muted); grid-column: 1/-1; }
.legal-note { font-size: 0.82rem; color: var(--muted); margin-top: 12px; max-width: 420px; }
.pagina-legal a { color: var(--slate); }

@media (max-width: 900px) {
  .hero-gc .hero-grid,
  .split-block,
  .split-block--reverse .split-media,
  .split-block--reverse .split-text { grid-template-columns: 1fr; }
  .split-block--reverse .split-media,
  .split-block--reverse .split-text { order: unset; }
  .contact-wrap { grid-template-columns: 1fr; }
  .stats, .process-steps { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-btn { display: block; }
  .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-panel.open { display: flex; }
  .stats, .process-steps { grid-template-columns: 1fr; }
}
