/* ==========================================================================
   SIDIUM AI - DESIGN SYSTEM & RESET CSS
   Colores de marca: Azul Marino (#0B1D3A) & Dorado (#B08D57)
   ========================================================================== */

:root {
  /* Brand Palette */
  --color-primary: #0B1D3A;        /* Azul Marino Institucional */
  --color-primary-dark: #061122;   /* Azul Marino Profundo */
  --color-primary-light: #152E59;  /* Azul Marino Medio */
  --color-primary-soft: #1E3A6D;   /* Azul Marino Acento */

  --color-accent: #B08D57;         /* Dorado / Bronce Elegante */
  --color-accent-light: #D4AF37;   /* Dorado Claro */
  --color-accent-dark: #8E6F3E;    /* Dorado Oscuro */
  --color-accent-glow: rgba(176, 141, 87, 0.25);

  /* Neutrals */
  --color-bg-light: #F4F5F7;       /* Gris Claro Fondos */
  --color-bg-card: rgba(255, 255, 255, 0.35); /* Transparencia Cristal Visible Tarjetas */
  --color-bg-alt: rgba(234, 236, 239, 0.30);   /* Gris Contraste Translúcido */
  --color-white: #FFFFFF;
  --color-border: rgba(176, 141, 87, 0.30);
  --color-border-focus: #B08D57;

  /* Typography Colors */
  --color-text-main: #0B1D3A;      /* Texto Principal Oscuro */
  --color-text-body: #334155;      /* Texto de Párrafos */
  --color-text-muted: #64748B;     /* Texto Secundario */
  --color-text-light: #F8FAFC;     /* Texto sobre Fondo Oscuro */
  --color-text-light-muted: #94A3B8;

  /* Functional Status */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-info: #3B82F6;

  /* Typography Scale */
  --font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(11, 29, 58, 0.06);
  --shadow-md: 0 4px 16px rgba(11, 29, 58, 0.08);
  --shadow-lg: 0 12px 32px rgba(11, 29, 58, 0.12);
  --shadow-xl: 0 20px 48px rgba(11, 29, 58, 0.16);
  --shadow-gold: 0 8px 24px rgba(176, 141, 87, 0.28);
  --shadow-gold-lg: 0 14px 36px rgba(176, 141, 87, 0.4);

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout & Safe Areas (iPhone Notch & Dynamic Island) */
  --container-max: 1240px;
  --header-height: 84px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background-color: var(--color-bg-light);
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-body);
  background-color: var(--color-bg-light);
  background-image: linear-gradient(to bottom, #07152B 0px, #0B1D3A 650px, #F4F5F7 780px, #F4F5F7 100%);
  background-repeat: no-repeat;
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

body.mobile-nav-locked {
  overflow: hidden !important;
  touch-action: none;
  position: fixed;
  width: 100%;
  height: 100%;
}

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul, ol {
  list-style: none;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

p {
  margin-bottom: 1rem;
}

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

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