/* ==============================
   SEGUIMIENTO.CSS
   Solo estilos específicos de esta página.
   El header, logo, nav, botones y sus responsive
   ya vienen de styles.css — NO se duplican aquí.
   Paleta y espaciados alineados con login.php, registro.php e index.php.
============================== */

:root {
    --gucoby-teal: #0EE0D0;
    --gucoby-dark: #2A2A2A;
    --gucoby-blue: #0096c7;
    --line: #e9ecef;
    --text-soft: #6b7280;
}

.seguimiento {
    background: #f8f9fa;
    padding: 150px 8% 60px;
    min-height: 100vh;
}

.seguimiento-container {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    padding: 30px 32px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--line);
}

.seguimiento h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gucoby-dark);
    margin-bottom: 6px;
    letter-spacing: 0;
}
.seguimiento h2::after { display: none; }

.seguimiento p {
    color: var(--text-soft);
    font-size: 13.5px;
    margin-bottom: 20px;
}

.form-seguimiento {
    display: flex;
    gap: 10px;
}

.form-seguimiento input {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    color: var(--gucoby-dark);
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-seguimiento input:focus {
    border-color: var(--gucoby-teal);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 224, 208, 0.12);
}

.form-seguimiento button {
    background: var(--gucoby-dark);
    color: #ffffff;
    font-weight: 700;
    font-size: 13.5px;
    padding: 11px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.form-seguimiento button:hover {
    background: #454545;
}

.resultado {
    margin-top: 24px;
    text-align: left;
    color: var(--gucoby-dark);
}

/* ==============================
   DETALLES DEL PEDIDO Y TIMELINE
============================== */
.pedido-detalle {
    margin-top: 24px;
    text-align: left;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.pedido-detalle h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gucoby-dark);
    letter-spacing: 0;
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 32px 0 28px;
    padding: 16px 0 0;
}

.timeline-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.timeline-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef0f2;
    color: #a7acb2;
    font-size: 1.4em;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.timeline-circle i {
    font-size: 1em;
}

.timeline-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-soft);
    text-align: center;
    padding: 0 4px;
    max-width: 84px;
    letter-spacing: 0;
}

.timeline-item.done .timeline-circle {
    background: linear-gradient(135deg, var(--gucoby-teal), #05c8ba);
    color: #fff;
    box-shadow: 0 3px 12px rgba(14,224,208,0.3);
}
.timeline-item.done .timeline-text { color: var(--gucoby-dark); }

.timeline-item.active .timeline-circle {
    background: linear-gradient(135deg, var(--gucoby-teal), #05c8ba);
    color: #fff;
    transform: scale(1.12);
    box-shadow: 0 6px 18px rgba(14,224,208,0.4);
    animation: pulse-active 2s infinite;
}
.timeline-item.active .timeline-text {
    color: var(--gucoby-dark);
    font-weight: 700;
}

.timeline-item.cancelado .timeline-circle {
    background: linear-gradient(135deg, #e63946, #c0392b);
    color: #fff;
    transform: scale(1.12);
}
.timeline-item.cancelado .timeline-text {
    color: #c0392b;
    font-weight: 700;
}

.progress-bar-bg {
    position: absolute;
    top: 44px;
    left: 8%;
    right: 8%;
    height: 4px;
    background: var(--line);
    z-index: 1;
    border-radius: 3px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gucoby-teal), var(--gucoby-blue));
    border-radius: 3px;
    transition: width 0.8s ease;
}

/* ==============================
   GRID DE INFORMACIÓN DEL PEDIDO
============================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.info-section {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 10px;
    border-left: 4px solid var(--gucoby-teal);
    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.06);
}

.info-section h4 {
    color: var(--gucoby-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0;
}

.info-section h4 i {
    color: var(--gucoby-teal);
    font-size: 13px;
}

.info-section p {
    margin-bottom: 6px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #495057;
}

.info-section p strong {
    color: var(--gucoby-dark);
    font-weight: 600;
    min-width: 80px;
    display: inline-block;
}

/* ==============================
   ESTADO CANCELADO
============================== */
.estado-cancelado {
    margin-top: 24px;
    padding: 22px;
    background: #fdeaea;
    border: 1.5px solid #e63946;
    border-radius: 12px;
    text-align: center;
}
.estado-cancelado i {
    font-size: 2.4em;
    color: #c0392b;
    margin-bottom: 10px;
    display: block;
}
.estado-cancelado h4 {
    color: #c0392b !important;
    font-size: 15px;
    font-weight: 700;
}
.estado-cancelado p {
    color: var(--text-soft);
    font-size: 12.5px;
}

/* ==============================
   AVISO DE ESTADO (pendiente / confirmado)
============================== */
.aviso-estado-pago {
    text-align: center;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
}
.aviso-estado-pago.pendiente {
    background: #fff3cd;
    border: 1px solid #ffe69c;
    color: #8a6408;
}
.aviso-estado-pago.confirmado {
    background: #e1f9ef;
    border: 1px solid #b7ede4;
    color: #0f7a52;
}

/* ==============================
   FOTOS DE ENTREGA
============================== */
.fotos-entrega-section {
    margin-top: 22px;
    padding: 18px;
    background: #f4fbf9;
    border-radius: 12px;
    border: 1.5px solid var(--gucoby-teal);
}
.fotos-entrega-section h4 {
    color: var(--gucoby-dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
}
.fotos-entrega-section h4 i { color: var(--gucoby-teal); }

.galeria-fotos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.foto-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}
.foto-card:hover { transform: scale(1.03); }
.foto-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}
.foto-meta {
    padding: 7px 10px;
    background: #fff;
    text-align: center;
    font-size: 11px;
    color: var(--text-soft);
}
.foto-num {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255,255,255,0.92);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--gucoby-dark);
}

