/* ============================================
   TRASTEOS YA — DESIGN TOKENS (v2 modernizado)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand palette */
  --brand-red: #E30613;
  --brand-red-dark: #B0050F;
  --brand-red-soft: #FEE2E2;

  /* Azul oscuro de marca (image 1 - el navy profundo) */
  --brand-navy: #0A1845;
  --brand-navy-darker: #050E2D;
  --brand-blue: #003DA5;
  --brand-blue-dark: #001E5C;
  --brand-blue-light: #3B82F6;

  /* Surface */
  --bg: #FFFFFF;
  --surface: #F8FAFC;
  --surface-alt: #F1F5F9;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  /* Text */
  --text: #0F172A;
  --text-muted: #475569;
  --text-on-brand: #FFFFFF;

  /* Status */
  --success: #16A34A;
  --warning: #F59E0B;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10,24,69,0.06);
  --shadow-md: 0 4px 12px rgba(10,24,69,0.08);
  --shadow-lg: 0 12px 28px rgba(10,24,69,0.14);
  --shadow-xl: 0 24px 48px rgba(10,24,69,0.18);
  --shadow-red: 0 8px 24px rgba(227,6,19,0.25);
  --shadow-blue: 0 8px 24px rgba(10,24,69,0.30);

  /* Type scale */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: clamp(20px, 2.4vw, 24px);
  --text-2xl: clamp(24px, 3vw, 32px);
  --text-3xl: clamp(30px, 4vw, 44px);
  --text-4xl: clamp(36px, 5vw, 60px);
  --text-5xl: clamp(42px, 6vw, 78px);

  /* Containers */
  --container-narrow: 720px;
  --container: 1180px;
  --container-wide: 1320px;

  /* Z */
  --z-nav: 50;
  --z-sticky: 40;
  --z-overlay: 80;
  --z-modal: 90;
  --z-toast: 100;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur: 250ms;
  --dur-slow: 400ms;

  /* Patrón rombos (diamond) — para fondos elegantes */
  --diamond-pattern:
    linear-gradient(45deg, rgba(255,255,255,0.045) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.045) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.045) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.045) 75%);
}

/* ============================================
   RESET + BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* NO overflow-x: hidden en html — rompe position:sticky del navbar.
     Lo dejamos solo en body. */
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv11';
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.025em;
}

h1 { font-size: var(--text-4xl); font-weight: 800; }
h2 { font-size: var(--text-3xl); font-weight: 700; }
h3 { font-size: var(--text-2xl); font-weight: 700; }
h4 { font-size: var(--text-xl); font-weight: 600; }

p { color: var(--text); }

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}
a:hover { color: var(--brand-navy); }

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

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

ul, ol { list-style: none; }

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

::selection { background: var(--brand-red); color: white; }

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

:focus-visible {
  outline: 3px solid var(--brand-blue-light);
  outline-offset: 2px;
  border-radius: 4px;
}
