/* ================= VARIABLES & RESET ================= */
:root {
    --primary-navy: #1b365d;
    --dark-navy: #102a56;
    --accent-orange: #f57c00;
    --accent-orange-hover: #e06d00;
    --active-green: #6cc24a;
    --text-dark: #2c4356;
    --text-muted: #666666;
    --white: #ffffff;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 92%;
    max-width: 1220px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* ================= TOP BAR ================= */
.top-bar {
    background-color: var(--white);
    padding: 14px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 60px;
    width max: 350px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-navy);
    line-height: 1.2;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    font-size: 1.7rem;
    color: var(--accent-orange);
    display: flex;
    align-items: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    line-height: 1.35;
}

.contact-details strong {
    color: #222222;
    font-weight: 600;
}

.contact-details span {
    color: var(--text-muted);
}

/* ================= NAVBAR ================= */
.navbar-wrapper {
    position: relative;
    z-index: 10;
}

.navbar {
    background-color: var(--primary-navy);
    border-radius: 0 0 14px 14px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding-left: 35px;
    min-height: 58px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--active-green);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.language-selector {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.lang-label {
    font-size: 0.68rem;
    color: #cbd5e1;
    margin-bottom: 3px;
}

.lang-flags {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.75;
}

.lang-option.active,
.lang-option:hover {
    opacity: 1;
}

.lang-option img {
    width: 16px;
    height: auto;
    border-radius: 2px;
}

.quote-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
}

.quote-link i {
    font-size: 1.25rem;
}

.quote-link:hover {
    color: var(--accent-orange);
}

.social-box {
    background-color: var(--accent-orange);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    height: 100%;
}

.social-box a {
    color: var(--white);
    font-size: 0.95rem;
}

.social-box a:hover {
    transform: translateY(-2px);
}

/* ================= HERO SECTION ================= */
.hero {
    position: relative;
    min-height: 620px;
    background-image: url('../assets/hero-bg.jpg'), url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 22, 38, 0.72) 0%, rgba(12, 22, 38, 0.62) 60%, rgba(12, 22, 38, 0.78) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: var(--white);
    margin: auto;
    padding: 70px 15px 90px;
}

.hero-subtitle {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.hero-description {
    font-size: 0.98rem;
    max-width: 720px;
    margin: 0 auto 32px;
    color: rgba(255, 255, 255, 0.92);
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-orange);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 13px 34px;
    border-radius: 5px;
    box-shadow: 0 4px 14px rgba(245, 124, 0, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-2px);
}

.scroll-indicator {
    display: flex;
    justify-content: center;
    width: 25px;
    height: 42px;
    border: 2px solid var(--white);
    border-radius: 15px;
    margin: 34px auto 0;
    padding-top: 8px;
}

.mouse-wheel {
    width: 2px;
    height: 8px;
    background-color: var(--white);
    border-radius: 2px;
    animation: scrollWheel 1.6s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

.hero-wave {
    position: relative;
    z-index: 4;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 60px;
}

/* ================= LOGISTICS HUB ================= */
.logistics-hub-section {
    padding: 45px 0 65px;
    background-color: var(--white);
}

.logistics-hub-section .section-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 45px;
}

.hub-wrapper {
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.quick-card {
    position: relative;
    background-color: var(--white);
    border: 1px solid #f0f3f7;
    border-radius: 14px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 118px;
    box-shadow: 0 6px 20px rgba(27, 54, 93, 0.04);
    transition: all 0.25s ease;
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(27, 54, 93, 0.1);
}

.quick-card.active {
    background-color: #214066;
    border-color: #214066;
    color: var(--white);
}

.quick-icon {
    font-size: 1.45rem;
    color: #2c4c70;
    margin-bottom: 10px;
}

.quick-card.active .quick-icon {
    color: var(--white);
}

.quick-card span {
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.3;
    color: #3b536b;
}

.quick-card.active span {
    color: var(--white);
}

.quick-card.has-side-pill .side-pill {
    position: absolute;
    left: -17px;
    top: 18px;
    width: 12px;
    height: 28px;
    border: 2px solid #2c4c70;
    border-radius: 8px;
    background-color: var(--white);
}

.featured-news-card {
    background-color: var(--white);
    border: 1px solid #f0f3f7;
    border-radius: 16px;
    padding: 24px 26px;
    box-shadow: 0 6px 22px rgba(27, 54, 93, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.news-header i {
    font-size: 1.25rem;
    color: var(--accent-orange);
}

.news-header h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #214066;
}

.news-list li {
    border-bottom: 1px solid #f1f4f8;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    font-size: 0.72rem;
    color: #6c7a89;
}

.news-list a i {
    font-size: 0.6rem;
    color: var(--accent-orange);
    flex-shrink: 0;
}

.news-list a span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-list a:hover {
    color: var(--accent-orange);
    padding-left: 4px;
}

/* ================= OUR SERVICES SHOWCASE ================= */
/* ================= OUR SERVICES SHOWCASE ================= */
.our-services-showcase {
    background-color: #f9fbfd;
    padding: 55px 0 80px;
}

.showcase-wrapper {
    max-width: 880px;
    margin: 0 auto;
}

.showcase-title {
    font-size: 1.55rem;
    font-weight: 300;
    color: #214066;
    margin-bottom: 28px;
}

.showcase-title strong {
    font-weight: 700;
}

.services-Banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.service-visual-card {
    position: relative;
    height: 225px;
    border-radius: 14px;
    overflow: hidden;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.service-visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.service-visual-card:hover img {
    transform: scale(1.06);
}

/* Capa oscura degradada dentro de la tarjeta */
.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 20, 38, 0.05) 35%, rgba(5, 15, 30, 0.88) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 22px;
    text-align: center;
}

.service-card-overlay h3 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    transition: transform 0.3s ease;
}

