/* =========================================
   0. CUSTOM SCROLLBAR (AI STYLE)
   ========================================= */
/* Webkit Browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: content-box;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Firefox Support */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

/* =========================================
   1. CONFIGURACIÓN BASE Y VARIABLES
   ========================================= */
:root {
    /* Dimensiones */
    --nav-w-closed: 80px;
    --nav-w-open: 280px;
    --mobile-nav-h: 70px;

    /* Colores */
    --bg-body: #f9f9f9;
    --bg-card: #ffffff;
    --text-main: #202322;
    --text-muted: #666666;
    --accent-gradient: linear-gradient(345deg, #FFFFFF 42%, #E4C8C4 100%);
    --accent-solid: #E4C8C4;
    --whatsapp: #25D366;

    /* Tipografía */
    --font: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font) !important;
    background-color: var(--bg-body);
    color: var(--text-main);
    padding-bottom: calc(var(--mobile-nav-h) + 20px);
    overflow-x: hidden;
}

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

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

ul,
li {
    list-style: none;
    padding: 0;
    margin: 0;
}

button,
select {
    font-family: inherit;
    outline: none;
}

/* Layout Principal */
.main-wrapper {
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden; /* Prevent horizontal scroll from children */
}

/* Custom Elements base */
app-navbar, 
app-footer {
    display: block;
}

@media (min-width: 900px) and (orientation: landscape) {
    body {
        padding-bottom: 0;
        padding-left: var(--nav-w-closed);
    }

    body:has(.app-nav:hover) {
        padding-left: var(--nav-w-open);
    }

    .main-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        padding-top: 60px;
    }
}

/* =========================================
   ACCESIBILIDAD / UTILIDADES
   ========================================= */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
