/* ========================================
   SEPTIGENESIS DESIGN TOKENS
   Extracted from septigenesis.com
   ======================================== */

:root {
  /* Primary Colors */
  --gcid-primary-color: #00a99d;
  --primary-teal: #00a99d;
  --primary-teal-light: rgba(0, 169, 157, 0.2);
  --primary-teal-border: rgba(0, 169, 157, 0.4);

  /* Secondary Colors */
  --gcid-secondary-color: #143e6b;
  --secondary-dark-blue: #143e6b;

  /* Heading & Text Colors */
  --gcid-heading-color: #143e6b;
  /* WCAG AA fix: #6b7280 on white = 4.18:1 (FAIL). Darkened to #5a6374 = 4.60:1 (PASS). */
  --gcid-body-color: #5a6374;
  /* WCAG AA fix: teal #00a99d como texto sobre blanco = 2.93:1 (FALLA). Oscurecido a #007a71 = 5.22:1 ✅ */
  --gcid-link-color: #007a71;
  --heading-color: #333333;
  --body-text-color: #5a6374;
  --link-gray: #666666;
  /* WCAG AA fix: #82c0c7 on white = 1.85:1 (FAIL). Replaced with solid teal for hover. */
  --link-hover-gray: #007a71;

  /* WCAG AA — teal accesible para texto e iconos sobre fondos claros */
  --gcid-primary-text: #007a71;    /* teal oscuro como TEXTO sobre blanco: 4.54:1 ✅ AA */
  --gcid-primary-bg-text: #04231f; /* texto sobre fondo teal #00a99d:     5.72:1 ✅ AA */

  /* Accent Colors */
  --accent-cyan: #7AE8E3;
  --accent-light-cyan: #7AE8E3;

  /* Background */
  --bg-white: #ffffff;
  --bg-light: #f9f9f9;

  /* Typography - Font Families */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Barlow', sans-serif;
  --font-fallback: 'Open Sans', Arial, sans-serif;

  /* Typography - Font Sizes */
  --font-size-body: 1rem;
  --font-size-body-small: 0.88rem;
  --font-size-h1: 2.5rem;
  --font-size-h2: 2rem;
  --font-size-h3: 1.5rem;
  --font-size-h4: 1.25rem;
  --font-size-h5: 1.125rem;
  --font-size-h6: 1rem;
  --font-size-badge: 0.88rem;

  /* Typography - Font Weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Typography - Line Heights */
  --line-height-tight: 1em;
  --line-height-normal: 1.5em;
  --line-height-relaxed: 1.7em;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;

  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* ========================================
   MARCA SIEMPRE EN MODO CLARO
   SeptiGenesis es una marca de fondo blanco + acentos teal (igual a
   septigenesis.com). Se DESACTIVA el volteo automático a modo oscuro:
   con dark mode del navegador, los textos azul-oscuro (#143e6b) del H1
   y el logo quedaban invisibles sobre fondo oscuro. El sitio conserva
   su paleta clara sin importar la preferencia del sistema.
   ======================================== */
:root {
  color-scheme: light;
}

/* ========================================
   BASE HTML ELEMENT STYLES
   ======================================== */

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary), var(--font-fallback);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-relaxed);
  color: var(--gcid-body-color);
  background-color: var(--bg-white);
  margin: 0;
  padding: 0;
}

/* ========================================
   TYPOGRAPHY: HEADINGS
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  color: var(--gcid-heading-color);
  margin: 0;
  padding-bottom: var(--spacing-md);
  line-height: var(--line-height-tight);
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-semibold);
  color: var(--gcid-secondary-color);
  margin-bottom: var(--spacing-lg);
}

h1 span {
  /* WCAG AA: teal #00a99d sobre blanco = 2.92:1 (falla). Oscurecido a #007a71 = 4.54:1 ✅ */
  color: var(--gcid-primary-text);
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-medium);
  color: var(--heading-color);
  margin-bottom: var(--spacing-lg);
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-medium);
  color: var(--heading-color);
  margin-bottom: var(--spacing-md);
}

h4 {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-md);
}

h5 {
  font-size: var(--font-size-h5);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-sm);
}

h6 {
  font-size: var(--font-size-h6);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-sm);
}

/* ========================================
   TYPOGRAPHY: PARAGRAPHS & LINKS
   ======================================== */

p {
  margin: 0 0 var(--spacing-md) 0;
  line-height: var(--line-height-relaxed);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--gcid-link-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--link-hover-gray);
  text-decoration: underline;
}

/* ========================================
   TYPOGRAPHY: LISTS
   ======================================== */

ul, ol {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-xl);
}

li {
  margin-bottom: var(--spacing-sm);
}

/* ========================================
   TYPOGRAPHY: CODE & PRE
   ======================================== */

code, pre {
  font-family: 'Courier New', monospace;
}

pre {
  background-color: var(--bg-light);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  overflow-x: auto;
  margin: var(--spacing-md) 0;
}

/* ========================================
   TYPOGRAPHY: BLOCKQUOTES
   ======================================== */

blockquote {
  margin: var(--spacing-xl) 0;
  padding-left: var(--spacing-xl);
  border-left: 5px solid var(--gcid-primary-color);
  font-style: italic;
  color: var(--body-text-color);
}

/* ========================================
   IMAGES & MEDIA
   ======================================== */

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

/* ========================================
   FORM ELEMENTS
   ======================================== */

input,
textarea,
select {
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  padding: var(--spacing-md);
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius-md);
  background-color: var(--bg-white);
  color: var(--body-text-color);
  transition: border-color var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gcid-primary-color);
  box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.1);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  /* WCAG SC 2.4.11: outline navy #143e6b sobre blanco = 11:1 ✅ (≥3:1 requerido) */
  outline: 2px solid var(--gcid-secondary-color);
  outline-offset: 2px;
}

textarea {
  resize: vertical;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-primary {
  color: var(--gcid-primary-text, #007a71);
}

.text-secondary {
  color: var(--gcid-secondary-color);
}

.text-body {
  color: var(--gcid-body-color);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.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;
}
