/* ==============================
   ENCABEZADO MEJORADO (CONSISTENTE CON STYLES.CSS)
============================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.95), rgba(0, 0, 0, 0.9));
    backdrop-filter: blur(10px);
    color: #fff;
    z-index: 1000;
    padding: 8px 20px;
    height: 130px;
    border-bottom: 1px solid rgba(14, 224, 208, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo {
    margin-left: 250px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 220px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: filter 0.3s ease;
}

.logo img:hover {
    filter: drop-shadow(0 6px 12px rgba(14, 224, 208, 0.4));
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all .3s ease;
    position: relative;
}

.nav a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #0EE0D0;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav a:hover {
    color: #0EE0D0;
    background: rgba(14, 224, 208, 0.1);
}

.nav a:hover::before {
    width: 80%;
}

.btn-menu {
    background: linear-gradient(135deg, #0EE0D0, #05D1CB);
    color: #2A2A2A;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 24px;
    box-shadow: 0 4px 15px rgba(14, 224, 208, 0.3);
    transition: all 0.3s ease;
}

.btn-menu:hover {
    background: linear-gradient(135deg, #05D1CB, #0EE0D0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 224, 208, 0.4);
}

/* BOTÓN HAMBURGUESA - OCULTO EN ESCRITORIO */
.nav-toggle {
    display: none;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-left: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    color: #2A2A2A;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    transition: all .3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-icons a:hover {
    background: linear-gradient(135deg, #0EE0D0, #05D1CB);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 224, 208, 0.3);
}

/* ==============================
   ESTILOS ESPECÍFICOS DEL SEGUIMIENTO AJUSTADOS
============================== */
.seguimiento {
    background: #f8f9fa;
    padding: 150px 8% 80px; /* Aumentado padding-top para header más alto */
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.seguimiento-container {
    max-width: 600px;
    margin: auto;
    text-align: center;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.seguimiento h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #2A2A2A;
    margin-bottom: 10px;
}

.seguimiento p {
    color: #555;
    margin-bottom: 25px;
}

.form-seguimiento {
    display: flex;
    gap: 10px;
}

.form-seguimiento input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-seguimiento input:focus {
    border-color: #2A2A2A;
    outline: none;
}

.form-seguimiento button {
    background: #2A2A2A;
    color: #ffffff;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-seguimiento button:hover {
    background: #0EE0D0;
    color: #2A2A2A;
}

.resultado {
    margin-top: 30px;
    text-align: left;
    color: #333;
}

/* ==============================
   DETALLES DEL PEDIDO Y TIMELINE
============================== */
.pedido-detalle {
    margin-top: 30px;
    text-align: left;
    border-top: 2px solid #ddd;
    padding-top: 20px;
}

.pedido-detalle h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2A2A2A;
}

.pedido-detalle p {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #555;
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
    position: relative;
    padding: 0 10px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 10px;
    right: 10px;
    height: 4px;
    background-color: #e0e0e0;
    z-index: 0;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    z-index: 2;
    position: relative;
}

.timeline-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
    border: 3px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.timeline-circle i {
    font-size: 1.2em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.timeline-text {
    margin-top: 8px;
    font-size: 0.9em;
    color: #888;
    text-align: center;
    white-space: nowrap;
    font-weight: bold;
    max-width: 80px;
    transition: color 0.3s ease;
}

.timeline-item.active .timeline-circle {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    transform: scale(1.05);
    animation: pulse-active 2s infinite;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.4);
}

.timeline-item.active .timeline-circle i {
    animation: bounceIn 0.6s ease;
}

.timeline-item.active .timeline-text {
    color: #28a745;
}

.timeline-item:hover .timeline-circle {
    transform: scale(1.1);
}

.timeline-item.active:hover .timeline-circle {
    transform: scale(1.15);
}

.progress-line {
    height: 4px;
    background-color: #2ecc71;
    position: absolute;
    top: 25px;
    left: 10px;
    transition: width 0.5s ease;
    z-index: 1;
}

/* ==============================
   GRID DE INFORMACIÓN DEL PEDIDO
============================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.info-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #0EE0D0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.info-section h4 {
    color: #2A2A2A;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-section h4 i {
    color: #0EE0D0;
    font-size: 1.2rem;
}

.info-section p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.info-section p strong {
    color: #2A2A2A;
    font-weight: 600;
}

/* ==============================
   MENSAJE DE ERROR
============================== */
.mensaje-error {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 15px;
    color: #856404;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.mensaje-error i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #f39c12;
    animation: pulse 2s infinite;
}

.mensaje-error p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.mensaje-error small {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 10px;
}

/* ==============================
   ANIMACIONES
============================== */
@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    0% {
        opacity: 0;
        transform: scale3d(.3, .3, .3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(.9, .9, .9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(.97, .97, .97);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes pulse-active {
    0% { box-shadow: 0 4px 20px rgba(40, 167, 69, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(40, 167, 69, 0.6); }
    100% { box-shadow: 0 4px 20px rgba(40, 167, 69, 0.4); }
}

/* ==============================
   RESPONSIVE - MÓVILES MEJORADO
============================== */
@media (max-width: 900px) {
    /* HEADER MÓVIL PROFESIONAL */
    .header {
        height: 100px; /* Aumentado para mejor presencia */
        padding: 15px 20px;
        flex-wrap: nowrap;
        justify-content: space-between;
        background: linear-gradient(135deg, rgba(42, 42, 42, 0.98), rgba(0, 0, 0, 0.95));
        backdrop-filter: blur(15px);
        border-bottom: 2px solid rgba(14, 224, 208, 0.3);
    }

    .logo {
        margin-left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo img {
        height: 85px; /* Considerablemente más grande */
        width: auto;
        filter: drop-shadow(0 4px 12px rgba(14, 224, 208, 0.4));
        transition: all 0.3s ease;
    }

    .logo:hover img {
        transform: scale(1.08);
        filter: drop-shadow(0 6px 16px rgba(14, 224, 208, 0.6));
    }

    /* BOTÓN HAMBURGUESA MODERNO */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: linear-gradient(135deg, #0EE0D0, #05D1CB);
        color: #2A2A2A;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 1100;
        position: relative;
        box-shadow: 0 4px 15px rgba(14, 224, 208, 0.3);
    }

    .nav-toggle:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(14, 224, 208, 0.5);
    }

    .nav-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: #2A2A2A;
        margin: 3px 0;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* NAVEGACIÓN MÓVIL PREMIUM */
    .nav {
        display: none;
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, rgba(42, 42, 42, 0.98), rgba(0, 0, 0, 0.95));
        backdrop-filter: blur(20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
        padding: 30px 0 35px;
        z-index: 999;
        border-bottom: 2px solid rgba(14, 224, 208, 0.3);
    }

    .nav.active,
    .nav.nav-visible {
        display: flex;
        flex-direction: column;
        align-items: center;
        animation: slideDown 0.4s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* MENÚ PRINCIPAL MÓVIL ELEGANTE */
    .nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0;
        margin-bottom: 30px;
    }

    .nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transition: all 0.3s ease;
    }

    .nav ul li:last-child {
        border-bottom: none;
    }

    .nav ul li:hover {
        background: rgba(14, 224, 208, 0.1);
        transform: translateX(10px);
    }

    .nav a {
        display: block;
        font-size: 1.3rem; /* Más grande para mejor legibilidad */
        padding: 18px 25px;
        letter-spacing: 1px;
        color: #fff;
        font-weight: 500;
        transition: all 0.3s ease;
        width: 100%;
        text-transform: uppercase;
    }

    .nav a::before {
        display: none;
    }

    .nav a:hover {
        color: #0EE0D0;
        background: transparent;
        text-shadow: 0 0 10px rgba(14, 224, 208, 0.5);
    }

    .social-icons {
        display: none;
    }

    /* BOTONES MÓVIL PREMIUM */
    .nav-buttons-mobile {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 85%;
        margin-top: 20px;
    }

    .btn-menu {
        display: block;
        width: 100%;
        margin: 0;
        padding: 16px 25px;
        font-size: 1.1rem;
        border-radius: 12px;
        font-weight: 600;
        text-align: center;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .nav-buttons-mobile .btn-menu:first-of-type {
        background: linear-gradient(135deg, #0EE0D0, #05D1CB);
        color: #2A2A2A;
        border: 2px solid transparent;
    }
    
    .nav-buttons-mobile .btn-menu:last-of-type {
        background: transparent;
        color: #fff;
        border: 2px solid #0EE0D0;
    }

    .nav-buttons-mobile .btn-menu:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(14, 224, 208, 0.4);
    }

    .nav-buttons-mobile .btn-menu:last-of-type:hover {
        background: linear-gradient(135deg, #0EE0D0, #05D1CB);
        color: #2A2A2A;
    }

    /* SECCIÓN SEGUIMIENTO MÓVIL AJUSTADA */
    .seguimiento {
        padding: 120px 4% 60px; /* Ajustado al nuevo header */
    }

    .seguimiento-container {
        padding: 30px 20px;
        margin: 0 10px;
    }

    .seguimiento h2 {
        font-size: 1.8rem;
    }

    .form-seguimiento {
        flex-direction: column;
        gap: 15px;
    }

    .form-seguimiento input {
        padding: 14px 15px;
        font-size: 1rem;
    }

    .form-seguimiento button {
        padding: 14px;
        font-size: 1.1rem;
    }

    .timeline-container {
        flex-direction: column;
        align-items: flex-start;
        margin: 20px 0;
        gap: 1.5rem;
        padding: 0;
    }

    .timeline-container::before {
        display: none;
    }

    .timeline-item {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        margin: 0;
        width: 100%;
    }

    .timeline-circle {
        position: static;
        margin: 0;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .timeline-text {
        position: static;
        white-space: normal;
        margin: 0;
        font-size: 0.95em;
        max-width: none;
        text-align: left;
    }

    .progress-line {
        display: none;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 15px 0;
    }
    
    .info-section {
        padding: 15px;
    }

    .info-section h4 {
        font-size: 1rem;
    }

    .info-section p {
        font-size: 0.9rem;
    }

    .mensaje-error {
        padding: 20px 15px;
    }

    .mensaje-error i {
        font-size: 2rem;
    }
}

/* MÓVILES PEQUEÑOS OPTIMIZADO */
@media (max-width: 480px) {
    .header {
        height: 90px;
        padding: 12px 15px;
    }

    .logo img {
        height: 75px; /* Manteniendo tamaño respetable */
    }

    .nav-toggle {
        width: 45px;
        height: 45px;
    }

    .nav-toggle span {
        width: 22px;
        height: 2px;
    }

    .nav {
        top: 90px;
        padding: 25px 0 30px;
    }

    .nav a {
        font-size: 1.2rem;
        padding: 16px 20px;
    }

    .btn-menu {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .nav-buttons-mobile {
        width: 90%;
        gap: 12px;
    }

    .seguimiento {
        padding: 105px 2% 50px; /* Ajustado al header más pequeño */
    }

    .seguimiento-container {
        padding: 25px 15px;
        margin: 0 5px;
    }

    .seguimiento h2 {
        font-size: 1.6rem;
    }

    .form-seguimiento input {
        padding: 12px;
        font-size: 0.95rem;
    }

    .form-seguimiento button {
        padding: 12px;
        font-size: 1rem;
    }

    .timeline-circle {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .timeline-text {
        font-size: 0.9em;
    }

    .info-grid {
        gap: 10px;
    }

    .info-section {
        padding: 12px;
    }

    .info-section h4 {
        font-size: 0.95rem;
        gap: 6px;
    }

    .info-section p {
        font-size: 0.85rem;
    }
}