/* ================================
   GLOBAL STYLES
   Estilos base y reset global
   ================================ */

/* ================================
   RESET BÁSICO
   ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

/* ================================
   HTML Y BODY
   ================================ */

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #3E2723;
    background: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================
   TIPOGRAFÍA GLOBAL
   ================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    font-weight: 600;
    line-height: 1.2;
    color: #3E2723;
}

p {
    margin-bottom: 0;
}

/* ================================
   ENLACES
   ================================ */

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:focus {
    outline: 2px solid #A67B5B;
    outline-offset: 2px;
}

/* ================================
   IMÁGENES
   ================================ */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================================
   LISTAS
   ================================ */

ul, ol {
    list-style: none;
}

/* ================================
   BOTONES
   ================================ */

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

button:focus {
    outline: 2px solid #A67B5B;
    outline-offset: 2px;
}

/* ================================
   UTILIDADES
   ================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ================================
   SCROLLBAR PERSONALIZADA
   ================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #FAF8F5;
}

::-webkit-scrollbar-thumb {
    background: #A67B5B;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8B6A4F;
}

/* ================================
   SELECCIÓN DE TEXTO
   ================================ */

::selection {
    background: #A67B5B;
    color: #fff;
}

::-moz-selection {
    background: #A67B5B;
    color: #fff;
}

/* ================================
   SMOOTH TRANSITIONS
   ================================ */

* {
    transition: background-color 0.3s ease,
                color 0.3s ease;
}

/* ================================
   RESPONSIVE: AJUSTES DE FUENTE
   ================================ */

@media screen and (max-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }
}

/* ================================
   ACCESIBILIDAD
   ================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ================================
   FOCUS VISIBLE (Mejor accesibilidad)
   ================================ */

:focus-visible {
    outline: 2px solid #A67B5B;
    outline-offset: 3px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* ================================
   SMOOTH SCROLL PADDING
   ================================ */

html {
    scroll-padding-top: 100px; /* Altura del header */
}