/* ═══════════════════════════════════════════════════════════════
   Megaflotas — Hoja de estilos principal
   PALETA: Negro #0D0D0D | Verde menta #00C8A0 | Blanco #FFFFFF
═══════════════════════════════════════════════════════════════ */

html {
    scroll-behavior: smooth;
}

/* Evita que la navbar fija tape el título al navegar con anclas */
section[id] {
    scroll-margin-top: 85px;
}

body {
    font-family: 'Inter', sans-serif;
    color: #FFFFFF;
    background-color: #0D0D0D;
}

/* ── NAVBAR ──────────────────────────────────────────────────── */
.navbar {
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    color: white;
}

.nav-link {
    color: white !important;
    margin-left: 20px;
}

.nav-link.active {
    color: #00C8A0 !important;
    font-weight: 600;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)),
    url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=1920&q=80&fm=webp&auto=format');
    height: 100vh;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 20px;
}

/* ── BOTONES ─────────────────────────────────────────────────── */
.btn-primary-custom {
    background: #00C8A0;
    border: none;
    padding: 12px 25px;
    color: #000000;
    font-weight: 600;
}

.btn-primary-custom:hover {
    background: #00A884;
    color: #000000;
}

.btn-outline-primary {
    color: #00C8A0;
    border-color: #00C8A0;
}

.btn-outline-primary:hover {
    background-color: #00C8A0;
    border-color: #00C8A0;
    color: #000000;
}

.btn-outline-light {
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.btn-outline-dark {
    color: #FFFFFF;
    border-color: #555555;
}

.btn-outline-dark:hover {
    background-color: #FFFFFF;
    color: #000000;
}

.whatsapp-btn {
    background: #25D366;
    border: none;
}

/* ── SECCIONES ───────────────────────────────────────────────── */
.section {
    padding: 100px 0;
}

.section-light {
    background: #161616;
}

.section-dark {
    background: #000000;
    color: white;
}

/* ── EXPERIENCIA ─────────────────────────────────────────────── */
.experience-box {
    text-align: center;
}

.experience-number {
    font-size: 3rem;
    font-weight: 700;
    color: #00C8A0;
}

/* ── CARDS SERVICIOS ─────────────────────────────────────────── */
.service-card {
    background: #1E1E1E;
    padding: 30px;
    border-radius: 12px;
    transition: 0.3s;
    height: 100%;
    color: #FFFFFF;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* ── DIFERENCIACIÓN ──────────────────────────────────────────── */
.feature-box {
    margin-bottom: 30px;
}

.feature-box h5 {
    font-weight: 600;
}

/* ── CONTACTO ────────────────────────────────────────────────── */
.contact-info-box {
    background: #1E1E1E;
    padding: 40px;
    border-radius: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 20px;
    margin-right: 15px;
}

.contact-item a {
    text-decoration: none;
    color: #00C8A0;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
    background: #000000;
    color: white;
    padding: 40px 0;
}

/* ── PLATAFORMA ──────────────────────────────────────────────── */
.platform-image-wrapper {
    position: relative;
    display: inline-block;
}

.platform-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,200,160,0.35) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(40px);
}

/* ── WHATSAPP FLOTANTE ───────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 998;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37,211,102,0.55);
}

/* ── TIMELINE ────────────────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    width: 2px;
    height: 100%;
    background: #2A2A2A;
}

.timeline-step {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
}

.timeline-number {
    min-width: 50px;
    height: 50px;
    background: #00C8A0;
    color: #000000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    box-shadow: 0 10px 25px rgba(0,200,160,0.2);
}

.timeline-content {
    background: #1E1E1E;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    color: #FFFFFF;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h5 {
    margin-bottom: 10px;
}

/* ── ACCORDION FAQ ───────────────────────────────────────────── */
.custom-accordion .accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.custom-accordion .accordion-button {
    background: #1E1E1E;
    font-weight: 500;
    padding: 18px;
    color: #FFFFFF;
}

.custom-accordion .accordion-button::after {
    filter: invert(1);
}

