@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('animations.css');

:root {
    /* --- Brand Palette (Based on New Logo) --- */
    /* Vibrant Orange (from Logo Icon & 'FLETE') */
    --brand-orange: #ff6a00;
    --brand-orange-dark: #e65100;
    
    /* White/Gray (from 'N' and Logo Icon Details) */
    --brand-white: #ffffff;
    --brand-gray: #f3f4f6;

    /* --- Modern Palette Mapped --- */
    /* Primary: Deep Charcoal/Black for contrast with Orange */
    --primary-color: #111827; /* Gray 900 */
    --primary-light: #1f2937; /* Gray 800 */
    
    /* Secondary: Vibrant Orange for Actions/Highlights */
    --secondary-color: var(--brand-orange);
    --secondary-gradient: linear-gradient(135deg, #ff6a00 0%, #ff8c00 100%);
    --secondary-glow: rgba(255, 106, 0, 0.4);

    /* Accents */
    --accent-color: #fb923c; /* Lighter Orange */
    --success-color: #10b981;
    --danger-color: #ef4444;

    /* Backgrounds */
    --bg-body: #f9fafb;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.95);
    --bg-glass-dark: rgba(17, 24, 39, 0.95);

    /* Text */
    --text-main: #111827;
    --text-muted: #6b7280;
    --text-light: #f9fafb;
    --text-on-light: #111827;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px var(--secondary-glow);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 106, 0, 0.03) 0%, transparent 20%),
                      radial-gradient(circle at 90% 80%, rgba(17, 24, 39, 0.03) 0%, transparent 20%);
    background-attachment: fixed;
}

/* --- Navbar Dark (High Contrast for Logo) --- */
.navbar {
    background: rgba(17, 24, 39, 0.98); /* Dark Navy/Charcoal */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    padding: 0.6rem 5%;
    box-shadow: var(--shadow-md);
    background: rgba(17, 24, 39, 1);
}

.logo img {
    height: 50px;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.02);
    filter: drop-shadow(0 0 8px rgba(255, 106, 0, 0.3));
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-links span {
    color: var(--text-light) !important; /* White text */
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links span i {
    color: var(--brand-orange);
    font-size: 1.2rem;
}

.nav-links small {
    color: #9ca3af;
    font-weight: 400;
}

.nav-btn {
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-btn.login {
    color: white;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.nav-btn.login:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-btn.register {
    background: var(--brand-orange);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
    border: none;
}

.nav-btn.register:hover {
    background: var(--brand-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.4);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    color: var(--text-light);
    overflow: hidden;
    margin-top: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1.05);
    animation: zoomPulse 20s infinite alternate;
    filter: brightness(0.5) contrast(1.1);
}

/* Dark overlay for contrast */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.7) 0%, rgba(17, 24, 39, 0.9) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero h1 span {
    background: linear-gradient(90deg, #ff6a00, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 2px 10px rgba(255, 106, 0, 0.3));
}

.hero p {
    font-size: 1.2rem;
    color: #e5e7eb;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.cta-btn {
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.cta-primary {
    background: var(--brand-orange);
    color: white;
    box-shadow: 0 5px 20px rgba(255, 106, 0, 0.4);
    border: none;
}

.cta-primary:hover {
    background: var(--brand-orange-dark);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 106, 0, 0.5);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.2);
}

/* --- How It Works / General Sections --- */
.how-it-works {
    padding: 6rem 5%;
    background: transparent;
    text-align: center;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 6px;
    background: var(--brand-orange);
    border-radius: 10px;
    margin: 10px auto 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.step-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: var(--brand-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.step-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    width: 90px;
    height: 90px;
    background: rgba(255, 106, 0, 0.1);
    color: var(--brand-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    box-shadow: inset 0 0 20px rgba(255, 106, 0, 0.1);
    transition: var(--transition);
}

.step-card:hover .icon-box {
    transform: rotate(10deg) scale(1.1);
    background: var(--brand-orange);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 106, 0, 0.3);
}

.step-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

/* --- Dashboard & Tables --- */
.dashboard-container {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
}

.welcome-card, .form-card, .stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.02);
    transition: var(--transition);
}

.welcome-card:hover, .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* --- Footer --- */
footer {
    background: var(--primary-color);
    color: #9ca3af;
    padding: 5rem 5% 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 300px; height: 300px;
    background: var(--brand-orange);
    filter: blur(150px);
    opacity: 0.1;
    border-radius: 50%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-col a:hover {
    color: var(--brand-orange);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9ca3af;
}

.contact-list i {
    color: var(--brand-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomPulse {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

/* --- Auth Forms --- */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    padding: 20px;
}

.auth-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.auth-card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--brand-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.btn-auth {
    width: 100%;
    padding: 12px;
    background: var(--brand-orange);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-auth:hover {
    background: var(--brand-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 81, 0, 0.3);
    color: white !important; /* Asegurar que el texto siga blanco con prioridad */
}

.auth-links {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.auth-links a {
    color: var(--brand-orange);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .navbar {
        background: white;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        flex-direction: column;
        padding: 1rem;
        gap: 15px;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .nav-links span {
        color: var(--primary-color) !important;
        margin: 0 0 10px 0 !important;
        display: block;
        text-align: center;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }
    
    .nav-btn.login {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }
    
    .dashboard-container {
        padding: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}