body{
    margin:0;
    padding:0;
    font-family:Arial, Helvetica, sans-serif;
    background:linear-gradient(135deg,#eef3f8,#ffffff);
}

.contenedor{
    width:430px;
    max-width:90%;
    margin:35px auto;
    background:white;
    border-radius:22px;
    padding:32px;
    text-align:center;
    box-shadow:0 18px 45px rgba(0,0,0,.14);
}

.encabezado{
    transform:translateY(-6px);
    margin-bottom:20px;
}

.logo{
    width:min(320px,90%) !important;
    display:block;
    margin:0 auto 18px auto;
}

.encabezado h2{
    color:#0A2D5E;
    font-size:30px;
    margin:8px 0;
}

.encabezado p{
    color:#777;
    margin:0;
}

.encabezado p span{
    color:#F7941D;
}

/* MENÚ PRINCIPAL */

.menu-principal{
    display:flex;
    flex-direction:column;
    gap:16px;
    margin-top:28px;
}

.opcion-card{
    display:flex;
    align-items:center;
    gap:16px;
    padding:18px;
    border-radius:18px;
    background:white;
    box-shadow:0 8px 22px rgba(0,0,0,.08);
    cursor:pointer;
    transition:.25s;
    text-align:left;
    border:1px solid #e6edf5;
}

.opcion-card:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 28px rgba(0,0,0,.12);
}

.opcion-icono{
    width:72px;
    height:72px;
    min-width:72px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
}

.opcion-texto{
    flex:1;
}

.opcion-texto h3{
    margin:0 0 8px 0;
    color:#0A2D5E;
    font-size:22px;
}

.opcion-texto h3::after{
    content:"";
    display:block;
    width:34px;
    height:4px;
    border-radius:10px;
    margin-top:7px;
}

.opcion-texto p{
    margin:0;
    color:#555;
    font-size:15px;
    line-height:1.45;
}

.opcion-flecha{
    font-size:42px;
    font-weight:bold;
    color:#0A2D5E;
}

.opcion-direccion{
    border-color:#b9d2ff;
}

.opcion-direccion .opcion-icono{
    background:#eef5ff;
}

.opcion-direccion .opcion-texto h3::after{
    background:#2f7df6;
}

.opcion-rastreo{
    border-color:#ffd0a1;
}

.opcion-rastreo .opcion-icono{
    background:#fff2e7;
}

.opcion-rastreo .opcion-texto h3::after{
    background:#F7941D;
}

.opcion-rastreo .opcion-flecha{
    color:#F7941D;
}

.opcion-ayuda{
    border-color:#c9e9c9;
}

.opcion-ayuda .opcion-icono{
    background:#f0faef;
}

.opcion-ayuda .opcion-texto h3::after{
    background:#43a047;
}

.opcion-ayuda .opcion-flecha{
    color:#43a047;
}

.confianza{
    margin-top:18px;
    color:#9aa3b2;
    font-size:14px;
    font-weight:bold;
    text-align:center;
    letter-spacing:.3px;
}

.confianza span{
    margin:0 8px;
    color:#F7941D;
}

.version-app{
    margin-top:10px;
    margin-bottom:6px;
    text-align:center;
    font-size:11px;
    color:#B5B5B5;
    letter-spacing:.5px;
}

/* BUSCADOR */

.buscador{
    margin-top:20px;
}

input{
    width:100%;
    padding:15px;
    font-size:17px;
    border:2px solid #ddd;
    border-radius:12px;
    box-sizing:border-box;
}

input:focus{
    outline:none;
    border-color:#F7941D;
}

button{
    margin-top:16px;
    width:100%;
    background:#F7941D;
    color:white;
    border:none;
    padding:15px;
    border-radius:12px;
    cursor:pointer;
    font-size:17px;
    font-weight:bold;
    transition:.25s;
}

button:hover{
    background:#d97800;
    transform:translateY(-2px);
}

button:disabled{
    background:#c9c9c9;
    cursor:not-allowed;
    transform:none;
}

/* TARJETAS INTERNAS */

#resultado{
    margin-top:28px;
}

.tarjeta{
    background:white;
    border-radius:20px;
    padding:24px;
    text-align:left;
    box-shadow:0 10px 25px rgba(0,0,0,.10);
    border-top:6px solid #F7941D;
    animation:aparecer .45s ease;
    margin-top:15px;
}

@keyframes aparecer{
    from{opacity:0; transform:translateY(16px);}
    to{opacity:1; transform:translateY(0);}
}

.estado{
    display:block;
    background:#0A2D5E;
    color:white;
    text-align:center;
    padding:14px 20px;
    border-radius:30px;
    font-size:19px;
    font-weight:bold;
    margin-bottom:18px;
}

.mensajeEstado{
    color:#555;
    font-size:16px;
    text-align:center;
    line-height:1.6;
    margin-bottom:20px;
}

.consulta{
    text-align:center;
    color:#888;
    font-size:13px;
    margin-bottom:20px;
}

.tarjeta hr{
    border:none;
    border-top:1px solid #ececec;
    margin:20px 0;
}

.campo{
    margin-bottom:18px;
}

.etiqueta{
    color:#888;
    font-size:13px;
    text-transform:uppercase;
    margin-bottom:4px;
}

.valor{
    color:#222;
    font-size:18px;
    font-weight:bold;
    word-break:break-word;
}

