/* --- PALETA OFICIAL ROADRUNNER FREIGHT MX (RGB 0, 13, 170) --- */
:root {
    --bg-color: #fcfcfd;
    --text-color: #111827;
    --accent-color: rgb(0, 13, 170); /* Azul oficial de marca #000daa */
    --accent-hover: #000980;
    --subtle-gray: #f3f4f6;
    --border-color: #e5e7eb;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- HEADER EN BANDA AZUL COMPLETA CON LOGO DESTACADO --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: var(--accent-color);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    height: 55px;
    width: auto;
    border-radius: 4px;
    display: block;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: #ffffff;
}

/* --- SELECTOR DE IDIOMA (DROPDOWN) --- */
.lang-switch {
    position: relative;
    flex-shrink: 0;
}

.lang-switch summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.2s ease;
}

.lang-switch summary::-webkit-details-marker { display: none; }

.lang-switch summary:hover,
.lang-switch[open] summary {
    background: rgba(255, 255, 255, 0.28);
}

.lang-switch summary:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 160px;
    list-style: none;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    padding: 0.4rem 0;
    overflow: hidden;
}

.lang-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.55rem 1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.lang-menu a:hover,
.lang-menu a:focus-visible {
    background-color: var(--subtle-gray);
    outline: none;
}

.lang-menu a[aria-current="page"]::after {
    content: "✓";
}

/* --- BANNER DESTACADO DE COBERTURA --- */
.coverage-strip {
    background: linear-gradient(135deg, #1e1b4b 0%, #000daa 100%);
    color: #ffffff;
    padding: 1rem 5%;
    text-align: center;
    font-size: 1.05rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.coverage-strip strong {
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-border {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    margin: 0 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* --- HÉROE PRINCIPAL --- */
.hero {
    display: flex;
    align-items: center;
    padding: 5rem 5%;
    gap: 4rem;
    background-color: #ffffff;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -1.5px;
    hyphens: auto;
    overflow-wrap: break-word;
    color: var(--text-color);
}

.hero p {
    font-size: 1.2rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    object-fit: cover;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 13, 170, 0.25);
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 13, 170, 0.35);
}

/* --- SECCIÓN DE RUTA DESTACADA / COBERTURA --- */
.routes-highlight {
    padding: 3.5rem 5%;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.routes-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.route-card {
    background-color: var(--subtle-gray);
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
}

.route-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.route-card p {
    font-size: 1rem;
    color: #374151;
}

/* --- CARRUSEL AUTOMÁTICO --- */
.gallery-section {
    padding: 5rem 5%;
    background-color: var(--subtle-gray);
    text-align: center;
}

.gallery-section h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.gallery-lead {
    color: #6b7280;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
}

.carousel-container {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    background-color: #fff;
}

.carousel-track {
    display: flex;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
    color: #ffffff;
    padding: 2.5rem 1.5rem 1.2rem;
    font-size: 1.15rem;
    font-weight: 500;
    text-align: left;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-color);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.carousel-btn:hover { background: #ffffff; }
.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.25rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: var(--accent-color);
    transform: scale(1.25);
}

/* --- CARACTERÍSTICAS Y SOBRE NOSOTROS --- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    padding: 5rem 5%;
    background-color: #ffffff;
}

.feature-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    border-top: 4px solid var(--accent-color);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.feature-card p {
    font-size: 0.95rem;
    color: #4b5563;
}

.about {
    padding: 5rem 5%;
    max-width: 850px;
    margin: 0 auto;
}

.about h2 {
    font-size: 2.2rem;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
    text-align: center;
}

.about p {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 1.25rem;
}

.contact {
    padding: 5rem 5%;
    border-top: 1px solid var(--border-color);
    background-color: #ffffff;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.contact p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
}

.contact a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.contact a:hover {
    text-decoration: underline;
}

footer {
    padding: 2.5rem 5%;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
    border-top: 1px solid var(--border-color);
    background-color: var(--subtle-gray);
}

@media (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; gap: 2.5rem; }
    .hero-content { max-width: 100%; }
    .hero h1 { font-size: 2.5rem; }
    .carousel-slide img { height: 350px; }
}

@media (max-width: 600px) {
    .brand-logo { height: 42px; }
    .logo-text { font-size: 1rem; }
    .brand-container { gap: 10px; }
    .lang-switch summary { padding: 0.35rem 0.7rem; letter-spacing: 0.5px; }
    .hero h1 { font-size: 2rem; }
    .carousel-slide img { height: 280px; }
    .carousel-caption { font-size: 0.95rem; padding: 1rem; }
    .carousel-btn { width: 36px; height: 36px; font-size: 1rem; }
}
