/* Paleta de Colores de la Marca */
:root {
    --bg-blanco: #FFFFFF;
    --fast-amarillo: #F5B400;
    --box-fucsia: #D12C8A;
    --limon-verde: #7ED321;
    --texto-oscuro: #333333;
    --texto-claro: #666666;
    --fondo-gris: #f9f9f9;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-blanco);
    color: var(--texto-oscuro);
    line-height: 1.6;
}

/* Utilidades */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }

/* Barra de Navegación */
header {
    background-color: var(--bg-blanco);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* Logo image styling */
.logo .site-logo {
    height: 56px;
    max-height: 62px;
    display: block;
}

@media (max-width: 640px) {
    .logo .site-logo { height: 44px; }
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.logo .fast { color: var(--fast-amarillo); }
.logo .box { color: var(--box-fucsia); }
.logo .limon { color: var(--limon-verde); }

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--texto-oscuro);
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--box-fucsia);
}

/* Botón Menú Hamburguesa (Oculto en PC) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: var(--texto-oscuro);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Botones Generales */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-accion {
    background-color: var(--limon-verde);
    color: var(--bg-blanco);
    box-shadow: 0 4px 10px rgba(126, 211, 33, 0.4);
    font-size: 1.1rem;
}

.btn-accion:hover {
    background-color: #6bb81a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(126, 211, 33, 0.5);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--box-fucsia);
    color: var(--box-fucsia);
}

.btn-outline:hover {
    background-color: var(--box-fucsia);
    color: var(--bg-blanco);
}

/* Hero / Banner Grande */
.hero {
    height: 100vh;
    min-height: 650px;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    margin-top: 0;
}

.hero-content {
    max-width: 800px;
    color: var(--bg-blanco);
    margin-top: 60px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 900;
}

.hero h1 span { color: var(--limon-verde); }

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #eeeeee;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Info Rápida */
.info-bar {
    background-color: var(--fast-amarillo);
    padding: 2rem 5%;
    color: var(--texto-oscuro);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.info-item h3 { font-size: 1.8rem; font-weight: 900; margin-bottom: 0.5rem; }
.info-item p { font-size: 1.1rem; font-weight: 600; }

/* Tiendas Populares */
.tiendas {
    padding: 3rem 0;
    background-color: #000000;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}

.tiendas h3 { color: var(--limon-verde); font-size: 1.1rem; margin-bottom: 1.5rem; font-weight: normal; }

.tiendas-lista {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.tiendas-lista img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
    cursor: default;
    filter: grayscale(100%);
    opacity: 0.7;
}

.tiendas-lista img:hover {
    transform: scale(1.1);
    opacity: 1;
    filter: grayscale(0%);
}

/* Cómo Funciona */
.pasos-section { padding: 5rem 0; background-color: var(--fondo-gris); }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: var(--box-fucsia); }

.pasos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.paso-item { background: var(--bg-blanco); padding: 2rem 1.5rem; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.04); }
.paso-numero { width: 50px; height: 50px; background-color: var(--fast-amarillo); color: var(--bg-blanco); font-size: 1.5rem; font-weight: bold; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 1.5rem; box-shadow: 0 4px 10px rgba(245, 180, 0, 0.4); }
.paso-item:nth-child(2) .paso-numero { background-color: var(--box-fucsia); box-shadow: 0 4px 10px rgba(209, 44, 138, 0.4); }
.paso-item:nth-child(3) .paso-numero { background-color: var(--limon-verde); box-shadow: 0 4px 10px rgba(126, 211, 33, 0.4); }
.paso-item:nth-child(4) .paso-numero { background-color: var(--texto-oscuro); box-shadow: 0 4px 10px rgba(51, 51, 51, 0.4); }

.paso-item h3 { color: var(--texto-oscuro); margin-bottom: 0.8rem; font-size: 1.3rem; }
.paso-item p { color: var(--texto-claro); font-size: 0.95rem; }

/* Servicios */
.servicios { padding: 5rem 0; background-color: var(--bg-blanco); }
.servicios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card { background: var(--fondo-gris); padding: 2.5rem 2rem; border-radius: 12px; text-align: center; border-bottom: 4px solid var(--limon-verde); transition: transform 0.3s; }
.card:hover { transform: translateY(-10px); }

/* Iconos de Servicios con Font Awesome */
.card-icon { font-size: 3rem; margin-bottom: 1.2rem; }
.card:nth-child(1) .card-icon { color: var(--fast-amarillo); }
.card:nth-child(2) .card-icon { color: var(--box-fucsia); }
.card:nth-child(3) .card-icon { color: var(--limon-verde); }

