/*
Theme Name: Geo Tours
Theme URI: https://geotours.local
Author: Geo Tours
Description: Tema custom para el sitio público de Geo Tours (Bedrock). Renderiza /blog, /nosotros,
  /contacto, /terminos, /privacidad, /club-viajero, /kupotrip. Las demás rutas (home, /destinos,
  /programa, /checkout) las sirve el storefront Angular por API.
Version: 0.3.0
Requires PHP: 8.2
Text Domain: geotours
*/

/* ==========================================================================
   Tokens — tomados 1:1 de las variables del archivo de Figma "Geo Tours - Entregas".
   Prefijo --gt- para convivir con legacy.css (plantillas aún sin migrar).
   ========================================================================== */
:root {
    /* Color */
    --gt-text: #030712;
    --gt-text-subtle: #6a7281;
    --gt-text-inverse: #ffffff;
    --gt-bg: #f3f4f6;
    --gt-surface: #ffffff;
    --gt-surface-elevated: #e5e7eb;
    --gt-surface-inverse: #08262b;
    --gt-surface-mask: #041214;
    --gt-brand: #f53f5b;
    --gt-primary: #f53f5b;
    --gt-primary-hover: #e21c44;
    --gt-tertiary: #00505c;
    --gt-selected: #08262b;
    --gt-border: #9ca3af;
    --gt-border-subtle: #d1d5db;
    --gt-icon-subtle: #4a5563;

    /* Tipografía */
    --gt-font-heading: 'Outfit', system-ui, sans-serif;
    --gt-font-body: 'Poppins', system-ui, sans-serif;

    /* Espaciado */
    --gt-space-4: 4px;
    --gt-space-8: 8px;
    --gt-space-12: 12px;
    --gt-space-16: 16px;
    --gt-space-24: 24px;
    --gt-space-32: 32px;
    --gt-space-40: 40px;
    --gt-space-48: 48px;
    --gt-space-64: 64px;
    --gt-space-80: 80px;

    /* Forma */
    --gt-radius-4: 4px;
    --gt-radius-8: 8px;
    --gt-radius-16: 16px;

    /* Layout: 80px de margen a 1440px, se comprime en pantallas menores */
    --gt-gutter: clamp(16px, 5.56vw, 80px);
    --gt-max: 1440px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body.gt {
    margin: 0;
    background: var(--gt-bg);
    color: var(--gt-text);
    font-family: var(--gt-font-body);
    font-size: 16px;
    line-height: 24px;
}

:where(body.gt) img { max-width: 100%; height: auto; } /* :where = especificidad 0, no pisa los tamaños de cada componente */
:where(body.gt) a { color: inherit; } /* :where = especificidad 0: cada componente puede fijar su color */
:where(body.gt) :is(h1, h2, h3, h4) { margin: 0; font-family: var(--gt-font-heading); font-weight: 700; } /* especificidad 0: las clases de cada componente mandan */
:where(body.gt) p { margin: 0; }
:where(body.gt) :is(ul, ol) { margin: 0; padding: 0; list-style: none; }

.gt-wrap {
    width: 100%;
    max-width: var(--gt-max);
    margin-inline: auto;
    padding-inline: var(--gt-gutter);
}

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

.gt-skip {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--gt-surface-mask); color: var(--gt-text-inverse); padding: var(--gt-space-8) var(--gt-space-16);
}
.gt-skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gt-tertiary); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}
