/* ================================================================
   SafaCar — Homepage / Inicio CSS
   Archivo: static/css/inicio.css
   ================================================================ */

/* ── HERO SECTION ── */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #0d2147 40%, #1a3a6e 70%, #1a73e8 100%);
    /* Full bleed: break out of any container padding */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 4rem 0;
}

/* Partículas / dots pattern */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: 0;
}

/* Círculo decorativo grande */
.hero-section::after {
    content: '';
    position: absolute;
    right: -200px;
    top: -200px;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.25) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* ── Badge encima del título ── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 0.4rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.4px;
    margin-bottom: 1.8rem;
    backdrop-filter: blur(6px);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.4);
    }
}

/* ── Título del hero ── */
.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.4rem;
}

.hero-title .highlight {
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Descripción ── */
.hero-desc {
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* ── Botones del hero ── */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    color: #0d2147 !important;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    padding: 0.9rem 2rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1rem;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    padding: 0.9rem 2rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    backdrop-filter: blur(6px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

/* ── Stats debajo de los botones ── */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-icon-row {
    margin-bottom: 0.4rem;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    margin-top: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Panel derecho (card flotante) ── */
.hero-card-float {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    padding: 2.2rem;
    backdrop-filter: blur(14px);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: float 4s ease-in-out infinite;
    max-width: 380px;
    margin: 0 auto;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-card-float .card-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.2rem;
}

.trip-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    transition: background 0.2s;
}

.trip-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.trip-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.trip-icon.blue {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

.trip-icon.green {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.trip-icon.purple {
    background: rgba(167, 139, 250, 0.2);
    color: #a78bfa;
}

.trip-info .trip-route {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.1rem;
}

.trip-info .trip-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.trip-seats {
    margin-left: auto;
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
    white-space: nowrap;
}

/* ── FEATURES SECTION ── */
.features-section {
    background: #f8faff;
    padding: 5rem 0;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e8f0fe;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(26, 115, 232, 0.1);
}

.feature-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.4rem;
}

.feature-card h5 {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.6rem;
    font-size: 1rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ── Botones para usuario autenticado ── */
.btn-dash-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1a73e8;
    color: #fff !important;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    padding: 0.85rem 2rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(26, 115, 232, 0.35);
}

.btn-dash-primary:hover {
    background: #0d5fc4;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.45);
}

.btn-dash-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0f4ff;
    color: #1a73e8 !important;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    padding: 0.85rem 2rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.btn-dash-secondary:hover {
    background: #dce8fd;
    transform: translateY(-2px);
}

.btn-dash-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #64748b !important;
    font-weight: 600;
    font-size: 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.85rem 2rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn-dash-ghost:hover {
    border-color: #1a73e8;
    color: #1a73e8 !important;
    transform: translateY(-2px);
}