/* ══════════════════════════════════════════════════════════════════════════
   GEOTEL · base compartida por la landing y los cuatro sitios de servicio.
   Aquí viven la marca y las primitivas. Si cambias un color o una fuente,
   se cambia aquí y afecta a todo el proyecto.
   ══════════════════════════════════════════════════════════════════════════ */

/* Permite interpolar el acento en vez de saltar de un color a otro. */
@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #E8B44A;
}

:root {
  /* ── Color ──────────────────────────────────────────────────────────────
     Contraste medido sobre --ink:  paper 18:1 · muted 6.4:1 · faint 5.3:1
     line-2 3.3:1 (borde de controles) · line, decorativa. */
  --ink:        #08080A;
  --ink-2:      #0E0F13;
  --ink-3:      #14151A;
  --paper:      #F5F3EF;
  --muted:      rgba(245, 243, 239, .58);
  --faint:      rgba(245, 243, 239, .52);
  --line:       rgba(245, 243, 239, .14);
  --line-2:     rgba(245, 243, 239, .38);

  /* Un acento por servicio. --accent es el activo en cada página. */
  --oro:        #E8B44A;   /* /web      */
  --verde:      #5FD08A;   /* /cctv     */
  --violeta:    #9B7BF0;   /* /telecom  */
  --cian:       #4FC3D9;   /* /asesoria */
  --accent:     var(--oro);

  /* ── Tipografía ─────────────────────────────────────────────────────── */
  --display:    'Cormorant Garamond', 'Times New Roman', serif;
  --ui:         'Syne', 'Helvetica Neue', Arial, sans-serif;

  /* ── Espacio ────────────────────────────────────────────────────────── */
  --gutter:     clamp(20px, 5.4vw, 76px);
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 40px; --sp-5: 64px; --sp-6: 96px;

  /* ── Movimiento ─────────────────────────────────────────────────────── */
  --ease:       cubic-bezier(.16, 1, .3, 1);
  --ease-io:    cubic-bezier(.76, 0, .24, 1);
  --t-fast:     .22s;
  --t-mid:      .5s;
  --t-slow:     1s;
}

/* ── Reinicio ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: var(--ink); }

/* ── Utilidades ───────────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; top: 8px; left: 8px; z-index: 200;
  padding: 12px 18px; background: var(--paper); color: var(--ink);
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  transform: translateY(-160%);
  transition: transform var(--t-fast) var(--ease);
}
.skip:focus { transform: none; }

/* ── Marca ────────────────────────────────────────────────────────────── */
/* La marca es una empresa técnica: va en Syne, no en el serif editorial.
   El contraste entre este logotipo y los títulos en cursiva es deliberado. */
.logo {
  font-family: var(--ui);
  font-weight: 800;
  font-size: clamp(17px, 1.35vw, 21px);
  letter-spacing: .16em;
  line-height: 1;
  white-space: nowrap;
}
.logo__p { color: var(--accent); }
/* El sufijo (CCTV, TELECOM, ASESORÍAS…) va sin negrita: la marca es GEOTEL
   y el sufijo solo dice en qué sitio estás. */
.logo__s { font-weight: 500; }
/* Un latido por segundo, con bordes suaves en vez de un destello duro: a 1 Hz
   no hay riesgo fotosensible y molesta mucho menos en la periferia. */
@keyframes latido {
  0%, 44%  { opacity: 1; }
  50%, 94% { opacity: .18; }
  100%     { opacity: 1; }
}
.logo__p { animation: latido 1s ease-in-out infinite; }

/* ── Tipos de texto compartidos ───────────────────────────────────────── */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0;
  font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}

.eyebrow__arrow {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: var(--accent); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  transform: rotate(90deg);
}
.eyebrow__n { color: var(--accent); font-weight: 800; }
/* La barra separadora solo aparece si hay un número delante; suelta, se
   leía como una raya perdida al principio del texto. */
.eyebrow__n + .eyebrow__k { padding-left: 12px; border-left: 1px solid var(--line-2); }

.display {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  line-height: .94;
  letter-spacing: -.015em;
  text-wrap: balance;
}

/* ── Botones ──────────────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.btn::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .55s var(--ease-io);
}
.btn svg {
  width: 17px; height: 17px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--t-mid) var(--ease);
}
.btn:hover, .btn:focus-visible { color: var(--ink); border-color: var(--accent); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover svg { transform: translateX(5px); }

/* Variante sólida: el acento de entrada, para la acción principal. */
.btn--solid { border-color: var(--accent); color: var(--ink); }
.btn--solid::before { transform: none; }
.btn--solid:hover, .btn--solid:focus-visible { color: var(--paper); }
.btn--solid:hover::before, .btn--solid:focus-visible::before { transform: translateY(101%); }

/* ── Grano de película ────────────────────────────────────────────────── */
/* `inset: 0` es deliberado: cualquier desbordamiento haría que su contenedor
   se pudiese desplazar por dentro con las flechas del teclado. */
.grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .grain { display: none; }
  .logo__p { animation: none; opacity: 1; }
}