/* PROGRESO */

.progreso-contenedor{
    margin:22px 0;
}

.progreso-info{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:14px;
    color:#555;
    margin-bottom:8px;
}

.progreso-info strong{
    color:#0A2D5E;
}

.barra{
    width:100%;
    height:12px;
    background:#e9edf2;
    border-radius:20px;
    overflow:hidden;
}

.barra-avance{
    height:100%;
    background:#F7941D;
    border-radius:20px;
    transition:width .6s ease;
}

/* BOTONES SECUNDARIOS */

.boton-secundario{
    padding:12px;
    font-size:16px;
    margin-top:20px;
    background:#0A2D5E;
}

.boton-secundario:hover{
    background:#061f42;
}

.volver-inicio{
    margin-bottom:20px;
}

/* COPIAR */

.fila-copiar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
}

.fila-copiar .valor{
    flex:1;
}

.btn-copiar{
    width:auto;
    margin-top:0;
    padding:8px 12px;
    font-size:13px;
    border-radius:8px;
    background:#0A2D5E;
}

.btn-copiar:hover{
    background:#061f42;
    transform:none;
}

/* DETALLES VER MÁS */

.detalles{
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
    cursor:pointer;
    transition:.3s;
}

.detalles.expandido{
    -webkit-line-clamp:unset;
    overflow:visible;
}

.ver-mas{
    display:inline-block;
    margin-top:10px;
    padding:7px 12px;
    border:1px solid #0A2D5E;
    border-radius:20px;
    color:#0A2D5E;
    font-size:13px;
    font-weight:bold;
    cursor:pointer;
    background:#f5f9ff;
}

/* NOTA RASTREO */

.nota-rastreo{
    margin-top:18px;
    padding:14px;
    background:#EEF6FF;
    border-left:5px solid #0A2D5E;
    border-radius:10px;
    color:#444;
    font-size:14px;
    line-height:1.5;
    text-align:left;
}

.nota-rastreo strong{
    color:#0A2D5E;
}

/* ERRORES Y CARGA */

.error{
    border-top:6px solid #dc3545;
}

.error h2,
.error p{
    text-align:center;
}

.error h2{
    color:#dc3545;
}

.cargando{
    text-align:center;
}

.spinner{
    width:48px;
    height:48px;
    border:5px solid #e6e6e6;
    border-top:5px solid #F7941D;
    border-radius:50%;
    margin:0 auto 18px auto;
    animation:girar 1s linear infinite;
}

@keyframes girar{
    from{transform:rotate(0deg);}
    to{transform:rotate(360deg);}
}

/* FAQ */

.faq{
    margin-top:28px;
}

.faq-item{
    background:#ffffff;
    border:1px solid #dfe6ee;
    border-radius:14px;
    margin-bottom:14px;
    overflow:hidden;
    box-shadow:0 4px 12px rgba(0,0,0,.04);
    transition:.25s;
}

.faq-item:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px rgba(0,0,0,.08);
}

.faq-item.activo{
    border-color:#F7941D;
}

.faq-pregunta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:15px;
    cursor:pointer;
}

.faq-item.activo .faq-pregunta{
    background:#fff8f0;
}

.faq-izquierda{
    display:flex;
    align-items:center;
    gap:12px;
}

.faq-numero{
    min-width:34px;
    height:34px;
    border-radius:50%;
    background:#F7941D;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    font-size:16px;
}

.faq-texto{
    color:#0A2D5E;
    font-weight:bold;
    font-size:15px;
    line-height:1.4;
}

.faq-flecha{
    color:#0A2D5E;
    font-weight:bold;
    font-size:18px;
    transition:.25s;
}

.faq-item.activo .faq-flecha{
    transform:rotate(180deg);
}

.faq-respuesta{
    display:none;
    padding:0 15px 15px 61px;
    color:#444;
    font-size:14px;
    line-height:1.6;
    text-align:left;
}

.faq-respuesta strong{
    color:#0A2D5E;
}

.faq-item.activo .faq-respuesta{
    display:block;
    animation:abrirFaq .25s ease;
}

@keyframes abrirFaq{
    from{
        opacity:0;
        transform:translateY(-6px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* RESPONSIVE */

@media(max-width:600px){
    .contenedor{
        width:auto;
        margin:18px;
        padding:24px;
    }

    .logo{
        width:min(300px,90%) !important;
    }

    .encabezado h2{
        font-size:26px;
    }

    .estado{
        font-size:17px;
    }

    .valor{
        font-size:17px;
    }

    .opcion-card{
        padding:16px;
        gap:14px;
    }

    .opcion-icono{
        width:64px;
        height:64px;
        min-width:64px;
        font-size:30px;
    }

    .opcion-texto h3{
        font-size:20px;
    }

    .opcion-texto p{
        font-size:14px;
    }

    .opcion-flecha{
        font-size:36px;
    }

    .fila-copiar{
        align-items:flex-start;
    }

    .btn-copiar{
        padding:8px 10px;
        font-size:12px;
    }
}

.aviso-copiado{
    position:fixed;
    bottom:24px;
    left:50%;
    transform:translateX(-50%);
    background:#0A2D5E;
    color:white;
    padding:10px 18px;
    border-radius:20px;
    font-size:14px;
    font-weight:bold;
    box-shadow:0 8px 20px rgba(0,0,0,.20);
    z-index:9999;
}