/* =========================
   RESET
========================= */

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

/* =========================
   VARIABLES
========================= */

:root {
    --bg-primary: #0f0f10;
    --bg-secondary: #18181b;
    --bg-card: #1f1f23;
    --bg-glass: rgba(29, 31, 36, 0.78);

    --border-color: rgba(255, 255, 255, 0.06);

    --text-primary: #ffffff;
    --text-secondary: #9ca3af;

    --accent: #d4a574;
    --accent-hover: #c89563;

    --danger: #ef4444;
    --success: #22c55e;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 5px 25px rgba(0, 0, 0, 0.25);

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;

    --transition: 0.3s ease;

    --font-main: 'Inter', sans-serif;

    --layout-max: 1400px;
    --layout-gutter: clamp(16px, 4vw, 48px);
}

/* =========================
   GLOBAL
========================= */

html {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
}

html.is-scroll-locked,
body.is-scroll-locked {
    overflow: hidden !important;
    touch-action: none;
}

/* Modales: el fondo oscuro cubre siempre todo el viewport */
.review-modal,
.profile-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.review-modal__backdrop,
.profile-modal__backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    margin: 0;
    box-sizing: border-box;
}

.review-modal__dialog,
.profile-modal__dialog {
    position: relative;
    z-index: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 50px;
}

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

/* =========================
   TEXTAREAS
========================= */

textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    resize: vertical;
    overflow-x: hidden;
    max-height: calc(8lh + 1.3rem);
}
