/*
 * V2GO — Global Styles
 * Reset, fuentes, tipografía base, contenedor, botones, utilidades.
 * Importar DESPUÉS de design-tokens.css
 */

/* ═══════════════════════════════════════════════════
   FUENTES GEOMANIST (archivos locales del cliente)
   ═══════════════════════════════════════════════════ */

@font-face {
  font-family: 'Geomanist';
  src: url('./fonts/Geomanist-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geomanist';
  src: url('./fonts/Geomanist-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ═══════════════════════════════════════════════════
   RESET MÍNIMO
   ═══════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: var(--weight-light);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--v2go-text);
  background-color: var(--v2go-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* backstop anti-scroll horizontal en móvil */
}

img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ═══════════════════════════════════════════════════
   CONTENEDOR
   ═══════════════════════════════════════════════════ */

.v2go-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.v2go-container--narrow {
  max-width: var(--container-narrow);
}

/* ═══════════════════════════════════════════════════
   TIPOGRAFÍA BASE
   ═══════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--v2go-navy);
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl)); }
h4 { font-size: clamp(var(--text-lg), 2vw, var(--text-2xl)); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  line-height: var(--leading-relaxed);
  color: var(--v2go-text-muted);
}

strong, b {
  font-weight: var(--weight-bold);
}

/* ═══════════════════════════════════════════════════
   EYEBROW / LABEL COMPONENTE
   ═══════════════════════════════════════════════════ */

.v2go-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--v2go-amber);
  margin-bottom: var(--space-4);
}

.v2go-eyebrow--dark {
  color: var(--v2go-navy);
}

.v2go-eyebrow--light {
  color: rgba(247, 174, 31, 0.85);
}

/* ═══════════════════════════════════════════════════
   BOTONES
   ═══════════════════════════════════════════════════ */

.v2go-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height: 1;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-none);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--duration-normal) var(--ease-out),
    color var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.v2go-btn:focus-visible {
  outline: 3px solid var(--v2go-amber);
  outline-offset: 3px;
}

/* Primario — amber sobre navy */
.v2go-btn--primary {
  background-color: var(--v2go-amber);
  color: var(--v2go-navy);
  border-color: var(--v2go-amber);
}

.v2go-btn--primary:hover {
  background-color: var(--v2go-amber-hover);
  border-color: var(--v2go-amber-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-amber);
}

.v2go-btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Secundario / Ghost claro (sobre fondos oscuros) */
.v2go-btn--ghost {
  background-color: transparent;
  color: var(--v2go-white);
  border-color: rgba(255, 255, 255, 0.35);
}

.v2go-btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.10);
  border-color: var(--v2go-white);
}

/* Ghost oscuro (sobre fondos claros) */
.v2go-btn--ghost-dark {
  background-color: transparent;
  color: var(--v2go-navy);
  border-color: var(--v2go-navy);
}

.v2go-btn--ghost-dark:hover {
  background-color: var(--v2go-navy);
  color: var(--v2go-white);
}

/* Sólido navy */
.v2go-btn--navy {
  background-color: var(--v2go-navy);
  color: var(--v2go-white);
  border-color: var(--v2go-navy);
}

.v2go-btn--navy:hover {
  background-color: var(--v2go-navy-light);
  border-color: var(--v2go-navy-light);
  transform: translateY(-1px);
}

/* Tamaños */
.v2go-btn--lg {
  font-size: var(--text-base);
  padding: var(--space-5) var(--space-10);
}

.v2go-btn--sm {
  font-size: var(--text-xs);
  padding: var(--space-3) var(--space-6);
}

/* En móvil los botones largos pueden envolver para no desbordar */
@media (max-width: 600px) {
  .v2go-btn {
    white-space: normal;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════
   SECCIÓN BASE
   ═══════════════════════════════════════════════════ */

.v2go-section {
  padding-block: var(--section-py);
}

.v2go-section--lg {
  padding-block: var(--section-py-lg);
}

/* Header de sección */
.v2go-section-header {
  margin-bottom: var(--space-16);
}

.v2go-section-header--center {
  text-align: center;
}

.v2go-section-header__title {
  margin-bottom: var(--space-4);
}

.v2go-section-header__desc {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  max-width: 60ch;
}

.v2go-section-header--center .v2go-section-header__desc {
  margin-inline: auto;
}

/* ═══════════════════════════════════════════════════
   GRIDS UTILITARIOS
   ═══════════════════════════════════════════════════ */

.v2go-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.v2go-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.v2go-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .v2go-grid-2,
  .v2go-grid-3,
  .v2go-grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .v2go-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .v2go-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════════
   ACCESIBILIDAD
   ═══════════════════════════════════════════════════ */

.v2go-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 3px solid var(--v2go-amber);
  outline-offset: 2px;
}

/* Skip to content */
.v2go-skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  background: var(--v2go-amber);
  color: var(--v2go-navy);
  padding: var(--space-3) var(--space-6);
  font-weight: var(--weight-bold);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--duration-fast);
}

.v2go-skip-link:focus {
  top: 0;
}

/* ═══════════════════════════════════════════════════
   DIVISOR DIAGONAL (motivo visual de la marca)
   ═══════════════════════════════════════════════════ */

.v2go-divider--diagonal-down {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  padding-bottom: calc(var(--section-py) + 4rem);
}

.v2go-divider--diagonal-up {
  clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 100%);
  padding-top: calc(var(--section-py) + 4rem);
  margin-top: -3rem;
}

/* Barra acento amber */
.v2go-accent-bar {
  display: block;
  width: 48px;
  height: 4px;
  background-color: var(--v2go-amber);
  margin-bottom: var(--space-6);
}

.v2go-accent-bar--center {
  margin-inline: auto;
}

/* ═══════════════════════════════════════════════════
   BOTÓN WHATSAPP FLOTANTE (site-wide)
   ═══════════════════════════════════════════════════ */

.v2go-wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  width: 62px;
  height: 62px;
  border-radius: var(--radius-full);
  background-color: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast);
}

.v2go-wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background-color: #25D366;
  opacity: 0.55;
  z-index: -1;
  animation: v2go-wa-pulse 2.4s ease-out infinite;
}

@keyframes v2go-wa-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.v2go-wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.v2go-wa-float svg { width: 34px; height: 34px; }

@media (prefers-reduced-motion: reduce) {
  .v2go-wa-float::before { animation: none; }
}

@media (max-width: 600px) {
  .v2go-wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .v2go-wa-float svg { width: 30px; height: 30px; }
}
