:root {
    --color-primario: #1c47d4; /* El verde turquesa de la imagen */
    --color-oscuro: #f07706;
    --color-texto: #050457;
    --color-fondo: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--color-texto);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header y Logo */
header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}
.brand-text {
    display: flex;
    flex-direction: column; /* Pone el nombre principal arriba y el resto abajo */
    line-height: 1;
}

.main-name {
    font-size: 1.4rem;
    color: #003366; /* El azul marino de tu logo */
    letter-spacing: 2px;
    font-weight: 400;
}

.main-name strong {
    font-weight: 900; /* Hace que "MORUS" resalte mucho más */
}

.sub-name {
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 4px;
    margin-top: 4px;
    border-top: 1px solid #ddd;
    padding-top: 2px;
}
.logo-img {
    height: 70px; /* Ajusta según tu logo */
    margin-right: 60px;
}

.logo-text {
    font-weight: bold;
    font-size: 1.8rem;
    color: var(--color-oscuro);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-oscuro);
    margin-left: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-nav {
    background: var(--color-primario);
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(41, 6, 238, 0.99), rgba(0,0,0,0.4)), 
                url('https://images.unsplash.com/photo-1519003722824-192d992333df?auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    text-align: left;
    color: white;
}

.hero-text h1 {
    font-size: 3rem;
    background: linear-gradient(90deg, #b8c2cc, #0055aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    margin-bottom: 10px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.btn-main {
    display: inline-block;
    background: var(--color-primario);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 25px;
    text-transform: uppercase;
}

/* Servicios */
.section-title {
    text-align: center;
    margin: 60px 0 40px;
    font-size: 2.2rem;
    color: var(--color-oscuro);
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background: white;
    padding: 5px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    transition: 0.3s;
}

.card:hover {
    border-color: var(--color-primario);
    transform: translateY(-5px);
}

.icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

footer {
    background: var(--color-oscuro);
    color: white;
    padding: 30px 0;
    text-align: center;
}
/* Buscador dentro de la tarjeta */
.search-box {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

#trackingInput {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    outline: none;
}

#trackingInput:focus {
    border-color: var(--color-primario);
}

