/* JAML CODE — estilos compartidos de todas las páginas excepto index.html.
   Nav, hero, footer y extras replican el diseño del index: si cambias uno, cambia el otro. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button, input, textarea, select { font: inherit; }

:root {
  --bg:          #ffffff;
  --surface:     #f5f5f7;
  --text:        #1d1d1f;
  --muted:       rgba(0,0,0,0.50);
  --border:      rgba(0,0,0,0.08);
  --accent:      #6366f1;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;
  --radius-pill: 9999px;
  --radius-card: 16px;
  --container:   1200px;
  --pad-x:       clamp(1.25rem, 5vw, 5rem);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }

/* NAV — transparente arriba, difuminado al hacer scroll (igual que el index) */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 64px;
  display: flex; align-items: center; padding-inline: var(--pad-x);
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease;
}
nav.scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-inner {
  width: 100%; max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-logo { font-size: 15px; font-weight: 600; letter-spacing: 0.05em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color 150ms ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-nav {
  background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600;
  padding: 10px 22px; border-radius: var(--radius-pill); border: none; cursor: pointer;
  transition: opacity 150ms ease, transform 150ms ease; white-space: nowrap;
  display: inline-block;
}
.btn-nav:hover { opacity: 0.88; transform: scale(1.02); }
.nav-mobile-btn {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.nav-mobile-btn .bar {
  display: block; width: 22px; height: 1.5px; background: var(--text);
  transition: transform 280ms cubic-bezier(0.16,1,0.3,1), opacity 200ms ease;
  transform-origin: center;
}
.nav-mobile-btn.is-open .bar1 { transform: translateY(6.5px) rotate(45deg); }
.nav-mobile-btn.is-open .bar2 { opacity: 0; transform: scaleX(0); }
.nav-mobile-btn.is-open .bar3 { transform: translateY(-6.5px) rotate(-45deg); }
.nav-drawer {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 1.5rem var(--pad-x) 2rem; border-bottom: 1px solid var(--border);
  z-index: 99; flex-direction: column; gap: 1.25rem;
}
.nav-drawer.open { display: flex; }
.nav-drawer a { font-size: 16px; font-weight: 500; color: var(--muted); transition: color 150ms ease; }
.nav-drawer a:hover { color: var(--text); }
.nav-drawer .drawer-cta {
  margin-top: 0.5rem; display: inline-flex; align-items: center; justify-content: center;
  background: var(--text); color: var(--bg); font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: var(--radius-pill);
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
}

/* HERO — mismo lienzo de ondas, tarjeta del fundador y tipografía que el index */
.hero-local {
  position: relative; overflow: hidden; text-align: center;
  min-height: min(100svh, 900px);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 112px; padding-bottom: clamp(4rem, 8vw, 6rem);
  background: #ffffff;
}
.hero-local > .container { position: relative; z-index: 2; width: 100%; }
.hero-ribbon { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Ondas detrás del encabezado en páginas sin hero (artículos) */
.page-ribbon {
  position: absolute; top: 0; left: 0; right: 0; height: 560px; z-index: 0; pointer-events: none;
  opacity: 0.75;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent);
  mask-image: linear-gradient(to bottom, #000 35%, transparent);
}

.hero-founder {
  display: inline-flex; align-items: center; gap: 10px; text-align: left;
  background: rgba(255,255,255,0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(99,102,241,0.16); border-radius: var(--radius-pill);
  padding: 6px 14px 6px 6px; margin-bottom: 1.75rem;
  box-shadow: 0 4px 24px rgba(99,102,241,0.12), 0 1px 4px rgba(0,0,0,0.04);
}
.hero-founder-img {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: center top;
  border: 2px solid rgba(99,102,241,0.22); box-shadow: 0 2px 8px rgba(99,102,241,0.18); flex-shrink: 0;
}
.hero-founder-info { display: flex; flex-direction: column; gap: 2px; }
.hero-founder-name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1; letter-spacing: -0.01em; }
.hero-founder-role { font-size: 11px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.hero-founder-verified {
  width: 24px; height: 24px; border-radius: 50%; background: rgba(99,102,241,0.07);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-cta-note { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0.01em; margin-top: 1.25rem; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: rgba(0,0,0,0.28); margin-inline: 6px; }
.eyebrow {
  font-size: 12px; font-weight: 500; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1.25rem;
}
h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 600; line-height: 1.08;
  letter-spacing: -0.02em; max-width: 920px; margin-inline: auto; margin-bottom: 1.5rem;
}
h1 em { font-family: var(--font-serif); font-weight: 400; font-style: italic; }
.hero-sub {
  font-size: clamp(16px, 2vw, 19px); color: var(--muted); line-height: 1.7;
  max-width: 620px; margin-inline: auto; margin-bottom: 2.5rem;
}
.btn-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--text); color: var(--bg); font-size: 15px; font-weight: 600;
  padding: 14px 28px; border-radius: var(--radius-pill); border: none; cursor: pointer;
  transition: opacity 150ms ease, transform 150ms ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { opacity: 0.88; transform: scale(1.02); }
.btn-secondary {
  background: rgba(0,0,0,0.04); color: var(--text); font-size: 15px; font-weight: 500;
  padding: 14px 28px; border-radius: var(--radius-pill); border: 1px solid rgba(0,0,0,0.12);
  cursor: pointer; transition: background 200ms ease, border-color 200ms ease;
  display: inline-block;
}
.btn-secondary:hover { background: rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.22); }

/* SECTIONS */
section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-label {
  font-size: 12px; font-weight: 500; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1.25rem;
}
h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 600; line-height: 1.18;
  letter-spacing: -0.01em; margin-bottom: 1rem; max-width: 760px;
}
h2 em { font-family: var(--font-serif); font-weight: 400; font-style: italic; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.lead { font-size: 17px; color: var(--muted); line-height: 1.8; max-width: 680px; }
.lead + .lead { margin-top: 1.25rem; }
.prose p { font-size: 16px; color: var(--muted); line-height: 1.8; max-width: 720px; }
.prose p + p { margin-top: 1.15rem; }
.prose strong { color: var(--text); font-weight: 600; }

/* GRID DE SERVICIOS */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 3rem; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 1.75rem; transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.card:hover {
  border-color: rgba(99,102,241,0.35); transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(99,102,241,0.10);
}
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }

/* ZONAS */
.zonas { background: var(--surface); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2rem; }
.chip {
  background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 8px 18px; font-size: 14px; font-weight: 500; color: var(--text);
}

/* FAQ */
.faq-list { margin-top: 2.5rem; max-width: 820px; }
details {
  border-bottom: 1px solid var(--border); padding-block: 1.35rem;
}
details summary {
  font-size: 17px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+'; font-size: 22px; font-weight: 400; color: var(--accent);
  line-height: 1; flex-shrink: 0; transition: transform 200ms ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p { font-size: 16px; color: var(--muted); line-height: 1.8; margin-top: 0.85rem; max-width: 720px; }

/* CTA FINAL */
.cta-final { background: var(--text); color: #ffffff; text-align: center; }
.cta-final h2 { color: #ffffff; margin-inline: auto; }
.cta-final p { color: rgba(255,255,255,0.62); font-size: 17px; max-width: 540px; margin-inline: auto; margin-bottom: 2.25rem; line-height: 1.7; }
.cta-final .btn-primary { background: #ffffff; color: var(--text); }
.cta-final .btn-secondary { background: rgba(255,255,255,0.08); color: #ffffff; border-color: rgba(255,255,255,0.22); }
.cta-final .btn-secondary:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.4); }

/* OTRAS CIUDADES */
.otras { border-top: 1px solid var(--border); padding-block: 3rem; }
.otras-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1rem; }
.otras-links { display: flex; flex-wrap: wrap; gap: 10px; }
.otras-links a {
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 8px 18px; font-size: 14px; font-weight: 500;
  transition: border-color 150ms ease, color 150ms ease;
}
.otras-links a:hover { border-color: var(--accent); color: var(--accent); }

/* FOOTER — mismo que el index */
footer { border-top: 1px solid var(--border); padding-block: 3rem; background: var(--bg); }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border);
}
.footer-brand-name { font-size: 15px; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 10px; }
.footer-brand-tag { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 220px; }
.footer-col-title { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(0,0,0,0.35); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--muted); transition: color 150ms ease; }
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom { padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-copy { font-size: 13px; color: rgba(0,0,0,0.28); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-top { grid-template-columns: 1fr; } }

/* EXTRAS DEL INDEX: barra de progreso, brillo del cursor y WhatsApp flotante */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 200; pointer-events: none;
  background: linear-gradient(90deg, rgba(99,102,241,0.9), rgba(139,92,246,0.9), rgba(6,182,212,0.8));
  transition: width 60ms linear;
}
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,92,246,0.10) 0%, transparent 68%);
  transform: translate(-999px, -999px); will-change: transform; mix-blend-mode: multiply;
}
@media (hover: none) { .cursor-glow { display: none; } }
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: #ffffff; font-size: 14px; font-weight: 600;
  padding: 12px 18px 12px 14px; border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(37,211,102,0.35), 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.12); }
@media (max-width: 600px) { .wa-float { padding: 14px; } .wa-float span { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .wa-float { animation: wa-in 700ms cubic-bezier(0.34,1.56,0.64,1) 1.2s backwards; }
  .wa-float::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    animation: wa-ring 4.5s ease-out 3s infinite;
  }
  .wa-float:hover::after { animation: none; }
}
@keyframes wa-in { from { opacity: 0; transform: translateY(24px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes wa-ring { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.45); } 35%, 100% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } }
