/* ============================================================================
   styles.css — Three Trading Logistics SL
   ============================================================================
   Hoja de estilos principal (versión de escritorio). Contiene:
     - Variables de marca (colores, transición) en :root
     - Cabecera / menú de navegación
     - Botones
     - Sección "hero" (cabecera grande con imagen de fondo)
     - Tarjetas de estadísticas ("stats")
     - Tarjetas de servicios ("services")
     - Pie de página con acordeón desplegable
     - Animaciones de aparición al hacer scroll
     - Cuadrícula de tipos de camión (página Transporte Terrestre)

   El comportamiento específico para pantallas pequeñas (móvil/tablet) está
   en mobile.css, que se carga siempre después de este archivo para poder
   sobrescribir estas reglas en los breakpoints correspondientes.
   ============================================================================ */

/* Variables basadas en el Logo (Navy & Silver) */
:root {
    --bg-dark: #0a0b10;
    --bg-card: #12151e;
    --brand-navy: #001f3f;
    --brand-blue-bright: #005bb5;
    --brand-blue-hover: #0073e6;
    --silver: #a0aabf;
    --text-light: #ffffff;
    --text-muted: #8e98ab;
    --transition-smooth: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, .logo-text { font-family: 'Montserrat', sans-serif; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}
.nav-content nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 11, 16, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content { display: flex; justify-content: space-between; align-items: center; }

.logo { 
    display: flex; 
    align-items: center; 
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover { transform: scale(1.02); }

.logo-text-wrapper { display: flex; flex-direction: column; }
.logo-text { font-weight: 900; font-size: 1.4rem; letter-spacing: 1px; color: var(--text-light); }
.logo-subtext { font-size: 0.75rem; color: var(--brand-blue-bright); letter-spacing: 3px; display: block; }

.logo-img {
    height: 52px;
    width: auto;
    max-width: 220px;
    display: block;
}

.logo-img-footer {
    height: 48px;
}

.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a { color: var(--text-light); text-decoration: none; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; transition: color 0.3s; }
.nav-links a:hover { color: var(--brand-blue-bright); }

/* Botones */
.btn {
    padding: 15px 35px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    border-radius: 3px;
    display: inline-block;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--brand-blue-bright);
    color: var(--text-light);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 91, 181, 0.2);
}
.btn-primary:hover {
    background: var(--brand-blue-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 91, 181, 0.4);
}

.btn-nav {
    border: 1px solid var(--brand-blue-bright);
    padding: 10px 20px;
    color: var(--brand-blue-bright) !important;
}
.btn-nav:hover { background: var(--brand-blue-bright); color: var(--text-light) !important; }

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(10, 11, 16, 0.95) 0%, rgba(10, 11, 16, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.subtitle { color: var(--silver); font-size: 1rem; letter-spacing: 4px; margin-bottom: 20px; text-transform: uppercase; }
.hero h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 30px; }
.text-accent { color: var(--brand-blue-bright); }
.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; max-width: 600px; line-height: 1.8; }

/* Stats */
.stats {
    position: relative;
    z-index: 10;
    margin-top: -80px;
}

.grid-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-card {
    background: var(--bg-card);
    padding: 40px;
    text-align: center;
    border-top: 4px solid var(--brand-blue-bright);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border-radius: 5px;
}

.stat-number { font-size: 3.5rem; font-weight: 900; margin-bottom: 10px; }
.counter { color: var(--brand-blue-bright); }

/* Servicios */
.services { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.line-accent { width: 60px; height: 4px; background: var(--brand-blue-bright); margin: 20px auto 0; }

.grid-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card { background: var(--bg-card); border-radius: 5px; overflow: hidden; }
.service-img { height: 250px; background-size: cover; background-position: center; transition: 0.7s; }
.service-card:hover .service-img { transform: scale(1.1); }
.service-info { padding: 30px; }
.service-info h3 { color: var(--brand-blue-bright); margin-bottom: 15px; }

/* Footer Desplegable (Acordeón) */
.main-footer {
    background-color: #05070a;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.accordion-header {
    color: var(--text-light);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--brand-blue-bright);
    transition: transform 0.3s ease;
}

.accordion-header.active .toggle-icon { transform: rotate(45deg); }

.footer-contact-link {
    color: inherit;
    text-decoration: none;
}
.footer-contact-link:hover { color: var(--brand-blue-bright); }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-content.active { max-height: 400px; }

.footer-nav, .contact-list { list-style: none; padding-top: 10px; }
.footer-nav li, .contact-list li { margin-bottom: 12px; }
.footer-nav a { color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.footer-nav a:hover { color: var(--brand-blue-bright); padding-left: 5px; }

.contact-list { color: var(--text-muted); font-size: 0.9rem; }
.icon-small { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; color: var(--brand-blue-bright); margin-right: 6px; flex-shrink: 0; }

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    margin-right: 20px;
}

.copyright { color: #4e5664; font-size: 0.8rem; }

/* Animaciones */
.hidden-fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: 0.8s ease-out;
}

.show-fade-up {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid, .grid-stats, .grid-services { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3rem; }
}

/* ── Cuadrícula de tipos de camión (Transporte Terrestre) ───────── */
.truck-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 10px;
}

.truck-card {
    background: var(--bg-card);
    border-radius: 5px;
    padding: 26px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.truck-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.45);
}

.truck-icon {
    width: 100%;
    max-width: 120px;
    height: auto;
}

.truck-icon [data-draw] {
    fill: none;
    stroke: var(--brand-blue-bright);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.truck-icon [data-draw-thin] {
    fill: none;
    stroke: var(--silver);
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.truck-label {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.92rem;
    text-align: center;
    letter-spacing: 0.5px;
}

.truck-doc-note {
    margin-top: 50px;
    background: var(--bg-card);
    border-left: 4px solid var(--brand-blue-bright);
    border-radius: 5px;
    padding: 30px 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.truck-doc-note h3 {
    color: var(--brand-blue-bright);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.truck-doc-note p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}