/* Oculta todas las pantallas secundarias inicialmente */
.auth-screen,
.profile-screen,
.bookings-screen,
.payments-screen,
.nav-drawer,
.overlay {
    display: none;
}


:root {
    --primary-color: #6200ee;
    --primary-dark: #3700b3;
    --primary-light: #bb86fc;
    --secondary-color: #03dac6;
    --background: #ffffff;
    --surface: #ffffff;
    --error: #b00020;
    --on-primary: #ffffff;
    --on-secondary: #000000;
    --on-background: #000000;
    --on-surface: #000000;
    --on-error: #ffffff;
    --text-primary: rgba(0, 0, 0, 0.87);
    --text-secondary: rgba(0, 0, 0, 0.6);
    --text-hint: rgba(0, 0, 0, 0.38);
    --divider: rgba(0, 0, 0, 0.12);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: var(--text-primary);
    line-height: 1.5;
}

.android-style {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    background-color: var(--background);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    overflow-x: hidden;
}

/* App Bar */
.app-bar {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: var(--primary-color);
    color: var(--on-primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-button, .search-button, .notifications-button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 24px;
    transition: background-color 0.3s;
}

.menu-button:hover, .search-button:hover, .notifications-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.app-title {
    flex-grow: 1;
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0 16px;
    font-family: 'Poppins', sans-serif;
}

.app-actions {
    display: flex;
}

.notifications-button {
    position: relative;
}

.badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--error);
    color: var(--on-error);
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Main Content */
.main-content {
    padding: 16px;
    padding-bottom: 80px;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.see-all {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* Welcome Card */
.welcome-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.user-greeting h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.user-greeting p {
    opacity: 0.9;
    font-size: 0.875rem;
}

.user-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    object-fit: cover;
    border: 2px solid white;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 24px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--surface);
    border-radius: 12px;
    padding: 16px 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.action-card i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.action-card span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Offers Section */
.offers-section {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.offers-carousel {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 8px;
    scrollbar-width: none; /* Firefox */
}

.offers-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.offer-card {
    min-width: 240px;
    background-color: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.offer-image {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.offer-details {
    padding: 12px;
}

.offer-details .badge {
    position: static;
    display: inline-block;
    background-color: var(--error);
    color: white;
    margin-bottom: 8px;
}

.offer-details h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.location {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.location i {
    margin-right: 4px;
    font-size: 0.875rem;
}

.price-info {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.old-price {
    font-size: 0.75rem;
    text-decoration: line-through;
    color: var(--text-secondary);
    margin-right: 8px;
}

.current-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.current-price span {
    font-size: 0.75rem;
    font-weight: normal;
    color: var(--text-secondary);
}

.book-button {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.book-button:hover {
    background-color: var(--primary-dark);
}

/* Destinations Section */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.destination-card {
    background-color: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.destination-image {
    height: 100px;
    background-size: cover;
    background-position: center;
}

.destination-info {
    padding: 12px;
}

.destination-info h4 {
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.trips {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background-color: var(--surface);
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.625rem;
    padding: 8px;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item .material-icons {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

/* Auth Screens */
.auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background);
    z-index: 1000;
    display: none;
    overflow-y: auto;
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 24px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-form {
    margin-bottom: 24px;
}

.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 1px solid var(--divider);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.input-group span.material-icons {
    position: absolute;
    left: 16px;
    top: 38px;
    color: var(--text-secondary);
    font-size: 1.25rem;
}

.show-password {
    position: absolute;
    right: 16px;
    top: 38px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
}

.auth-button {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 24px;
}

.auth-button:hover {
    background-color: var(--primary-dark);
}

.divider {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--divider);
}

.divider span {
    padding: 0 16px;
}

.social-login {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.social-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid var(--divider);
    border-radius: 8px;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.2s;
}

.social-button:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.social-button img, .social-button i {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

.social-button.facebook i {
    color: #1877f2;
}

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.back-button {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

/* Profile Screen */
.profile-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background);
    z-index: 1000;
    display: none;
    overflow-y: auto;
}

.profile-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--divider);
    position: sticky;
    top: 0;
    background-color: var(--background);
    z-index: 10;
}

.profile-header h2 {
    flex-grow: 1;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 500;
}

.edit-button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

.profile-content {
    padding: 16px;
}

.user-info-card {
    text-align: center;
    margin-bottom: 24px;
}

.user-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.user-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50px;
    object-fit: cover;
}

.change-avatar {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    border: 2px solid white;
    border-radius: 16px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.user-name {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.user-email, .user-phone {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.profile-section {
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--divider);
}

.info-item .material-icons {
    color: var(--text-secondary);
    margin-right: 16px;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.info-value {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.preferences-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.preference-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background-color: rgba(98, 0, 238, 0.08);
    border-radius: 8px;
}

.preference-item .material-icons {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.preference-item p {
    font-size: 0.75rem;
    color: var(--text-primary);
}

.profile-actions {
    margin-top: 24px;
}

.profile-action {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    background: none;
    border: none;
    border-bottom: 1px solid var(--divider);
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
}

.profile-action .material-icons:first-child {
    margin-right: 16px;
    color: var(--text-secondary);
}

.profile-action .material-icons:last-child {
    color: var(--text-secondary);
}

/* Bookings Screen */
.bookings-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background);
    z-index: 1000;
    display: none;
    overflow-y: auto;
}

.bookings-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--divider);
    position: sticky;
    top: 0;
    background-color: var(--background);
    z-index: 10;
}

.bookings-header h2 {
    flex-grow: 1;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 500;
}

.filter-button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

.bookings-tabs {
    display: flex;
    border-bottom: 1px solid var(--divider);
    padding: 0 16px;
}

.tab-button {
    flex: 1;
    padding: 16px 0;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-button.active {
    color: var(--primary-color);
}

.tab-button.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.bookings-list {
    padding: 16px;
}

.booking-card {
    background-color: var(--surface);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.booking-header h4 {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.booking-status {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
}

.booking-status.confirmed {
    background-color: rgba(3, 218, 198, 0.1);
    color: #03dac6;
}

.booking-status.pending {
    background-color: rgba(255, 214, 0, 0.1);
    color: #ffd600;
}

.booking-status.cancelled {
    background-color: rgba(176, 0, 32, 0.1);
    color: #b00020;
}

.booking-details {
    display: flex;
    margin-bottom: 16px;
}

.booking-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(98, 0, 238, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.booking-icon .material-icons {
    color: var(--primary-color);
}

.booking-info h5 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.booking-location, .booking-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.booking-location .material-icons, .booking-date .material-icons {
    font-size: 1rem;
    margin-right: 4px;
}

.booking-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-price {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.booking-action {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.booking-action:hover {
    background-color: rgba(98, 0, 238, 0.04);
}

/* Payments Screen */
.payments-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background);
    z-index: 1000;
    display: none;
    overflow-y: auto;
}

.payments-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--divider);
    position: sticky;
    top: 0;
    background-color: var(--background);
    z-index: 10;
}

.payments-header h2 {
    flex-grow: 1;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 500;
}

.add-button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

.payment-methods {
    padding: 16px;
}

.payment-card {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: var(--surface);
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.payment-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(98, 0, 238, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.payment-icon .material-icons {
    color: var(--primary-color);
}

.payment-info {
    flex-grow: 1;
}

.payment-info h5 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.payment-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.payment-action {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.add-payment-method {
    padding: 16px;
}

.payment-options {
    margin-top: 16px;
}

.payment-option {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 16px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--divider);
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
}

.payment-option .material-icons {
    margin-right: 16px;
    color: var(--text-secondary);
}

/* Navigation Drawer */
.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background-color: var(--surface);
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.drawer-header {
    padding: 16px;
    background-color: var(--primary-color);
    color: white;
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.user-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    object-fit: cover;
    margin-right: 16px;
    border: 2px solid white;
}

.user-details h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.user-details p {
    font-size: 0.875rem;
    opacity: 0.8;
}

.close-drawer {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.drawer-menu {
    flex-grow: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.menu-item .material-icons {
    margin-right: 32px;
    color: var(--text-secondary);
}

.drawer-footer {
    padding: 16px;
    border-top: 1px solid var(--divider);
}

.logout-button {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
}

.logout-button .material-icons {
    margin-right: 32px;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
}

/* Active States */
.nav-drawer.open {
    transform: translateX(0);
}

.overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 600px) {
    .android-style {
        max-width: 100%;
    }
    
    .auth-container {
        padding: 24px 16px;
    }
    
    .social-login {
        flex-direction: column;
    }
}