/* 
  ========================================
  SOFCOM - CSS Reset & Normalize
  ========================================
  Reset básico para consistencia entre
  navegadores.
*/

/* ===== BOX SIZING ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ===== RESET DE MARGIN Y PADDING ===== */
* {
  margin: 0;
  padding: 0;
}

/* ===== html Y BODY ===== */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== ELEMENTOS DE TEXTO ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1em;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== IMÁGENES ===== */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  vertical-align: middle;
  border-style: none;
}

/* ===== FORMULARIOS ===== */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

input:focus,
button:focus,
textarea:focus,
select:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

label {
  display: inline-block;
  margin-bottom: 0.5em;
  font-weight: 500;
}

/* ===== LISTAS ===== */
ul,
ol {
  list-style: none;
}

/* ===== TABLAS ===== */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ===== CITAS ===== */
blockquote {
  margin: 1em 0;
  padding-left: 1em;
  border-left: 4px solid #e0e0e0;
  font-style: italic;
}

/* ===== CODIGO ===== */
code,
pre {
  font-family: 'Courier New', Courier, monospace;
}

pre {
  background-color: #f5f5f5;
  padding: 1em;
  overflow-x: auto;
  border-radius: 4px;
}

code {
  background-color: #f5f5f5;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

/* ===== UTIDADES DE ACCESIBILIDAD ===== */
.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;
}

.sr-only-focusable:focus,
.sr-only-focusable:active {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ===== SELECCIÓN DE TEXTO ===== */
::selection {
  background-color: #0066cc;
  color: white;
}

::-moz-selection {
  background-color: #0066cc;
  color: white;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ===== CLASES UTILITARIAS BASE ===== */
.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