.card h3 { color: var(--texto-oscuro); margin-bottom: 1rem; font-size: 1.4rem; }
.card p { color: var(--texto-claro); }

/* Rastreo de Paquetes */
.rastreo { padding: 5rem 0; background-color: var(--fondo-gris); }

.rastreo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.rastreo-interno, .rastreo-externo {
    background: var(--bg-blanco);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%;
}

.rastreo-interno h3, .rastreo-externo h3 { margin-bottom: 1rem; color: var(--box-fucsia); }
.rastreo-interno h3 i, .rastreo-externo h3 i { margin-right: 8px; color: var(--texto-oscuro); }

/* Formulario Interno de Rastreo */
.input-group { 
    display: flex; 
    gap: 15px; 
    margin-top: 1.5rem; 
}

.input-group input {
    flex: 1;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    width: 100%;
}

.input-group input:focus { border-color: var(--limon-verde); }

/* Resultados de Rastreo */
.tracking-resultado {
    animation: slideDown 0.3s ease-out;
}

.tracking-error {
    animation: slideDown 0.3s ease-out;
}

.tracking-cargando {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.iframe-wrapper {
    margin-top: 1.5rem; 
    border-radius: 8px; 
    overflow: hidden; 
    border: 1px solid #ddd;
    background: #fff;
}

/* FAQ */
.faq { padding: 5rem 0; background-color: var(--bg-blanco); }
details { background: var(--fondo-gris); margin-bottom: 1rem; padding: 1rem 1.5rem; border-radius: 8px; cursor: pointer; }
summary { font-size: 1.1rem; font-weight: 600; color: var(--texto-oscuro); list-style: none; outline: none; }
summary::-webkit-details-marker { display: none; }
details p { margin-top: 1rem; color: var(--texto-claro); padding-top: 1rem; border-top: 1px solid #ddd; }

/* Banner CTA */
.cta-banner { background-color: var(--box-fucsia); color: var(--bg-blanco); text-align: center; padding: 4rem 20px; }
.cta-banner h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }

/* Footer */
footer { background-color: var(--texto-oscuro); color: #cccccc; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: var(--bg-blanco); margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; display: flex; align-items: flex-start; gap: 10px; }
.footer-col ul li i { margin-top: 5px; color: var(--limon-verde); width: 16px; text-align: center; }
.footer-col ul li a { color: #cccccc; text-decoration: none; }
.footer-col ul li a:hover { color: var(--limon-verde); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid #444; font-size: 0.9rem; }

/* Social Links in Footer */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--limon-verde);
    color: var(--bg-blanco) !important;
    transform: scale(1.1);
}

/* Botón Flotante WhatsApp */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: var(--limon-verde); color: #FFF; border-radius: 50px;
    text-align: center; box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease; text-decoration: none;
}
.whatsapp-float i { font-size: 35px; } /* Tamaño del icono Font Awesome */
.whatsapp-float:hover { transform: scale(1.1); background-color: #6bb81a; }

/* =========================================
   DISEÑO RESPONSIVO (MÓVILES Y TABLETS)
   ========================================= */
@media (max-width: 950px) {
    .menu-toggle { display: flex; }
    nav {
        position: absolute; top: 100%; left: 0; width: 100%;
        background-color: var(--bg-blanco); box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 0; overflow: hidden; max-height: 0; transition: max-height 0.3s ease-in-out;
    }
    nav.active { max-height: 400px; padding: 1.5rem 0; border-top: 1px solid #eee; }
    nav ul { flex-direction: column; gap: 1.2rem; }
    nav ul li { width: 100%; text-align: center; }
    nav a { display: block; padding: 0.5rem; }

    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; gap: 1rem; }
    .hero-buttons .btn { width: 100%; }

    .rastreo-container { grid-template-columns: 1fr; gap: 2rem; }
    .rastreo-interno, .rastreo-externo { padding: 1.5rem; }
    .input-group { flex-direction: column; gap: 10px; }
    .input-group button { width: 100%; padding: 1rem; }
    .iframe-wrapper iframe { height: 350px !important; }

    .whatsapp-float { bottom: 20px; right: 20px; width: 55px; height: 55px; }
    .whatsapp-float i { font-size: 30px; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .info-grid { grid-template-columns: 1fr; gap: 1rem; }
    .tiendas-lista img { height: 40px; }
}

