/* ============================================
   Geodex - styles_v5.css
   Mobile-first puente. Sobrio.
   ============================================ */

:root {
  --geodex-purple: #a23a94;
  --geodex-purple-deep: #6b1b5f;

  --ink: #1c1a1d;
  --ink-soft: #4a464a;
  --ink-mute: #807a7f;
  --ink-faint: #b8b3b8;

  --paper: #fbfaf8;
  --paper-warm: #f5f2ee;
  --paper-card: #ffffff;
  --rule: #e6e1dc;

  --font-serif: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 96px; /* espacio para el botón flotante en mobile */
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-faint);
  text-underline-offset: 3px;
  transition: all 0.15s ease;
}
a:hover {
  color: var(--geodex-purple);
  text-decoration-color: var(--geodex-purple);
}

/* ============ PAGE CONTAINER ============ */
.page {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ============ BRAND ============ */
.brand {
  text-align: center;
  padding: 36px 0 32px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 44px;
}
.brand__name {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 6px;
}
.brand__x {
  color: var(--geodex-purple);
}
.brand__tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  font-weight: 500;
}

/* ============ HERO ============ */
.hero {
  margin-bottom: 56px;
  text-align: center;
}
.hero__location {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--geodex-purple);
  font-weight: 500;
  margin-bottom: 16px;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 6vw, 2.4rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero__lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ============ BLOCK (genérico) ============ */
.block {
  margin-bottom: 48px;
}
.block__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 12px;
}
.block__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 1px;
  background: var(--geodex-purple);
}
.block__rule {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 18px;
  line-height: 1.45;
}
.block__lead {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ============ MAPA ============ */
.map {
  border: 1px solid var(--rule);
  background: var(--paper-card);
  overflow: hidden;
}
.map iframe {
  display: block;
  width: 100%;
  border: 0;
}
@media (max-width: 600px) {
  .map iframe { height: 380px; }
}

/* ============ CASOS ============ */
.casos {
  list-style: none;
  border-top: 1px solid var(--rule);
}
.casos li {
  padding: 12px 0 12px 22px;
  position: relative;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.casos li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1;
}

/* ============ DIFERENCIAL ============ */
.diferencial {
  background: var(--paper-warm);
  padding: 28px 24px;
  margin: 0 -22px 48px;
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.diferencial__main {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.diferencial__sub {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============ AVISO ============ */
.aviso {
  border-left: 2px solid var(--geodex-purple);
  padding: 8px 0 8px 18px;
  margin-bottom: 48px;
}
.aviso__text {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============ CTA ============ */
.cta-block {
  margin-bottom: 64px;
  text-align: center;
}
.cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 22px 40px;
  background: var(--ink);
  color: white !important;
  text-decoration: none !important;
  border-radius: 2px;
  width: 100%;
  max-width: 380px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cta:hover {
  background: var(--geodex-purple-deep);
  transform: translateY(-1px);
}
.cta__text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cta__sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

/* ============ FAQ ============ */
.block--faq {
  margin-bottom: 56px;
}
.faq__item {
  border-bottom: 1px solid var(--rule);
}
.faq__item:first-of-type {
  border-top: 1px solid var(--rule);
}
.faq__item summary {
  padding: 18px 32px 18px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1px solid var(--ink-mute);
  border-bottom: 1px solid var(--ink-mute);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq__item summary:hover {
  color: var(--geodex-purple);
}
.faq__item p {
  padding: 0 0 20px;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 0.95rem;
}
.faq__item p strong {
  color: var(--ink);
  font-weight: 600;
}

/* ============ PROFESIONALES ============ */
.profesionales {
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.profesionales__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.persona {
  text-align: center;
  max-width: 280px;
  width: 100%;
}
.persona__foto {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.persona__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
}
.persona__iniciales {
  position: absolute;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  user-select: none;
}
.persona__foto--placeholder {
  background: var(--paper-warm);
}
.persona__nombre {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.persona__titulo {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.persona__matricula {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--geodex-purple);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ============ INFO FOOTER ============ */
.info {
  border-top: 1px solid var(--rule);
  padding-top: 36px;
  padding-bottom: 32px;
}
.info__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}
.info__grid dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  font-weight: 500;
  margin-bottom: 8px;
}
.info__grid dd {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
.info__grid a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--ink-faint);
}
.info__hint {
  font-size: 0.82rem;
  color: var(--ink-mute);
  font-style: italic;
}
.info__copy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-mute);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

/* ============ FLOATING WHATSAPP (sobrio) ============ */
.floating {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: white !important;
  text-decoration: none !important;
  padding: 14px 28px;
  border-radius: 2px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 24px rgba(28, 26, 29, 0.18);
  z-index: 100;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.2s ease;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100vw - 40px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.floating.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.floating:hover {
  background: var(--geodex-purple-deep);
}

/* Indicador online (puntito verde) */
.floating__indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  transition: background 0.2s ease;
  display: none;
}
.floating__indicator.online {
  display: inline-block;
  background: #25d366;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: pulse-online 2s infinite;
}
@keyframes pulse-online {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Texto "Respondemos ahora" */
.floating__status {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0;
  display: none;
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}
.floating__status.visible {
  display: inline-block;
}

/* ============ DESKTOP ============ */
@media (min-width: 720px) {
  html { font-size: 17px; }

  body { padding-bottom: 0; }

  .page { padding: 0 32px; }

  .brand { padding: 56px 0 36px; margin-bottom: 64px; }
  .brand__name { font-size: 2.6rem; }

  .hero { margin-bottom: 72px; }

  .block { margin-bottom: 64px; }

  .diferencial {
    margin: 0 -32px 64px;
    padding: 36px 32px;
  }
  .diferencial__main { font-size: 1.7rem; }

  .aviso { margin-bottom: 64px; }

  .cta-block { margin-bottom: 80px; }

  .info__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .profesionales__grid {
    flex-direction: row;
    justify-content: center;
    gap: 64px;
  }

  /* En desktop el flotante no se muestra (la página entra mejor) */
  .floating { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