/* Botón "Ver más" que aparece al hacer hover */
.service-btn-hover {
    background-color: var(--accent-orange);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 7px 22px;
    border-radius: 20px;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.4);
}

/* Efecto Hover: Al acercar el mouse aparece el botón */
.service-visual-card:hover .service-btn-hover {
    opacity: 1;
    transform: translateY(0);
}

.service-visual-card:hover h3 {
    transform: translateY(-2px);
}

.showcase-wrapper {
    max-width: 880px;
    margin: 0 auto;
}

.showcase-title {
    font-size: 1.55rem;
    font-weight: 300;
    color: #214066;
    margin-bottom: 28px;
}

.showcase-title strong {
    font-weight: 700;
}

.services-Banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.service-visual-card {
    position: relative;
    height: 225px;
    border-radius: 14px;
    overflow: hidden;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.service-visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.service-visual-card:hover img {
    transform: scale(1.06);
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 20, 38, 0.05) 35%, rgba(5, 15, 30, 0.88) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 22px;
    text-align: center;
}

.service-card-overlay h3 {
    color: var(--white);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ================= STATS BANNER ================= */
.stats-banner-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 85px 0;
    color: var(--white);
}

.stats-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 42, 86, 0.88);
}

.stats-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
}

.stats-text-content {
    text-align: center;
    max-width: 900px;
}

.stats-text-content h2 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.stats-text-content p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.stats-card-box {
    background-color: var(--white);
    color: var(--text-dark);
    width: 100%;
    max-width: 920px;
    border-radius: 12px;
    padding: 35px 25px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid #e2e8f0;
}

.stat-item:last-child {
    border-right: none;
}

.stat-icon {
    font-size: 2rem;
    color: var(--active-green);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1b365d;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ================= BLOG DE NOTICIAS ================= */
.news-blog-section {
    padding: 75px 0;
    background-color: #ffffff;
}

.blog-divider {
    width: 70px;
    height: 3px;
    background-color: var(--primary-navy);
    margin: 12px auto 45px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1050px;
    margin: 0 auto;
}

.blog-card {
    background-color: var(--white);
    border: 1px solid #edf2f7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-img {
    height: 195px;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-body {
    padding: 20px;
}

.blog-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.blog-body h3 a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-navy);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-body h3 a:hover {
    color: var(--accent-orange);
}

.blog-body p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================= CLIENTES ================= */
.clients-section {
    padding: 40px 0 70px;
    background-color: #f9fbfd;
    overflow: hidden;
}

.clients-slider-container {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.clients-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollClients 25s linear infinite;
}

/* Se detiene al colocar el mouse encima */
.clients-slider-container:hover .clients-track {
    animation-play-state: paused;
}

.client-logo-box {
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 185px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #64748b;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.client-logo-box img {
    max-width: 75%;
    max-height: 55%;
    object-fit: contain;
}

/* Animación que desplaza los logos de derecha a izquierda continuamente */
@keyframes scrollClients {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 15px));
    }
}

.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.client-logo-box {
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 165px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #94a3b8;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.client-logo-box img {
    max-width: 80%;
    max-height: 60%;
    object-fit: contain;
}

/* ================= FOOTER ================= */
.site-footer {
    background-color: #102038;
    color: rgba(255, 255, 255, 0.8);
    padding: 65px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 1.2fr 1.4fr;
    gap: 35px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    margin-bottom: 16px;
}

.footer-brand-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
}

.footer-about p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 18px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
    color: var(--accent-orange);
    padding-left: 4px;
}

.footer-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.footer-mini-grid img {
    width: 100%;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.newsletter-form input {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 9px 12px;
    color: var(--white);
    font-size: 0.8rem;
    width: 100%;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form button {
    background-color: var(--accent-orange);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 0 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.newsletter-form button:hover {
    background-color: var(--accent-orange-hover);
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 14px;
}

.footer-contact-details i {
    color: var(--accent-orange);
    margin-right: 6px;
}

.footer-reclamaciones-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1e3a6e;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-reclamaciones-btn:hover {
    background-color: #274785;
}

.footer-bottom {
    background-color: #0b1626;
    padding: 20px 0;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .hub-wrapper {
        grid-template-columns: 1fr;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-card-box {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 15px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .services-Banner-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}