/* ==============================
   MENSAJE DE ERROR
============================== */
.mensaje-error {
    text-align: center;
    padding: 26px;
    background: #fdeaea;
    border: 1px solid #f5c6c6;
    border-radius: 12px;
    color: #c0392b;
}

.mensaje-error i {
    font-size: 2.2em;
    margin-bottom: 10px;
    color: #c0392b;
    display: block;
}

.mensaje-error p {
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 6px;
}

.mensaje-error small {
    display: block;
    font-size: 12px;
    color: var(--text-soft);
    margin-top: 4px;
}

/* ==============================
   MODAL DE FOTO
============================== */
.modal-foto {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.92);
}
.modal-foto img {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    max-width: 92%; max-height: 92%;
    border-radius: 8px;
}
.modal-foto .cerrar {
    position: absolute;
    top: 14px; right: 22px;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

/* ==============================
   ANIMACIONES
============================== */
@keyframes pulse-active {
    0%, 100% { box-shadow: 0 6px 18px rgba(14,224,208,0.4); }
    50% { box-shadow: 0 6px 24px rgba(14,224,208,0.65); }
}

@keyframes shake {
    0%, 100% { transform: scale(1.12) translateX(0); }
    25% { transform: scale(1.12) translateX(-4px); }
    75% { transform: scale(1.12) translateX(4px); }
}
.timeline-item.cancelado .timeline-circle { animation: shake 0.4s; }

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 900px) {
    .seguimiento { padding: 118px 4% 50px; }
    .seguimiento-container { padding: 22px 18px; margin: 0 10px; }
    .seguimiento h2 { font-size: 19px; }

    .form-seguimiento { flex-direction: column; gap: 10px; }
    .form-seguimiento input { padding: 12px 14px; font-size: 14px; }
    .form-seguimiento button { padding: 12px; font-size: 13.5px; justify-content: center; }

    .timeline-container {
        flex-direction: column;
        align-items: flex-start;
        margin: 18px 0;
        gap: 14px;
        padding: 0;
    }
    .progress-bar-bg { display: none; }
    .timeline-item {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    .timeline-circle { width: 42px; height: 42px; font-size: 1.1em; margin-bottom: 0; }
    .timeline-text { text-align: left; max-width: none; }

    .info-grid { grid-template-columns: 1fr; gap: 10px; margin: 14px 0; }
    .info-section { padding: 13px; }

    .mensaje-error { padding: 18px 14px; }
    .mensaje-error i { font-size: 1.8em; }
}

@media (max-width: 480px) {
    .seguimiento { padding: 108px 3% 40px; }
    .seguimiento-container { padding: 18px 14px; margin: 0 4px; }
    .seguimiento h2 { font-size: 17px; }

    .timeline-circle { width: 36px; height: 36px; font-size: 1em; }
    .timeline-text { font-size: 11.5px; }

    .info-section { padding: 11px; }
    .info-section h4 { font-size: 12.5px; }
    .info-section p { font-size: 12px; }
}