.custom-accordion .accordion-button:not(.collapsed) {
    background: #00C8A0;
    color: #000000;
}

.custom-accordion .accordion-button:not(.collapsed)::after {
    filter: invert(1);
}

.custom-accordion .accordion-body {
    background: #222222;
    padding: 20px;
    border-top: 1px solid #2A2A2A;
    color: #CCCCCC;
}

/* ── CARDS SOLUCIONES ────────────────────────────────────────── */
.solution-card {
    background: #1E1E1E;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    color: #FFFFFF;
}

.solution-card:hover {
    transform: translateY(-8px);
}

.solution-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.solution-body {
    padding: 25px;
}

.solution-body h4 {
    margin-bottom: 10px;
}

.solution-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.solution-list li {
    margin-bottom: 8px;
    color: #BBBBBB;
}

.solution-card.featured {
    border: 2px solid #00C8A0;
    transform: scale(1.03);
}

.solution-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #00C8A0;
    color: #000000;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 600;
}

/* ── CARDS EQUIPO ────────────────────────────────────────────── */
.team-card {
    background: #1E1E1E;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-image {
    position: relative;
}

.team-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
}

.team-content {
    padding: 25px;
    color: #FFFFFF;
}

.team-content h4 {
    margin-bottom: 10px;
}

.team-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.team-list li {
    margin-bottom: 8px;
    color: #BBBBBB;
}

.team-note {
    margin-top: 15px;
    font-size: 14px;
    color: #888888;
}

/* ── SEGUIMIENTO MERCANCÍAS ──────────────────────────────────── */
.cargo-image-wrapper {
    position: relative;
}

.cargo-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0,200,160,0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
    z-index: -1;
}

.cargo-card {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #1E1E1E;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    font-weight: 500;
    color: #FFFFFF;
}

.cargo-card small {
    display: block;
    font-size: 12px;
    color: #888888;
}

.cargo-feature {
    display: flex;
    margin-bottom: 25px;
}

.cargo-feature .icon {
    font-size: 22px;
    margin-right: 15px;
}

.cargo-feature h5 {
    margin-bottom: 5px;
}

.cargo-features {
    padding-left: 10px;
}

/* ── FORMULARIO ──────────────────────────────────────────────── */
.form-control {
    background: #1E1E1E;
    border-color: #2A2A2A;
    color: #FFFFFF;
}

.form-control:focus {
    background: #1E1E1E;
    border-color: #00C8A0;
    color: #FFFFFF;
    box-shadow: 0 0 0 0.25rem rgba(0,200,160,0.25);
}

.form-control::placeholder {
    color: #666666;
}

.form-label {
    color: #CCCCCC;
    font-size: 0.875rem;
    margin-bottom: 5px;
    display: block;
}

.req { color: #00C8A0; }

.form-check-input {
    background-color: #1E1E1E;
    border-color: #444;
}

.form-check-input:checked {
    background-color: #00C8A0;
    border-color: #00C8A0;
}

.form-check-label {
    color: #BBBBBB;
    font-size: 0.88rem;
}

.form-check-label a {
    color: #00C8A0;
    text-decoration: none;
}

.form-check-label a:hover { text-decoration: underline; }

/* ── BANNER COOKIES ──────────────────────────────────────────── */
#cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #111111;
    border-top: 1px solid #2A2A2A;
    padding: 18px 24px;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.cookie-banner-text {
    flex: 1;
    min-width: 200px;
}

.cookie-banner-text strong {
    display: block;
    color: #FFFFFF;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.cookie-banner-text p {
    color: #999999;
    font-size: 0.85rem;
    margin: 0;
}

.cookie-banner-text a {
    color: #00C8A0;
    text-decoration: none;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.btn-cookie-reject {
    background: transparent;
    border: 1px solid #444;
    color: #BBBBBB;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-cookie-reject:hover { border-color: #FFFFFF; color: #FFFFFF; }

.btn-cookie-accept {
    background: #00C8A0;
    border: none;
    color: #000000;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-cookie-accept:hover { background: #00A884; }
