/* ==========================================================================
   CSS Reset Moderno - Tactical Real Estate
   ========================================================================== */

/* Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin and padding */
* {
    margin: 0;
    padding: 0;
}

/* HTML y Body base */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
}

body {
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-weight: inherit;
    font-size: inherit;
}

p, blockquote, pre,
address, hr,
table, fieldset, figure {
    margin: 0;
}

/* Listas */
ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Enlaces */
a {
    text-decoration: none;
    color: inherit;
    background-color: transparent;
}

a:active,
a:hover {
    outline: 0;
}

/* Botones */
button {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    outline: inherit;
}

button::-moz-focus-inner {
    border: 0;
    padding: 0;
}

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

input, textarea, select {
    border: none;
    outline: none;
    background: none;
}

input:focus, 
textarea:focus, 
select:focus {
    outline: none;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

legend {
    padding: 0;
}

/* Tablas */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

td, th {
    padding: 0;
}

/* Imágenes y medios */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

img {
    border-style: none;
}

svg {
    overflow: hidden;
    vertical-align: middle;
}

/* Iframe */
iframe {
    border: 0;
}

/* Elementos embebidos */
embed,
object {
    max-width: 100%;
}

/* Elementos de texto */
b, strong {
    font-weight: bolder;
}

small {
    font-size: 80%;
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Code */
code, kbd, samp, pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

/* Blockquote */
blockquote {
    quotes: none;
}

blockquote:before,
blockquote:after {
    content: '';
    content: none;
}

/* HR */
hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
    border: 0;
    border-top: 1px solid;
}

/* Hidden */
[hidden] {
    display: none !important;
}

/* Template */
template {
    display: none;
}

/* Detalles y Summary */
details {
    display: block;
}

summary {
    display: list-item;
}

/* Progress y Meter */
progress {
    vertical-align: baseline;
}

/* Abbr */
abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

/* Mark */
mark {
    background-color: transparent;
    color: inherit;
}

/* Address */
address {
    font-style: normal;
}

/* ==========================================================================
   Utilidades Adicionales (Opcional)
   ========================================================================== */

/* Prevenir zoom en inputs en iOS */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Smooth scroll para navegadores que no lo soportan */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mejora de rendimiento para animaciones */
@media (prefers-reduced-motion: no-preference) {
    :has(:target) {
        scroll-behavior: smooth;
        scroll-padding-top: 3rem;
    }
}

/* Ocultar scroll horizontal no deseado */
html, body {
    overflow-x: hidden;
}

/* ==========================================================================
   FIN CSS RESET
   ========================================================================== */