/* Mobile CSS Files */ 
/* ========================================
   MOBILE PAGE HEADER (Generic)
   ======================================== */
.mobile-page-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--primary-color);
    z-index: 100;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-header-menu {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-color);
    cursor: pointer;
}

.mobile-header-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    text-align: center;
    flex: 1;
}

.mobile-header-spacer {
    width: 44px;
    height: 44px;
}

.mobile-header-action {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-color);
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-page-header {
        display: flex;
    }
    
    .header {
        display: none !important;
    }
    
    main {
        padding-top: 60px;
    }
    
    .page-hero {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-page-header {
        display: none !important;
    }
}

/* ========================================
   MOBILE SIDEBAR & NAVIGATION
   ======================================== */

/* Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--primary-color);
    z-index: 2999;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.mobile-sidebar.active {
    transform: translateX(280px);
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
}

.mobile-sidebar-logo {
    display: flex;
    align-items: center;
}

.mobile-sidebar-logo img {
    width: 4rem;
    height: auto;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

.mobile-sidebar-close:hover {
    transform: translateX(3px);
}

.mobile-sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.25rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: padding-left 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    padding-left: 0.5rem;
    color: var(--text-color);
}

.mobile-sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link-secondary {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.mobile-nav-link-secondary:hover {
    opacity: 1;
    color: var(--text-color);
}

/* Filter Sidebar (for search page) */
.filter-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--primary-color);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

.filter-sidebar.active {
    transform: translateX(-300px);
}

.filter-sidebar-header {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.filter-sidebar-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
}

.filter-sidebar-close:hover {
    transform: translateX(-3px);
}

.filter-sidebar-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.filter-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    color: var(--text-color);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--text-color);
}

/* Mobile Header Adjustments */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        cursor: pointer;
        color: var(--text-color);
    }
    
    .nav-menu {
        display: none !important;
    }
    
    .user-menu {
        display: none !important;
    }
    
    .header-container {
        justify-content: space-between;
    }
    
    /* Mobile page title in header */
    .mobile-page-title {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text-color);
    }
    
    /* Filter toggle button for search page */
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
        cursor: pointer;
        color: var(--text-color);
        background: none;
        border: none;
    }
}

@media (min-width: 769px) {
    .mobile-sidebar,
    .mobile-overlay,
    .filter-sidebar,
    .mobile-menu-toggle,
    .mobile-filter-toggle {
        display: none !important;
    }
}

/* ========================================
   ESTILOS ESPECÍFICOS PARA MÓVILES
   ======================================== */
@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .header {
        padding: 0.75rem 0;
    }
    
    .logo img {
        height: 30px;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .search-box {
        padding: 1rem;
    }
    
    .featured-walkers, .how-it-works, .benefits, .cta-section {
        padding: 2rem 0;
    }
    
    .walker-card {
        margin-bottom: 1.5rem;
    }
    
    .walker-image {
        height: 150px;
    }
    
    .walker-info {
        padding: 1rem;
    }
    
    .step, .benefit {
        padding: 1.5rem;
    }
    
    .step-icon, .benefit i {
        font-size: 2.5rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-container {
        gap: 1.5rem;
    }
    
    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    /* Estilos específicos para la página de búsqueda en móvil */
    .search-filters {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .walkers-list .walker-card {
        padding: 1rem;
    }
    
    /* Estilos específicos para el perfil de paseador en móvil */
    .walker-profile-info {
        padding: 1rem;
    }
    
    .walker-header .walker-photo {
        width: 100px;
        height: 100px;
    }
    
    .booking-panel {
        padding: 1rem;
    }
    
    .booking-price h2 {
        font-size: 2rem;
    }
    
    /* Estilos específicos para la página de seguimiento en móvil */
    .tracking-map-container {
        height: 300px;
    }
    
    .tracking-info {
        padding: 1rem;
    }
    
    .tracking-walker {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    
    .tracking-walker img {
        width: 50px;
        height: 50px;
    }
    
    /* Estilos específicos para la verificación de PIN en móvil */
    .verify-pin-card, .rate-walker-card {
        max-width: 100%;
    }
    
    .walker-info {
        padding: 1.5rem;
    }
    
    .verify-pin-form, .rate-walker-form {
        padding: 1.5rem;
    }
    
    .pin-input input {
        width: 180px;
        height: 50px;
        font-size: 1.75rem;
    }
    
    .stars label {
        font-size: 1.75rem;
    }
}