/* ============================================
   MOTO TAXI BERRIO - CSS
   ============================================ */

/* Variables */
:root {
    --primary-color: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary-color: #004e89;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #003d6b;
    color: white;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #218838;
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    color: white;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-header {
    background: var(--primary-color);
    color: white;
    padding: 30px;
    text-align: center;
}

.auth-header .logo {
    font-size: 50px;
    margin-bottom: 10px;
}

.auth-header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.auth-header p {
    opacity: 0.9;
}

.auth-form {
    padding: 30px;
}

.auth-footer {
    padding: 20px 30px;
    text-align: center;
    background: var(--light-color);
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    margin-bottom: 10px;
}

.section-title {
    margin: 20px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* ============================================
   LANDING PAGE
   ============================================ */
.main-header {
    background: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.main-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.main-header .logo i {
    font-size: 30px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-user {
    color: var(--text-muted);
    margin-right: 10px;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 150px 20px 100px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn-secondary {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
}

.hero-buttons .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.features {
    padding: 80px 20px;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 35px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.stats {
    background: var(--secondary-color);
    color: white;
    padding: 60px 20px;
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item i {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
}

.tarifas {
    padding: 80px 20px;
    background: var(--light-color);
}

.tarifas h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.tarifas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.tarifa-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tarifa-card.featured {
    transform: scale(1.05);
    border: 3px solid var(--primary-color);
}

.tarifa-card:hover {
    transform: translateY(-5px);
}

.tarifa-header {
    margin-bottom: 20px;
}

.tarifa-header i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.tarifa-precio {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-secondary {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
}

.main-footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-page {
    background: var(--light-color);
    min-height: 100vh;
}

.dashboard-header {
    background: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.dashboard-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.header-left .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    color: var(--text-muted);
}

.dashboard-container {
    display: flex;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

.dashboard-sidebar {
    width: 250px;
    background: white;
    box-shadow: var(--shadow);
    position: fixed;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: var(--text-color);
    transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
    background: var(--light-color);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.badge {
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    margin-left: auto;
}

a[href="#solicitudes"].tiene-solicitudes {
    background: rgba(220, 53, 69, 0.15);
    border-left: 3px solid #dc3545;
    animation: pulse-solicitud 1.5s infinite;
}

a[href="#solicitudes"].tiene-solicitudes .badge {
    display: inline-flex;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

@keyframes pulse-solicitud {
    0% { background: rgba(220, 53, 69, 0.15); }
    50% { background: rgba(220, 53, 69, 0.35); }
    100% { background: rgba(220, 53, 69, 0.15); }
}

.dashboard-main {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.dashboard-section h2 {
    margin-bottom: 30px;
    color: var(--secondary-color);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card i {
    font-size: 35px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.stat-card p {
    color: var(--text-muted);
}

/* Status Toggle */
.status-toggle {
    background: white;
    border-radius: 10px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.status.online {
    color: var(--success-color);
    font-weight: bold;
}

.status.offline {
    color: var(--danger-color);
    font-weight: bold;
}

/* Map */
.map-container {
    height: 500px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.map-container-solicitud {
    height: 400px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.map-container-conductores {
    height: 400px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

/* Viaje Activo */
.viaje-activo-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    margin-bottom: 20px;
}

.viaje-asignado {
    border-left-color: var(--success-color);
}

.viaje-esperando {
    border-left-color: var(--warning-color);
}

.viaje-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.viaje-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.viaje-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.tag-ofrecido {
    background: #fff3cd;
    color: #856404;
}

.tag-aceptado {
    background: #d4edda;
    color: #155724;
}

.tag-en-curso {
    background: #cce5ff;
    color: #004085;
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

.tag-esperando {
    background: #fff3cd;
    color: #856404;
}

.viaje-activo-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.viaje-estado {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.estado-aceptado {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.estado-en-curso {
    background: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.viaje-info {
    display: grid;
    gap: 15px;
}

.pasajero-info,
.conductor-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-color);
    border-radius: 8px;
}

.ruta-info {
    padding: 15px;
    background: var(--light-color);
    border-radius: 8px;
}

.ruta-info p {
    margin-bottom: 8px;
}

.tarifa-info {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 15px;
    background: var(--secondary-color);
    color: white;
    border-radius: 8px;
    flex-wrap: wrap;
}

.tarifa-info .estado {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.estado-aceptado {
    background: #ffc107;
    color: #333;
}

.estado-en_curso {
    background: #28a745;
    color: white;
}

.tarifa {
    font-size: 24px;
    font-weight: bold;
}

.viaje-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

/* Solicitud Card */
.solicitud-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    position: relative;
}

.solicitud-especifica {
    border-left: 5px solid #ffc107;
}

.solicitud-libre {
    border-left: 5px solid #17a2b8;
}

.solicitud-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tag-especifica {
    background: #fff3cd;
    color: #856404;
}

.tag-libre {
    background: #d1ecf1;
    color: #0c5460;
}

.solicitud-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.solicitud-ruta {
    margin-bottom: 15px;
}

.solicitud-ruta p {
    margin-bottom: 8px;
}

.referencia-box {
    background: #fff3cd;
    padding: 8px 12px;
    border-radius: 5px;
    border-left: 3px solid #ffc107;
    font-size: 13px;
    margin-top: 5px;
    margin-bottom: 8px;
}

.solicitud-info {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.solicitud-actions {
    display: flex;
    gap: 10px;
}

.solicitud-actions .btn {
    flex: 1;
}

.solicitud-actions form {
    flex: 1;
}

.solicitud-actions form .btn {
    width: 100%;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--secondary-color);
    color: white;
}

.data-table tr:hover {
    background: var(--light-color);
}

.rating {
    color: var(--warning-color);
}

.rating-input .fa-star {
    cursor: pointer;
    color: #ddd;
    transition: var(--transition);
}

.rating-input .fa-star.active,
.rating-input .fa-star:hover {
    color: var(--warning-color);
}

/* Profile Card */
.profile-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.profile-info p {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.profile-info p:last-child {
    border-bottom: none;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.action-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--text-color);
}

.action-card:hover {
    transform: translateY(-5px);
    color: var(--primary-color);
}

.action-card i {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.action-card h3 {
    margin-bottom: 10px;
}

/* Historial Card */
.historial-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.historial-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.historial-header .fecha {
    color: var(--text-muted);
}

.historial-header .tarifa {
    font-weight: bold;
    color: var(--primary-color);
}

.historial-ruta {
    margin-bottom: 15px;
}

.historial-ruta p {
    margin-bottom: 8px;
}

.historial-info {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

/* Conductor Card */
.conductor-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.conductor-info {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.conductor-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 25px;
    overflow: hidden;
    flex-shrink: 0;
}

.conductor-details h4 {
    margin-bottom: 5px;
}

.conductor-details p {
    margin-bottom: 3px;
    color: var(--text-muted);
}

.conductor-acciones {
    margin-left: auto;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
}

.btn-whatsapp:hover {
    background: #1da851;
    color: white;
}

/* Ruta Info Preview */
.ruta-info-preview {
    background: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.ruta-info-preview p {
    margin-bottom: 5px;
}

/* Form Actions */
.form-actions {
    margin-top: 20px;
}

/* Sugerencias de busqueda */
.sugerencias-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0 0 5px 5px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.sugerencia-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-color);
}

.sugerencia-item:last-child {
    border-bottom: none;
}

.sugerencia-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* Modal Mapa Conductor */
.modal-mapa {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-mapa-contenido {
    background: #1a1a2e;
    border-radius: 15px;
    width: 95%;
    height: 90vh;
    max-width: 1200px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.modal-mapa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.modal-mapa-header h3 {
    margin: 0;
    color: white;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%;
}

.modal-cerrar {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.modal-cerrar:hover {
    background: rgba(255,0,0,0.5);
}

.mapa-conductor {
    flex: 1;
    width: 100%;
    min-height: 0;
}

.modal-mapa-footer {
    padding: 8px 20px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.modal-mapa-footer p {
    margin: 0;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

.modal-mapa-footer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

/* Text utilities */
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-muted { color: var(--text-muted); }

/* ============================================
   RESPONSIVE - TABLET (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    .container { padding: 0 15px; }
    
    /* Landing Header */
    .main-header .container { padding: 10px 15px; }
    .main-header .logo { font-size: 16px; gap: 6px; }
    .main-header .logo i { font-size: 22px; }
    .main-nav { gap: 6px; }
    .main-nav .btn { padding: 6px 10px; font-size: 11px; }
    .nav-user { display: none; }
    
    /* Hero */
    .hero { padding: 100px 15px 60px; }
    .hero h1 { font-size: 28px; margin-bottom: 12px; }
    .hero p { font-size: 15px; margin-bottom: 20px; }
    .hero-buttons { gap: 10px; flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 80%; max-width: 300px; }
    
    /* Features */
    .features { padding: 40px 15px; }
    .features h2 { font-size: 24px; margin-bottom: 30px; }
    .features-grid { grid-template-columns: 1fr; gap: 20px; }
    .feature-card { padding: 20px; }
    .feature-icon { width: 60px; height: 60px; font-size: 28px; }
    
    /* Stats */
    .stats { padding: 40px 15px; }
    .stat-number { font-size: 28px; }
    
    /* Tarifas */
    .tarifas { padding: 40px 15px; }
    .tarifas h2 { font-size: 24px; margin-bottom: 30px; }
    .tarifas-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .tarifa-card { padding: 20px; }
    .tarifa-card.featured { transform: scale(1); }
    .tarifa-precio { font-size: 28px; }
    
    /* CTA */
    .cta { padding: 40px 15px; }
    .cta h2 { font-size: 24px; }
    .cta p { font-size: 15px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .btn { width: 80%; max-width: 300px; }
    
    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    
    /* Dashboard */
    .dashboard-header .container { padding: 10px 15px; }
    .header-left .logo { font-size: 14px; gap: 6px; }
    .header-right { gap: 10px; }
    .user-info { display: none; }
    
    .dashboard-sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        z-index: 1000;
        border-radius: 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    .sidebar-nav {
        display: flex;
        padding: 0;
        justify-content: space-around;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-item {
        flex-direction: column;
        padding: 6px 4px;
        font-size: 11px;
        gap: 2px;
        border-left: none;
        border-top: 3px solid transparent;
        position: relative;
        white-space: nowrap;
        text-align: center;
        color: inherit;
        text-decoration: none;
    }
    
    .nav-item.active {
        border-left: none;
        border-top: 3px solid var(--primary-color);
    }
    
    .nav-item i { font-size: 18px; width: auto; }
    .nav-item span { display: block; font-size: 9px; }
    .nav-item .badge { position: absolute; top: 2px; right: 6px; margin-left: 0; }
    
    .dashboard-container {
        margin-top: 56px;
        margin-bottom: 60px;
        min-height: calc(100vh - 116px);
    }
    
    .dashboard-main {
        margin-left: 0;
        padding: 15px;
    }
    
    .dashboard-section h2 { font-size: 20px; margin-bottom: 20px; }
    
    /* Stats Grid */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 15px; }
    .stat-card i { font-size: 25px; margin-bottom: 8px; }
    .stat-card h3 { font-size: 18px; }
    
    /* Status Toggle */
    .status-toggle { flex-direction: column; text-align: center; gap: 10px; padding: 15px; }
    
    /* Maps */
    .map-container { height: 300px; }
    .map-container-solicitud { height: 280px; }
    .map-container-conductores { height: 280px; }
    
    /* Viaje Card */
    .viaje-activo-card { padding: 15px; }
    .viaje-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .viaje-header h3 { font-size: 16px; }
    .viaje-tag { font-size: 11px; }
    .viaje-actions { flex-direction: column; gap: 8px; }
    .viaje-actions .btn { width: 100%; text-align: center; }
    
    /* Solicitud */
    .solicitud-info { flex-wrap: wrap; gap: 10px; font-size: 13px; }
    .solicitud-actions { flex-direction: column; }
    
    /* Conductor Card */
    .conductor-card { padding: 15px; }
    .conductor-info { flex-direction: column; text-align: center; gap: 10px; }
    .conductor-acciones { margin-left: 0; width: 100%; display: flex; gap: 8px; }
    .conductor-acciones .btn { flex: 1; }
    
    /* Quick Actions */
    .quick-actions { grid-template-columns: 1fr; gap: 15px; }
    .action-card { padding: 20px; }
    .action-card i { font-size: 35px; margin-bottom: 10px; }
    
    /* Historial */
    .historial-card { padding: 15px; }
    .historial-header { flex-direction: column; gap: 5px; }
    .historial-info { flex-wrap: wrap; gap: 10px; font-size: 13px; }
    
    /* Tabla */
    .data-table th, .data-table td { padding: 10px 8px; font-size: 12px; }
    
    /* Tarifa Info */
    .tarifa-info { padding: 10px; gap: 10px; flex-wrap: wrap; }
    .tarifa { font-size: 20px; }
    .pasajeros { font-size: 12px; }
    
    /* Ruta Info */
    .ruta-info { padding: 10px; }
    .ruta-info p { font-size: 13px; }
    
    /* Conductor Info */
    .conductor-info { padding: 10px; }
    
    /* Auth Pages */
    .auth-card { border-radius: 10px; }
    .auth-header { padding: 20px; }
    .auth-header .logo { font-size: 40px; }
    .auth-header h1 { font-size: 20px; }
    .auth-form { padding: 20px; }
    
    /* Modal */
    .modal-mapa-contenido { width: 100%; height: 100vh; border-radius: 0; max-width: 100%; }
    .modal-mapa-header { padding: 10px 15px; }
    .modal-mapa-header h3 { font-size: 13px; }
    .modal-mapa-footer p { font-size: 11px; }
    
    .modal-perfil-responsive {
        width: 90% !important;
        max-width: 400px !important;
        max-height: 90vh !important;
    }
    
    .modal-perfil-responsive .auth-card {
        max-height: 88vh;
    }
    
    .modal-perfil-responsive .auth-form > div[style*="max-height"] {
        flex: 1;
        max-height: none !important;
        overflow-y: auto !important;
    }
    
    /* Solicitar form */
    .solicitud-form .form-group input,
    .solicitud-form .form-group select { font-size: 16px; padding: 12px; }
    
    /* Tarifas info preview */
    .ruta-info-preview { padding: 15px; }
    .ruta-info-preview p { font-size: 13px; }
    
    /* Btn block en móvil */
    .btn-lg { padding: 12px 20px; font-size: 15px; }
}

/* ============================================
   RESPONSIVE - MOVIL (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .container { padding: 0 10px; }
    
    /* Landing Header */
    .main-header .container { flex-wrap: wrap; }
    .main-nav { width: 100%; justify-content: center; }
    .main-nav .btn { padding: 6px 8px; font-size: 10px; }
    
    /* Hero */
    .hero { padding: 80px 10px 50px; }
    .hero h1 { font-size: 22px; }
    .hero p { font-size: 13px; }
    .hero-buttons .btn { width: 90%; padding: 12px 15px; font-size: 13px; }
    
    /* Features */
    .features h2 { font-size: 20px; }
    .feature-card { padding: 15px; }
    .feature-icon { width: 50px; height: 50px; font-size: 22px; }
    .feature-card h3 { font-size: 16px; }
    .feature-card p { font-size: 13px; }
    
    /* Stats */
    .stat-item i { font-size: 30px; }
    .stat-number { font-size: 24px; }
    .stat-item p { font-size: 13px; }
    
    /* Tarifas */
    .tarifas-grid { grid-template-columns: 1fr; }
    .tarifa-precio { font-size: 32px; }
    
    /* CTA */
    .cta h2 { font-size: 20px; }
    .cta p { font-size: 13px; }
    
    /* Footer */
    .footer-section h3, .footer-section h4 { font-size: 16px; }
    .footer-section p { font-size: 13px; }
    
    /* Dashboard */
    .header-left .logo span { display: none; }
    
    .nav-item { padding: 6px 3px; }
    .nav-item i { font-size: 16px; }
    .nav-item span { font-size: 9px; }
    
    .dashboard-main { padding: 10px; }
    .dashboard-section h2 { font-size: 17px; margin-bottom: 15px; }
    
    /* Stats Grid */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card { padding: 10px; }
    .stat-card i { font-size: 20px; margin-bottom: 5px; }
    .stat-card h3 { font-size: 16px; }
    .stat-card p { font-size: 11px; }
    
    /* Status Toggle */
    .status-toggle { padding: 12px; font-size: 13px; }
    
    /* Maps */
    .map-container { height: 250px; }
    .map-container-solicitud { height: 230px; }
    .map-container-conductores { height: 230px; }
    
    /* Viaje Card */
    .viaje-activo-card { padding: 12px; border-left-width: 3px; }
    .viaje-header h3 { font-size: 14px; }
    .viaje-header { gap: 6px; }
    .viaje-tag { font-size: 10px; padding: 3px 8px; }
    .viaje-actions .btn { padding: 10px; font-size: 13px; }
    
    /* Solicitud */
    .solicitud-card { padding: 12px; }
    .solicitud-header { font-size: 14px; gap: 8px; }
    .solicitud-ruta p { font-size: 13px; }
    .solicitud-info { font-size: 12px; gap: 8px; }
    .solicitud-actions .btn { padding: 10px; font-size: 12px; }
    
    /* Conductor Card */
    .conductor-card { padding: 12px; }
    .conductor-avatar { width: 50px; height: 50px; font-size: 20px; }
    .conductor-details h4 { font-size: 14px; }
    .conductor-details p { font-size: 12px; }
    .conductor-acciones { flex-direction: column; }
    .conductor-acciones .btn { width: 100%; }
    
    /* Quick Actions */
    .action-card { padding: 15px; }
    .action-card i { font-size: 30px; margin-bottom: 8px; }
    .action-card h3 { font-size: 15px; }
    .action-card p { font-size: 12px; }
    
    /* Historial */
    .historial-card { padding: 12px; }
    .historial-header .tarifa { font-size: 18px; }
    .historial-header .fecha { font-size: 12px; }
    
    /* Tarifa Info */
    .tarifa-info { padding: 8px; gap: 8px; }
    .tarifa { font-size: 18px; }
    .distancia { font-size: 12px; }
    
    /* Ruta Info */
    .ruta-info p { font-size: 12px; }
    
    /* Conductor Info */
    .conductor-info { padding: 8px; }
    .conductor-info i { font-size: 14px; }
    .conductor-info strong { font-size: 13px; }
    
    /* Auth Pages */
    .auth-page { padding: 10px; }
    .auth-header { padding: 15px; }
    .auth-header .logo { font-size: 35px; }
    .auth-header h1 { font-size: 18px; }
    .auth-form { padding: 15px; }
    .auth-form .form-group { margin-bottom: 12px; }
    .auth-form .form-group input { font-size: 15px; padding: 10px 12px; }
    .auth-form .btn { padding: 12px; font-size: 15px; }
    .auth-footer { padding: 15px; }
    .auth-footer p { font-size: 13px; }
    
    /* Modal */
    .modal-mapa-contenido { border-radius: 0; }
    .modal-mapa-header { padding: 8px 12px; }
    .modal-mapa-header h3 { font-size: 12px; }
    .modal-cerrar { width: 30px; height: 30px; font-size: 20px; }
    .modal-mapa-footer { padding: 6px 12px; }
    .modal-mapa-footer p { font-size: 10px; }
    
    /* Solicitar Form */
    .solicitud-form .form-group label { font-size: 13px; }
    .solicitud-form .form-group input { font-size: 15px; }
    .ruta-info-preview { padding: 10px; }
    .ruta-info-preview p { font-size: 12px; }
    
    /* Referencia Box */
    .referencia-box { font-size: 12px; padding: 6px 10px; }
    
    /* Toast / Notifications */
    .toast { font-size: 13px; padding: 10px 15px; }
    
    /* Sugerencias */
    .sugerencias-box { font-size: 12px; }
    .sugerencia-item { padding: 8px 12px; font-size: 12px; }
    
    /* Btn */
    .btn-sm { padding: 5px 8px; font-size: 11px; }
    .btn { padding: 8px 15px; font-size: 13px; }
    
    /* Section Title */
    .section-title { font-size: 15px; }
    
    /* Admin Stats */
    .admin-stat-card { padding: 12px; }
    .admin-stat-card h3 { font-size: 20px; }
    .admin-stat-card p { font-size: 12px; }
    
    /* Pasajeros */
    .pasajeros { font-size: 11px; }
}

/* ============================================
   RESPONSIVE - VERY SMALL (max-width: 360px)
   ============================================ */
@media (max-width: 360px) {
    .hero h1 { font-size: 20px; }
    .hero p { font-size: 12px; }
    .features h2 { font-size: 18px; }
    .tarifas h2 { font-size: 18px; }
    .cta h2 { font-size: 18px; }
    .dashboard-section h2 { font-size: 15px; }
    .stat-card h3 { font-size: 14px; }
    .tarifa-precio { font-size: 26px; }
}

.modal-mapa-contenido .auth-card div[style*="overflow-y"]::-webkit-scrollbar {
    width: 6px;
}

.modal-mapa-contenido .auth-card div[style*="overflow-y"]::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-mapa-contenido .auth-card div[style*="overflow-y"]::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.modal-mapa-contenido .auth-card div[style*="overflow-y"]::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.modal-mapa-contenido .auth-card div[style*="overflow-y"] {
    scrollbar-width: thin;
    scrollbar-color: #ff6b35 #f1f1f1;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.modal-perfil-responsive {
    width: 95% !important;
    max-width: 420px !important;
    max-height: 92vh !important;
    height: auto !important;
}

.modal-perfil-responsive .auth-card {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-perfil-responsive .auth-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-perfil-responsive .auth-form > div[style*="max-height"] {
    flex: 1;
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 480px) {
    .modal-perfil-responsive {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        height: 100% !important;
    }
    
    .modal-perfil-responsive .auth-card {
        border-radius: 0 !important;
        height: 100%;
        max-height: 100vh;
    }
    
    .modal-perfil-responsive .auth-form {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .modal-perfil-responsive .auth-form > div[style*="max-height"] {
        flex: 1;
        max-height: none !important;
        overflow-y: auto !important;
    }
    
    .modal-perfil-responsive .btn-block {
        margin-top: 10px;
        padding: 12px;
        font-size: 16px;
    }
    
    .modal-perfil-responsive .form-group label {
        font-size: 13px;
    }
    
    .modal-perfil-responsive .form-group input {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .modal-perfil-responsive .section-title {
        font-size: 14px;
        margin: 15px 0 10px;
    }
}

@media (max-height: 600px) {
    .modal-perfil-responsive {
        max-height: 100vh !important;
    }
}

.modal-mapa-contenido .leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
}

.modal-mapa-contenido .leaflet-control-zoom a {
    background: rgba(26,26,46,0.9) !important;
    color: white !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
}

.modal-mapa-contenido .leaflet-control-zoom a:hover {
    background: rgba(255,107,53,0.9) !important;
}

.modal-mapa-contenido .leaflet-control-attribution {
    background: rgba(0,0,0,0.5) !important;
    color: rgba(255,255,255,0.4) !important;
    font-size: 9px !important;
}

.modal-mapa-contenido .leaflet-control-attribution a {
    color: rgba(255,255,255,0.6) !important;
}

.modal-mapa-contenido .leaflet-popup-content-wrapper {
    background: rgba(26,26,46,0.95) !important;
    color: white !important;
    border-radius: 10px !important;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5) !important;
}

.modal-mapa-contenido .leaflet-popup-tip {
    background: rgba(26,26,46,0.95) !important;
}

.modal-mapa-contenido .leaflet-popup-close-button {
    color: white !important;
}

.pulse-marker {
    background: none !important;
    border: none !important;
}

.tooltip-mapa {
    background: rgba(33, 37, 41, 0.92) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    max-width: 280px !important;
    white-space: normal !important;
    text-align: left !important;
}

.tooltip-mapa::before {
    border-top-color: rgba(33, 37, 41, 0.92) !important;
}

.pulse-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #ff6b35;
    animation: pulse-ring-anim 2s ease-out infinite;
    opacity: 0.7;
}

.ubicacion-activa {
    font-size: 11px;
    color: #28a745;
    animation: blink 1.5s infinite;
}

.ruta-info-marker {
    background: none !important;
    border: none !important;
}

.mi-ubicacion-marker {
    background: none !important;
    border: none !important;
    animation: pulse-green-marker 2s infinite;
}

.leaflet-marker-icon.conductor-photo-marker {
    border-radius: 50% !important;
    overflow: hidden !important;
    background-color: #ff6b35 !important;
    background-size: cover !important;
    background-position: center !important;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5) !important;
    border: 3px solid #ff6b35 !important;
    box-sizing: border-box !important;
}

img.leaflet-marker-icon.conductor-photo-marker {
    border-radius: 50% !important;
    border: 3px solid #ff6b35 !important;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5) !important;
    object-fit: cover !important;
    background-color: #ff6b35 !important;
    box-sizing: border-box !important;
    -webkit-transform: none !important;
    transform: none !important;
}

@keyframes pulse-green-marker {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes pulse-ring-anim {
    0% { transform: scale(0.3); opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}

.historial-calificacion {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    font-size: 13px;
}

.historial-calificacion .fa-star {
    font-size: 14px;
}

.historial-actions {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

#estrellas .estrella {
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 0 3px;
}

#estrellas .estrella:hover {
    transform: scale(1.2);
}

.comentarios-resumen {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.comentarios-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comentario-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
}

.comentario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.comentario-pasajero {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.comentario-fecha {
    font-size: 11px;
    color: #999;
}

.comentario-estrellas {
    margin-bottom: 5px;
}

.comentario-texto {
    font-size: 13px;
    color: #555;
    margin: 0;
    font-style: italic;
}

@keyframes spin-loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.conductor-tracking-marker {
    background: none !important;
    border: none !important;
}

@keyframes pulse-ring-tracking {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 0.4; }
    100% { transform: scale(0.8); opacity: 0.8; }
}
