/* ==============================
   RESET
============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f5f2ee;
}

/* ==============================
   CONTENEDOR
============================== */

.pedidos-page {
    min-height: 100vh;
    background: url('../imgs/fondo_l.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    
}
/* Capa oscura vino encima */
.pedidos-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(122, 28, 28, 0.55),
        rgba(122, 28, 28, 0.35)
    );
    backdrop-filter: blur(4px);

}

.pedidos-box {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: #f5f2ee;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    text-align: center;
    margin-top: 2%;

}

.pedidos-box h1 {
    color: #7a1c1c;
    margin-bottom: 10px;
}

.pedidos-box p {
    color: #666;
    margin-bottom: 40px;
}
/* =============================
   BOTON VOLVER
============================= */

.back-btn {
    position: absolute;
    top: 30px;
    left: 40px;
    background: #f5f2ee;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    color: #7a1c1c;
    font-weight: 600;
    z-index: 2;
}

/* ==============================
   BUSQUEDA
============================== */

.search-box {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border-radius: 30px;
    border: 1px solid #ddd;
    outline: none;
}

.search-box input:focus {
    border-color: #7a1c1c;
    box-shadow: 0 0 0 3px rgba(122,28,28,0.15);
}

.search-box button {
    padding: 15px 30px;
    border-radius: 30px;
    border: none;
    background: #7a1c1c;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.search-box button:hover {
    background: #a32626;
}

/* ==============================
   CARD PEDIDO
============================== */

.pedido-card {
    text-align: left;
    padding: 30px;
    border-radius: 25px;
    background: #fdfcfa;
    border: 1px solid #eee;
    margin-bottom: 10px;
}

.pedido-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.pedido-info h3 {
    color: #7a1c1c;
}

.fecha {
    color: #777;
}

/* ==============================
   PROGRESS BAR
============================== */

.progress-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-line {
    position: absolute;
    top: 18px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e5e5e5;
    z-index: 1;
}

.step {
    position: relative;
    text-align: center;
    z-index: 2;
    width: 100%;
}

.circle {
    width: 35px;
    height: 35px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 auto 10px;
    transition: 0.3s;
}

.step.active .circle {
    background: #7a1c1c;
    box-shadow: 0 0 0 5px rgba(122,28,28,0.15);
}

.step span {
    font-size: 13px;
    color: #666;
}

.step.active span {
    color: #7a1c1c;
    font-weight: 600;
}

/* RESPONSIVE */

@media (max-width: 700px) {

    .search-box {
        flex-direction: column;
    }

    .pedidos-box {
        padding: 30px;
    }

    .progress-container {
        flex-direction: column;
        gap: 25px;
    }

    .progress-line {
        display: none;
    }
}