.btn-search {
    background: var(--color-oscuro);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-search:hover {
    background: var(--color-primario);
}

#trackingResult {
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.card-seguimiento {
    background: #f8f9fa;
    border-left: 5px solid #007bff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: left;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Colores dinámicos */
.entregado { background: #d4edda; color: #155724; }
.en-camino { background: #fff3cd; color: #856404; }
.pendiente { background: #f8d7da; color: #721c24; }

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}
/* Estilos para el Dropdown de Contacto */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none; /* Oculto por defecto */
    position: absolute;
    right: 0;
    background-color: #ffffff;
    min-width: 250px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 8px;
    margin-top: 10px;
    overflow: hidden;
}

/* Enlaces dentro del menú desplegable */
.dropdown-content a {
    color: #333 !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f1f1;
    margin-left: 0 !important; /* Reset de márgenes anteriores */
    transition: 0.3s;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: var(--color-primario) !important;
}

.dropdown-content a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Mostrar el menú al pasar el mouse */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Ajuste para el botón de navegación */
.btn-nav i {
    font-size: 0.8rem;
    margin-left: 5px;
}
/* Colores específicos para los iconos en el menú desplegable */

/* WhatsApp */
.dropdown-content a:nth-child(1) i {
    color: #25d366; /* Verde oficial */
}
.dropdown-content a:nth-child(1):hover {
    background-color: #e8f9ee;
}

/* Instagram */
.dropdown-content a:nth-child(2) i {
    color: #e1306c; /* Rosa/Rojo oficial */
}
.dropdown-content a:nth-child(2):hover {
    background-color: #fdf2f6;
}

/* Correo */
.dropdown-content a:nth-child(3) i {
    color: #ea4335; /* Rojo Gmail */
}
.dropdown-content a:nth-child(3):hover {
    background-color: #fef2f2;
}

/* Estilo general para resaltar el texto al pasar el mouse */
.dropdown-content a:hover {
    font-weight: bold;
    transition: 0.2s;
}
/* Configuración de la franja con imagen lateral */
.hero {
    background: linear-gradient(135deg, #0f199c 0%, #004d40 100%); /* Color turquesa oscuro */
    padding: 60px 0;
    color: white;
    overflow: hidden;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    color:#003366
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 150%;
    height: auto;
    border-radius: 15px; /* Bordes redondeados para la foto */
    box-shadow: 0 20px 40px rgba(0,0,0,0.3); /* Sombra para dar profundidad */
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.03); /* Efecto sutil al pasar el mouse */
}

/* --- Adaptación para celulares --- */
@media (max-width: 768px) {
    .hero-flex {
        flex-direction: column; /* En móvil, el texto arriba y la imagen abajo */
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
}
/* Contenedor de la línea de tiempo */
.timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    position: relative;
}

/* Color de la línea de fondo (Gris suave) */
.timeline::before {
    background: #d1d8e0;
    height: 4px; /* Un poco más gruesa para que resalte */
}

/* Estilo del círculo del icono */
.step {
    width: 50px; /* Un poco más grandes para que luzcan */
    height: 50px;
    background: #f8f9fa;
    border: 2px solid #d1d8e0;
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 1.2rem; /* Tamaño del icono */
    color: #a5b1c2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Cuando el paso está activo */
.step.active {
    background: #003366; /* Tu azul corporativo */
    border-color: #003366;
    color: white;
    transform: scale(1.1); /* Efecto de resaltado */
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.4);
}

/* Ajuste de las etiquetas debajo del icono */
.step-label {
    position: absolute;
    top: 55px; 
    font-size: 10px;
    font-weight: 800;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    width: 80px;
}
/* --- BARRA SUPERIOR LUMINOSA --- */
.top-bar {
    background: #001a33; /* Azul muy oscuro */
    color: white;
    padding: 8px 0;
    font-size: 0.8rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.luminoso {
    color: #2ecc71;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
    animation: parpadeo 2s infinite;
    letter-spacing: 1px;
}

@keyframes parpadeo {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* --- AJUSTE DEL HERO (LETRA Y CAMIÓN) --- */
.hero {
    background: #f4f7f9;
    padding: 60px 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* La letra tiene más espacio que la imagen */
    align-items: center;
    gap: 30px;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: #002142;
    line-height: 1.1;
}

.morus-bold {
    font-weight: 900;
    color: #004488;
}

.hero-text small {
    font-size: 2.5rem;
    font-weight: 300;
    color: #23036e;
}

.hero-image img {
    width: 100%;
    max-width: 450px; /* Limitamos el tamaño del camión */
    height: auto;
    border-radius: 20px;
    box-shadow: 20px 20px 60px #d9d9d9, -20px -20px 60px #ffffff; /* Efecto moderno */
}

/* Responsivo para celulares */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image img {
        max-width: 300px;
        margin-top: 30px;
    }
}
.btn-Rastrear {
    background: linear-gradient(135deg, #003366 0%, #0055aa 100%);
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 50px; /* Bordes totalmente redondeados */
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px; /* Espacio entre el icono de lupa y el texto */
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
    outline: none;
}

/* Efecto cuando el cliente pasa el mouse */
.btn-rastreo:hover {
    transform: translateY(-3px); /* Se eleva un poquito */
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.5);
    background: linear-gradient(135deg, #004488 0%, #0066cc 100%);
}

/* Efecto cuando se hace clic */
.btn-rastreo:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 51, 102, 0.3);
}

/* ... Todo tu CSS anterior de cabeceras, botones, colores, etc. ... */

/* --- PEGA ESTO AQUÍ AL FINAL --- */

/* Animación del Círculo de Carga (Spinner) */
.loader {
    border: 5px solid #f3f3f3; /* Color del borde gris claro */
    border-top: 5px solid #15037a; /* Color azul de tu marca (Morus) */
    border-radius: 50%;
    width: 45px;
    height: 45px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Movimiento de rotación */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Efecto de aparición suave para la tarjeta de resultados */
.card-seguimiento {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}