/* Adaptación moderna y optimizada para móviles de EN-VIA (Tema Oscuro Compatible) */
:root {
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #000000;
    color: #f1f5f9;
    margin: 0;
    padding: 16px;
    min-height: 100vh;
    line-height: 1.4;
}

.app-container, .max-w-xl, .max-w-3xl, .max-w-4xl {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 12px;
}

@media (min-width: 768px) {
    .app-container, .max-w-xl, .max-w-3xl, .max-w-4xl {
        max-width: 768px;
        padding: 24px;
    }
}

header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #222222;
}

h1 {
    color: #3b82f6;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 6px 0;
}

h2 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}

p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0 0 8px 0;
}

a, .bg-[\#111111], .bg-[\#161616] {
    display: block;
    background-color: #111111;
    border: 1px solid #222222;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

a:hover {
    border-color: #10b981;
    background-color: #161616;
}

.card-transition {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-transition:active {
    transform: scale(0.99);
}

input, select, textarea, button {
    font-size: 16px !important;
}

input, select, textarea {
    width: 100%;
    background-color: #161616;
    border: 1px solid #2e2e2e;
    border-radius: 12px;
    padding: 10px 12px;
    color: #ffffff;
    margin-top: 6px;
    margin-bottom: 10px;
}

button {
    background-color: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background-color: #059669;
}

#map, #map-seguimiento {
    height: 320px;
    width: 100%;
    border-radius: 12px;
}

.custom-suggestions-list {
    position: relative;
    z-index: 50;
    background-color: #141414;
    border: 1px solid #2e2e2e;
    border-radius: 12px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 9px 12px;
    font-size: 0.85rem;
    color: #cbd5e1;
    border-bottom: 1px solid #1f1f1f;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #1f1f1f;
    color: #ffffff;
}

.hidden {
    display: none !important;
}
