/* ============================================================
   mobile.css — Three Trading Logistics SL
   ============================================================ */

/* ─── HAMBURGER ─────────────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 9999;
    position: relative;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}

.hamburger.open .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open .bar:nth-child(2) { opacity: 0; }
.hamburger.open .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ─── BREAKPOINT ≤ 768px ─────────────────────────────────────── */
@media (max-width: 768px) {

    .hamburger { display: flex; }

    .navbar {
        padding: 16px 0;
        background: rgba(10, 11, 16, 0.55) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    /* Panel lateral — nada por encima de él */
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 75% !important;
        max-width: 300px !important;
        height: 100vh !important;
        background: #0a0b10 !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        gap: 0 !important;
        padding: 80px 36px 40px !important;
        list-style: none !important;
        z-index: 9998 !important;
        transition: right 0.35s ease !important;
        border-left: 2px solid #005bb5 !important;
        box-shadow: -10px 0 40px rgba(0,0,0,0.9) !important;
        pointer-events: auto !important;
        overflow-y: auto !important;
    }

    .nav-links.open { right: 0 !important; }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    .nav-links li:has(.btn-nav) {
        border-bottom: none;
        margin-top: 20px;
    }

    .nav-links a {
        display: block !important;
        padding: 18px 0 !important;
        font-size: 0.95rem !important;
        letter-spacing: 2px !important;
        color: #ffffff !important;
        text-decoration: none !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: rgba(0,91,181,0.2);
    }

    .nav-links a:active { color: #005bb5 !important; }

    .btn-nav {
        display: inline-block !important;
        padding: 11px 22px !important;
        border: 1px solid #005bb5 !important;
        border-radius: 3px !important;
        color: #005bb5 !important;
    }

    /* ── SELECTOR DE IDIOMA (dentro del panel lateral) ─────────── */
    .lang-switcher-mobile-item {
        width: 100%;
        border-bottom: none;
        border-top: 1px solid rgba(255,255,255,0.07);
        margin-top: 20px;
        padding-top: 20px;
    }

    .lang-switcher-mobile-item #lang-switcher {
        margin-left: 0;
        margin-top: 0;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;
    }

    .lang-switcher-mobile-item .lang-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    /* ── HERO ───────────────────────────────────────────────── */
    .hero { height: 100svh !important; min-height: 580px; }
    .hero-content { padding-top: 80px; }
    .subtitle { font-size: 0.7rem; letter-spacing: 2px; }
    .hero h1 { font-size: 2.2rem; line-height: 1.15; margin-bottom: 18px; }
    .hero p  { font-size: 0.95rem; margin-bottom: 28px; line-height: 1.7; }
    .btn     { padding: 13px 26px; font-size: 0.85rem; }

    /* ── STATS ──────────────────────────────────────────────── */
    .stats { margin-top: 0; padding-bottom: 10px; }
    .grid-stats { grid-template-columns: 1fr; gap: 14px; }
    .stat-card  { padding: 26px 22px !important; }
    .stat-number { font-size: 2.6rem; }

    /* ── SERVICES ───────────────────────────────────────────── */
    .services { padding: 55px 0; }
    .section-header { margin-bottom: 36px; }
    .section-header h2 { font-size: 1.5rem; }
    .grid-services { grid-template-columns: 1fr; gap: 22px; }
    .service-img   { height: 190px; }
    .service-info  { padding: 20px 18px; }

    /* ── FOOTER ─────────────────────────────────────────────── */
    .main-footer { padding: 46px 0 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 0; margin-bottom: 24px; }
    .footer-col.brand-info { padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 6px; }
    .footer-col.accordion-col { border-bottom: 1px solid rgba(255,255,255,0.05); }
    .footer-col.accordion-col:last-child { border-bottom: none; }
    .accordion-header { padding: 14px 0; font-size: 0.72rem; margin-bottom: 0; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-legal  { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
    .footer-legal a { margin-right: 0; padding: 4px 8px; }

    /* ── CONTACTO ───────────────────────────────────────────── */
    .contact-section { padding: 55px 0 !important; }
    .contact-grid    { grid-template-columns: 1fr !important; gap: 32px !important; }
    .contact-info-cards { gap: 20px !important; }
    .info-card       { padding: 20px 18px !important; }
    .info-card p     { line-height: 1.6; }
    .contact-form    { padding: 26px 18px !important; }
    .contact-form h3 { font-size: 1.3rem !important; }
    .form-control    { padding: 12px !important; font-size: 16px !important; }

    /* ── GENERAL ────────────────────────────────────────────── */
    .container    { padding: 0 18px; }
    .logo-text    { font-size: 1.1rem; }
    .logo-subtext { font-size: 0.62rem; letter-spacing: 2px; }

    /* ── CAMIONES (Transporte Terrestre) ───────────────────── */
    .truck-grid     { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
    .truck-card     { padding: 18px 10px; }
    .truck-icon     { max-width: 95px; }
    .truck-label    { font-size: 0.82rem; }
    .truck-doc-note { padding: 22px 20px; margin-top: 30px; }
}

/* ─── 769–992px ─────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 992px) {
    .grid-stats    { grid-template-columns: repeat(3,1fr); gap: 14px; }
    .stat-card     { padding: 26px 14px !important; }
    .stat-number   { font-size: 2.4rem; }
    .grid-services { grid-template-columns: repeat(2,1fr); gap: 22px; }
    .hero h1       { font-size: 3rem; }
    .footer-grid   { grid-template-columns: 1fr 1fr; gap: 28px; }
    .contact-grid  { grid-template-columns: 1fr !important; gap: 32px !important; }
    .truck-grid    { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

/* ─── 993–1100px ────────────────────────────────────────────── */
@media (min-width: 993px) and (max-width: 1100px) {
    .hero h1       { font-size: 3.6rem; }
    .grid-services { gap: 22px; }
    .service-img   { height: 200px; }
    .footer-grid   { grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 22px; }
}

/* ─── REDUCED MOTION ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .hidden-fade-up { opacity: 1; transform: none; transition: none; }
    .nav-links      { transition: none !important; }
    .hamburger .bar { transition: none; }
    .hero-bg        { transform: none; }
}