/* EXCENTRICA - Base Mobile CSS */
/* Variables, reset y tipografia para mobile */

/* ============================================
   VARIABLES MOBILE
   ============================================ */
:root {
    /* Layout mobile */
    --mobile-header-height: 56px;
    --mobile-bottom-nav-height: 60px;
    --mobile-safe-area-top: env(safe-area-inset-top, 0px);
    --mobile-safe-area-bottom: env(safe-area-inset-bottom, 0px);

    /* Espaciado mobile */
    --mobile-padding: 1rem;
    --mobile-padding-sm: 0.75rem;
    --mobile-gap: 0.75rem;

    /* Cards mobile */
    --mobile-card-radius: 12px;
    --mobile-card-padding: 0.875rem;
}

/* ============================================
   RESET MOBILE
   ============================================ */
.mobile-app {
    /* Prevenir scroll bounce en iOS */
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;

    /* Asegurar que ocupe todo el viewport */
    min-height: 100vh;
    min-height: 100dvh;

    /* Ocultar elementos desktop */
    --sidebar-width: 0px;
}

.mobile-app .sidebar-nav,
.mobile-app .header,
.mobile-app .footer {
    display: none !important;
}

/* ============================================
   TIPOGRAFIA MOBILE
   ============================================ */
.mobile-app {
    font-size: 16px; /* Base para rem */
    -webkit-text-size-adjust: 100%;
}

.mobile-app h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.mobile-app h2 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.mobile-app h3 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.mobile-app p {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
}

.mobile-app small,
.mobile-app .text-sm {
    font-size: 0.8125rem;
}

.mobile-app .text-xs {
    font-size: 0.75rem;
}

.mobile-app .text-muted {
    color: var(--text-muted);
}

.mobile-app .text-secondary {
    color: var(--text-secondary);
}

.mobile-app .text-accent {
    color: var(--text-accent);
}

/* ============================================
   UTILIDADES MOBILE
   ============================================ */
.mobile-app .flex {
    display: flex;
}

.mobile-app .flex-col {
    flex-direction: column;
}

.mobile-app .items-center {
    align-items: center;
}

.mobile-app .justify-center {
    justify-content: center;
}

.mobile-app .justify-between {
    justify-content: space-between;
}

.mobile-app .gap-sm {
    gap: 0.5rem;
}

.mobile-app .gap-md {
    gap: 0.75rem;
}

.mobile-app .gap-lg {
    gap: 1rem;
}

.mobile-app .w-full {
    width: 100%;
}

.mobile-app .text-center {
    text-align: center;
}

.mobile-app .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-app .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-app .line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   SCROLLBAR MOBILE
   ============================================ */
.mobile-app ::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* ============================================
   INPUTS MOBILE
   ============================================ */
.mobile-app input,
.mobile-app textarea,
.mobile-app select {
    font-size: 16px; /* Previene zoom en iOS */
}

.mobile-app input:focus,
.mobile-app textarea:focus,
.mobile-app select:focus {
    outline: none;
}
