/* Huaman Subastas - Estilo SaaS Moderno con Naranja #ff6600 */

.hs-container {
    max-width: 1080px;
    margin: 20px auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
    border: 1px solid #f1f5f9;
}

.hs-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .hs-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hs-container {
        padding: 16px;
    }
}

.hs-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.hs-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.hs-badge-save {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #ff6600;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}

.hs-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
    margin: 0 0 16px 0;
}

.hs-timer-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 14px;
    padding: 16px 20px;
    color: #fff;
    margin-bottom: 20px;
}

.hs-timer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.hs-timer-pulse {
    width: 8px;
    height: 8px;
    background-color: #ff6600;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7);
    animation: hs-pulse 1.6s infinite;
}

@keyframes hs-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 102, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 102, 0, 0); }
}

.hs-timer-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #94a3b8;
}

.hs-countdown {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hs-time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hs-time-unit span {
    font-size: 24px;
    font-weight: 800;
    font-family: monospace;
    color: #ff6600;
}

.hs-time-unit small {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
}

.hs-time-sep {
    font-size: 20px;
    font-weight: 700;
    color: #475569;
}

.hs-finished-banner {
    background: #dc2626;
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: 800;
    border-radius: 8px;
    font-size: 16px;
}

.hs-price-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 20px;
}

.hs-price-meta {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.hs-price-user {
    font-weight: 700;
    color: #ff6600;
}

.hs-price-main {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 8px;
}

.hs-currency {
    font-size: 22px;
    font-weight: 700;
}

.hs-amount {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -1px;
}

.hs-price-base {
    font-size: 12px;
    color: #64748b;
}

/* Botón Principal - Naranja #ff6600 */
.hs-btn-primary {
    width: 100%;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.35);
}

.hs-btn-primary:hover {
    background: #e05500;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.45);
}

.hs-btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.hs-history-box {
    margin-top: 24px;
}

.hs-history-box h3 {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}

.hs-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hs-history-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    border: 1px solid #f1f5f9;
}

.hs-history-list .hs-user {
    font-weight: 600;
    color: #334155;
}

.hs-history-list .hs-monto {
    font-weight: 700;
    color: #ff6600;
}

.hs-empty-history {
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}

.hs-description {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}

.hs-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.hs-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hs-modal-container {
    background: #ffffff;
    width: 90%;
    max-width: 440px;
    border-radius: 20px;
    padding: 28px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.hs-modal-overlay.active .hs-modal-container {
    transform: scale(1);
}

.hs-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
}

.hs-modal-header h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 800;
}

.hs-modal-header p {
    margin: 0 0 20px 0;
    font-size: 13px;
    color: #64748b;
}

.hs-form-group {
    margin-bottom: 16px;
}

.hs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hs-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.hs-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.hs-form-group input:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15);
}

.hs-form-hint {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

.hs-btn-submit {
    width: 100%;
    background: #ff6600;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hs-btn-submit:hover {
    background: #e05500;
}

.hs-form-status {
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.hs-status-error { color: #dc2626; }
.hs-status-success { color: #ff6600; }

/* Galería de imágenes */
.hs-gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hs-main-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.hs-main-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.hs-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.hs-thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.hs-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hs-thumb.active, .hs-thumb:hover {
    border-color: #ff6600;
    transform: scale(1.03);
}

.hs-sku {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 500;
}

.hs-sku span {
    color: #0f172a;
    font-weight: 700;
}

/* Badge Superior (Subasta Flash) */
.hs-top-badge {
    display: inline-block;
    background: #fff3eb;
    color: #ff6600;
    font-weight: 400;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 8px;
    border: 1px solid #ffe0cc;
}

/* Badge Precio Tienda encima del contador */
.hs-badge-store-above {
    display: inline-flex;
    align-items: center;
    background: #ff6600;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.25);
}

.hs-badge-store-above span {
    margin-left: 5px;
    font-weight: 500;
}

/* Carrusel de imágenes */
.hs-main-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.hs-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.6);
    color: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 5;
}

.hs-carousel-btn:hover {
    background: #ff6600;
    transform: translateY(-50%) scale(1.1);
}

.hs-carousel-btn.hs-prev {
    left: 10px;
}

.hs-carousel-btn.hs-next {
    right: 10px;
}