/* Estilos para la página de la aplicación TaxiDriver */

:root {
    --primary-color: #1a73e8;
    --primary-dark: #0d47a1;
    --secondary-color: #ffc107;
    --text-color: #e8eaed;
    --light-text: #bdc1c6;
    --lighter-text: #9aa0a6;
    --light-bg: #1e1e1e;
    --white: #ffffff;
    --border-color: #3c4043;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --background: #121212;
    --card-bg: #1e1e1e;
}

/* Estilos para la imagen de la aplicación */
.app-screenshot-container {
    text-align: center;
    margin: 30px auto 40px;
    padding: 0 20px;
    max-width: 1000px;
}

.app-screenshot {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    max-height: 600px;
    width: auto;
    display: inline-block;
    transition: transform 0.3s ease;
}

.app-screenshot:hover {
    transform: translateY(-5px);
}

/* Estilos para desplazamiento suave */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Ajusta según la altura de tu header */
}

/* Estilos generales */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: rgba(26, 115, 232, 0.1);
}

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

/* Hero Section */
.app-hero {
    padding: 7rem 0 5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.app-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.app-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.app-hero-text {
    flex: 1;
    min-width: 300px;
}

.app-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.app-hero h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    opacity: 0.9;
}

.app-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    opacity: 0.9;
    line-height: 1.6;
}

.app-download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.download-btn {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.download-btn i {
    font-size: 1.8rem;
    margin-right: 0.8rem;
}

.download-btn div {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.download-btn span {
    font-size: 0.7rem;
    opacity: 0.9;
}

.download-btn strong {
    font-size: 1.1rem;
    font-weight: 600;
}

.app-hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition);
    border: 10px solid rgba(255, 255, 255, 0.1);
}

.app-hero-image img:hover {
    transform: perspective(1000px) rotateY(0);
}

/* Navegación por pestañas */
.app-navigation {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.nav-tab {
    padding: 1.2rem 2rem;
    text-decoration: none;
    color: var(--light-text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.nav-tab i {
    font-size: 1.2rem;
}

.nav-tab:hover {
    color: var(--primary-color);
}

.nav-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Secciones de la aplicación */
.app-section {
    padding: 6rem 0;
    display: none;
}

.app-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Características */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(26, 115, 232, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: rotateY(180deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.how-it-works {
    margin: 5rem 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}


.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.step-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--white);
    font-size: 1.2rem;
    line-height: 1.4;
}

.step-content p {
    margin: 0;
    color: var(--light-text);
    line-height: 1.5;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .steps-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .step-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-number {
        margin-bottom: 1rem;
    }
}

/* Estilos para la sección de requisitos */
#conductores-tab .requirements {
    background: var(--card-bg);
    padding: 3rem 0;
    margin: 3rem 0;
    border-radius: var(--border-radius);
}

#conductores-tab .requirements .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

#conductores-tab .requirements .section-subtitle {
    color: var(--text-color);
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
    text-align: center;
}

#conductores-tab .requirements-content {
    width: 100%;
}

#conductores-tab .requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

#conductores-tab .requirement-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 1.8rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    border: 1px solid var(--border-color);
}

#conductores-tab .requirement-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

#conductores-tab .requirement-icon {
    background: rgba(26, 115, 232, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

#conductores-tab .requirement-text h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

#conductores-tab .requirement-text p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

#conductores-tab .requirements-cta {
    text-align: center;
    margin-top: 2rem;
}

#conductores-tab .verification-time {
    color: var(--light-text);
    margin-top: 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#conductores-tab .verification-time i {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    #conductores-tab .requirements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    #conductores-tab .requirement-item {
        padding: 1.5rem;
    }
    
    #conductores-tab .requirements .section-subtitle {
        font-size: 1.5rem;
    }
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.3rem 0;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.3rem;
    font-size: 1.1rem;
}

.footer-bottom {
    background: #111;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Responsive */
@media (max-width: 1024px) {
    .app-hero h1 {
        font-size: 3rem;
    }
    
    .app-hero h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .app-hero {
        padding: 5rem 0 3rem;
    }
    
    .app-hero h1 {
        font-size: 2.5rem;
    }
    
    .app-hero h2 {
        font-size: 1.5rem;
    }
    
    .app-hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step {
        max-width: 100%;
    }
    
    .register-container {
        flex-direction: column;
    }
    
    .register-info,
    .register-form-container {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .app-hero h1 {
        font-size: 2.2rem;
    }
    
    .app-hero h2 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .nav-tab {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .nav-tab i {
        display: none;
    }
    
    /* ===== MENÚ MÓVIL ===== */
    .hamburger {
        display: none; /* Ocultar por defecto, se mostrará en móviles */
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        position: relative;
    }
    
    /* Mostrar botón hamburguesa solo en móviles */
    @media (max-width: 992px) {
        .hamburger {
            display: flex;
        }
        
        .main-nav {
            position: fixed;
            top: 0;
            right: -300px;
            width: 280px;
            height: 100vh;
            background: #1a1a2e;
            padding: 80px 20px 20px;
            transition: right 0.3s ease-in-out;
            z-index: 1000;
            overflow-y: auto;
        }
        
        .main-nav.active {
            right: 0;
        }
        
        .nav-links {
            flex-direction: column;
            padding: 0;
            margin: 0;
            list-style: none;
        }
        
        .nav-links li {
            margin: 10px 0;
        }
        
        .nav-links a {
            color: #fff !important;
            text-decoration: none;
            font-size: 1.1rem;
            display: block;
            padding: 10px 15px;
            border-radius: 5px;
            transition: background-color 0.3s;
        }
        
        .nav-links a:hover,
        .nav-links a.active {
            background: rgba(255, 255, 255, 0.1);
        }
        
        .mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .mobile-menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }
    }
    
    .hamburger .bar {
        width: 30px;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
        position: relative;
    }
    
    .main-nav {
        position: fixed !important;
        top: 0;
        right: -300px;
        width: 280px !important;
        height: 100vh !important;
        background: #1a1a2e !important; /* Fondo oscuro para mejor contraste */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease-in-out;
        z-index: 1000 !important;
        padding-top: 80px;
        overflow-y: auto;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .nav-links li {
        width: 100%;
        margin: 5px 0;
    }
    
    .nav-links {
        display: flex !important;
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        list-style: none;
        margin: 0;
    }
    
    .nav-links a {
        display: block !important;
        padding: 12px 15px;
        border-radius: 6px;
        transition: all 0.3s ease;
        color: #ffffff !important;
        text-decoration: none;
        font-size: 1.1rem;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(26, 115, 232, 0.1);
        color: var(--primary-color);
    }
    
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Animación del botón hamburguesa */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Asegurar que el header se vea bien en móviles */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    /* Ajustar el contenido principal para el header fijo */
    main {
        margin-top: 70px;
    }
}
