:root {
    --bg-color: #E0E0E0;
    --card-bg: #C6C6C6;
    --text-color: #555;
    --input-bg: #F5F5F5;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.mobile-container {
    width: 100%;
    max-width: 450px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.header {
    margin-bottom: 10px;
}

.main-logo {
    width: 220px;
    height: auto;
}

.selection-row {
    display: flex;
    gap: 40px;
    width: 100%;
    justify-content: center;
}

.mode-card {
    width: 130px;
    height: 190px;
    background-color: #cbcbcb;
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Sombra profunda inicial */
    box-shadow: -8px 8px 15px rgba(0, 0, 0, 0.15), 8px -8px 20px rgba(255, 255, 255, 1);
    /* Transición suave para la animación */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}

.mode-card img {
    width: 80%;
    height: auto;
    display: block;
}

/* Efecto al presionar para coincidir con el comportamiento de la web principal */
.mode-card:active {
    transform: scale(0.95);
}

/* El estado seleccionado simplemente mantiene la coherencia sin cambiar el estilo neumórfico base */
.mode-card.selected {
    /* Si la web principal no cambia el fondo al seleccionar, lo dejamos igual */
    box-shadow: -4px 4px 10px rgba(0, 0, 0, 0.2), 4px -4px 10px rgba(255, 255, 255, 0.8);
}

.action-area {
    width: 100%;
    text-align: center;
}

#instruction-text {
    margin-bottom: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #444;
}

.sub-instruction {
    margin: 20px 0 15px;
    font-size: 1rem;
    color: #666;
}

.hidden-fade {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.show-fade {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dest-input {
    width: 100%;
    padding: 18px 25px;
    border-radius: 35px;
    border: none;
    background-color: var(--white);
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    outline: none;
    text-align: center;
}

/* Nuevos estilos para buscador manual */
.address-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto 20px;
}

.btn-action-small {
    background: #444;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-action-small:active {
    transform: scale(0.98);
}

/* Resultados dinámicos */
.results-list {
    margin-top: 30px;
    animation: fadeIn 0.4s ease;
}

.hidden { display: none; }

.results-title {
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
}

.stop-item {
    background: var(--white);
    margin-bottom: 12px;
    padding: 15px 20px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.stop-item:active {
    background: #f0f0f0;
}

.stop-info .name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.stop-info .dist {
    font-size: 0.8rem;
    color: #999;
}

.arrow {
    color: #ccc;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 40px 0 20px;
    font-size: 0.75rem;
}

.footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
}

/* --- VERSIÓN PARA MONITOR (ESCRITORIO) --- */
@media (min-width: 768px) {
    .mobile-container {
        max-width: 900px;
        padding: 60px 40px;
        gap: 60px;
    }

    .main-logo {
        width: 300px;
    }

    .selection-row {
        gap: 80px; /* Más separación en escritorio */
    }

    .mode-card {
        width: 160px; /* Un poco más grandes para monitor */
        height: 230px;
    }

    #instruction-text {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

    .dest-input {
        max-width: 600px;
        margin: 0 auto;
        font-size: 1.2rem;
        padding: 22px 30px;
    }

    .stops-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        max-width: 800px;
        margin: 0 auto;
    }

    .stop-item {
        margin-bottom: 0;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.no-results {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin-top: 10px;
}
