/* ============================================
   BASE - RAÍZ Y SOMBRA
   Reset + variables + tipografía
   ============================================ */

/* ============================================
   FUENTES
   ============================================ */
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../assets/fonts/CormorantGaramond-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../assets/fonts/CormorantGaramond-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../assets/fonts/CormorantGaramond-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../assets/fonts/CormorantGaramond-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DM Sans';
    src: url('../assets/fonts/DMSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DM Sans';
    src: url('../assets/fonts/DMSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DM Sans';
    src: url('../assets/fonts/DMSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   VARIABLES
   ============================================ */
:root {
    /* Colores del negocio (del JSON) */
    --primario: #2D4A3E;
    --secundario: #C9A254;
    --fondo: #F3EDE0;
    --texto: #2A2820;

    /* Variaciones */
    --primario-oscuro: #1E3329;
    --primario-claro: #4A6B5C;
    --secundario-oscuro: #A8843E;
    --secundario-claro: #E0C48A;
    --texto-suave: #5A554A;
    --texto-tenue: #8A8275;
    --blanco: #FFFFFF;
    --piedra: #E8E1D2;
    --borde: #DDD4C2;
    --borde-fuerte: #C9BFA8;

    /* Tipografía */
    --fuente-titulos: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --fuente-cuerpo: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Espaciado */
    --esp-1: 4px;
    --esp-2: 8px;
    --esp-3: 12px;
    --esp-4: 16px;
    --esp-5: 20px;
    --esp-6: 24px;
    --esp-8: 32px;
    --esp-10: 40px;
    --esp-12: 48px;
    --esp-16: 64px;
    --esp-20: 80px;
    --esp-24: 96px;
    --esp-32: 128px;

    /* Radios (editorial, sin redondeo) */
    --radio-sm: 0px;
    --radio-md: 0px;
    --radio-lg: 0px;
    --radio-full: 999px;

    /* Transiciones */
    --transicion: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transicion-lenta: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* Ancho máximo */
    --max-ancho: 1320px;
    --max-ancho-texto: 720px;
}

/* ============================================
   RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--fuente-cuerpo);
    background: var(--fondo);
    color: var(--texto);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fuente-titulos);
    font-weight: 500;
    line-height: 1.05;
    color: var(--texto);
    letter-spacing: -0.02em;
}

p {
    margin-bottom: var(--esp-4);
}

a {
    color: var(--primario);
    text-decoration: none;
    transition: color var(--transicion);
}

a:hover {
    color: var(--primario-oscuro);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul, ol {
    list-style: none;
}

/* ============================================
   CONTENEDOR
   ============================================ */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.contenedor {
    width: 100%;
    max-width: var(--max-ancho);
    margin: 0 auto;
    padding: 0 var(--esp-6);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--piedra);
}

::-webkit-scrollbar-thumb {
    background: var(--primario);
    border-radius: var(--radio-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primario-oscuro);
}

/* ============================================
   SELECCIÓN
   ============================================ */
::selection {
    background: var(--secundario);
    color: var(--texto);
}

/* ============================================
   UTILIDADES
   ============================================ */
.oculto {
    display: none !important;
}

.texto-centro {
    text-align: center;
}

/* ============================================
   EVITAR SELECCIÓN DE TEXTO EN INTERACTIVOS
   ============================================ */
button,
a,
.header-nav-link,
.header-menu-btn,
.header-cta,
.header-logo,
.header-menu-movil-link,
.header-menu-movil-cta,
.btn {
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}