/* === uCharter — Base CSS: Variables, Reset, Tipografía === */

:root {
  /* Paleta marítima */
  --color-navy:        #0B2545;
  --color-ocean:       #1B4F8A;
  --color-sky:         #4A90D9;
  --color-foam:        #E8F4FD;
  --color-white:       #FFFFFF;
  --color-gray-100:    #F5F7FA;
  --color-gray-200:    #E9ECEF;
  --color-gray-400:    #ADB5BD;
  --color-gray-600:    #6C757D;
  --color-gray-700:    #495057;
  --color-gray-900:    #212529;
  --color-success:     #1A7F4B;
  --color-success-bg:  #D4EDDA;
  --color-warning:     #856404;
  --color-warning-bg:  #FFF3CD;
  --color-danger:      #C0392B;
  --color-danger-bg:   #F8D7DA;

  /* Tipografía */
  --font-primary: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --font-size-xs:   12px;
  --font-size-sm:   14px;
  --font-size-base: 16px;
  --font-size-lg:   18px;
  --font-size-xl:   20px;
  --font-size-2xl:  24px;
  --line-height-base: 1.6;

  /* Espaciado (base 8px) */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   32px;
  --space-2xl:  48px;

  /* Bordes */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;

  /* Sombras */
  --shadow-card:  0 2px 8px rgba(11, 37, 69, 0.10);
  --shadow-input: 0 1px 3px rgba(11, 37, 69, 0.08);
  --shadow-focus: 0 0 0 3px rgba(74, 144, 217, 0.30);

  /* Canvas de firma */
  --sig-height-mobile:  130px;
  --sig-height-desktop: 170px;
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-gray-900);
  background-color: var(--color-gray-100);
  min-height: 100vh;
}

/* === Tipografía base === */
h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
}

p { margin: 0; }

a {
  color: var(--color-ocean);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

ul, ol { list-style: none; }

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

input, select, textarea {
  font-family: inherit;
  font-size: var(--font-size-base);
}

/* === Utilidades === */
.hidden { display: none !important; }

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