/* Variables globales */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    
    /* Colores de Taxi 75 */
    --taxi-red: #dc2626;
    --taxi-yellow: #f59e0b;
    --taxi-dark: #1f2937;
}

/* Estilos base */
body {
    margin: 0;
    font-family: "Lato", Segoe UI, Helvetica Neue, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    background-color: #fff;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

h1 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Mensaje informativo */
.info-message {
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.info-message p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Formulario */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

input[type="text"],
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-sizing: border-box;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: var(--card-background);
}

input:focus, select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input[readonly] {
    background-color: #f1f5f9;
    cursor: not-allowed;
}

/* Mapa */
#map {
    height: 500px;
    margin: 1.5rem 0;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

/* Resultados */
.result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.result h3 {
    margin-top: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.result h4 {
    color: var(--success-color);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.result p {
    margin: 0.75rem 0;
    color: var(--text-secondary);
}

.result strong {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
}

/* Autocompletado */
.autocomplete-suggestions {
    position: absolute;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 0.5rem 0.5rem;
}

.autocomplete-suggestions div {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.autocomplete-suggestions div:hover {
    background: #f1f5f9;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    #map {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0.5rem;
        padding: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    #map {
        height: 300px;
    }
}

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

.container {
    animation: fadeIn 0.5s ease-out;
}

/* Mejoras para el mapa */
.mapboxgl-ctrl-incidents {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%232563eb'%3E%3Cpath d='M14.5 0C6.5 0 0 6.5 0 14.5S6.5 29 14.5 29 29 22.5 29 14.5 22.5 0 14.5 0zm0 2c6.9 0 12.5 5.6 12.5 12.5S21.4 27 14.5 27 2 21.4 2 14.5 7.6 2 14.5 2zm0 4c-4.7 0-8.5 3.8-8.5 8.5s3.8 8.5 8.5 8.5 8.5-3.8 8.5-8.5-3.8-8.5-8.5-8.5zm0 2c3.6 0 6.5 2.9 6.5 6.5s-2.9 6.5-6.5 6.5-6.5-2.9-6.5-6.5 2.9-6.5 6.5-6.5z'/%3E%3C/svg%3E");
    background-color: var(--card-background);
    border: none;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    height: 36px;
    width: 36px;
    padding: 0;
    margin: 10px;
    transition: all 0.2s ease;
}

.mapboxgl-ctrl-incidents:hover {
    background-color: #f1f5f9;
    transform: scale(1.05);
}

/* Estilos del header de Taxi 75 */
.taxi-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.taxi-header .nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.taxi-header .nav-link:hover {
    transform: translateY(-1px);
}

.taxi-header .nav-link.active {
    color: var(--taxi-red);
    font-weight: 600;
}

.taxi-header .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--taxi-red);
    border-radius: 1px;
}

.taxi-logo {
    transition: all 0.3s ease;
}

.taxi-logo:hover {
    transform: scale(1.05);
}

.phone-number {
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}

.phone-number:hover {
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
    transform: scale(1.05);
}

/* Responsive del header */
@media (max-width: 768px) {
    .taxi-header .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .taxi-logo {
        font-size: 2rem;
    }
    
    .phone-number {
        font-size: 1.5rem;
    }
}