/*
  Reset CSS - Yaris Constructora SAC
  Archivo: reset.css
  Descripción: Normaliza estilos predeterminados del navegador para garantizar consistencia entre diferentes navegadores
  Funciones: Elimina márgenes, paddings y estilos por defecto, establece box-sizing border-box
  Enlazado con: variables.css, main.css
*/

/* Reset básico para todos los elementos */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Configuración base del documento */
html {
    font-size: 16px; /* Base para rem units */
    line-height: 1.15; /* Mejorar legibilidad */
    -webkit-text-size-adjust: 100%; /* Prevenir zoom automático en iOS */
    scroll-behavior: smooth; /* Navegación suave entre secciones */
}

/* Configuración del body */
body {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevenir scroll horizontal */
}

/* Reset de headings */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Reset de párrafos */
p {
    margin: 0;
    line-height: 1.6;
}

/* Reset de listas */
ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Reset de enlaces */
a {
    color: inherit;
    text-decoration: none;
    background-color: transparent;
    transition: all 0.3s ease;
}

a:hover, a:focus {
    outline: none;
}

/* Reset de imágenes */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
}

/* Reset de botones */
button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
    outline: none;
    color: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Reset de inputs y forms */
input, textarea, select {
    font: inherit;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    background: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input:focus, textarea:focus, select:focus {
    outline: none;
}

/* Reset de fieldset y legend */
fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

legend {
    padding: 0;
}

/* Reset de table */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Reset de elementos de multimedia */
audio, video {
    display: block;
    max-width: 100%;
}

/* Reset de elementos inline */
strong, b {
    font-weight: 700;
}

em, i {
    font-style: italic;
}

/* Reset de elementos de código */
code, pre {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Reset de hr */
hr {
    border: none;
    height: 1px;
    background: #e0e0e0;
    margin: 1rem 0;
}

/* Reset de elementos de formulario específicos */
[type="checkbox"], [type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/* Reset de elementos de template y hidden */
[hidden] {
    display: none !important;
}

template {
    display: none;
}

/* Accesibilidad - skip links */
.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;
}

/* Mejoras de focus para accesibilidad */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 2px solid #FF6B35;
    outline-offset: 2px;
}

/* Configuración de scroll para navegadores webkit */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #FF6B35;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e55a2b;
}

/* Configuración para impresión */
@media print {
    *, *::before, *::after {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a, a:visited {
        text-decoration: underline;
    }
    
    img {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6, p {
        orphans: 3;
        widows: 3;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}