@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@600&display=swap');

/* --- GLOBALES --- */
body {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: sans-serif;
}

/* Clase de utilidad para ocultar secciones */
.hidden {
    display: none !important;
}

/* --- LOGO HÍBRIDO --- */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.logo-mask {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-main-text {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    line-height: 0.9;
    color: white;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.logo-sub-text-container {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.logo-line {
    height: 2px;
    background-color: white;
    flex-grow: 1;
}

.logo-tag {
    background-color: white;
    color: #121212;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 0px 6px;
    margin: 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 1px;
}

/* --- BUSCADOR --- */
.search-bar {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 0.25rem;
    color: white;
    outline: none;
    transition: border-color 0.2s;
}

.search-bar:focus {
    border-color: #4a4a4a;
}

/* --- BOTONES --- */
.btn-confirmar {
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    color: #000;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-confirmar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-confirmar:hover {
    background: linear-gradient(135deg, #f0f0f0, #d0d0d0);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-confirmar:hover::before {
    left: 100%;
}

.btn-confirmar:active {
    transform: scale(0.97);
}

.btn-confirmar-disabled {
    background: #1a1a1a;
    color: #555;
    font-weight: bold;
    border: 1px solid #2a2a2a;
    cursor: not-allowed;
    letter-spacing: 0.3px;
}

/* --- MODALES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 1rem;
}

.modal-content {
    background: #121212;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #2a2a2a;
    width: 100%;
    position: relative;
}

/* --- TARJETAS DE PRODUCTOS (GRILLA) --- */
.product-card {
    background-color: #141414;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-color 0.3s,
        box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: #333;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* --- GALERÍA DE DETALLE Y ZOOM --- */
.thumbnail {
    border: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    border-radius: 6px;
    opacity: 0.7;
}

.thumbnail:hover {
    border-color: #555;
    opacity: 1;
}

.thumb-selected {
    border-color: white !important;
    opacity: 1 !important;
}

#mainImageContainer {
    overflow: hidden;
}

#mainImage {
    transition: transform 0.2s ease-out;
    transform-origin: var(--x, 50%) var(--y, 50%);
}

/* --- CUSTOM SCROLLBAR --- */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #121212;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* --- CARRITO ITEMS --- */
.cart-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #2a2a2a;
}

.cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.25rem;
}

/* --- VALIDACIÓN INLINE DE CAMPOS --- */
.campo-validable.campo-invalido {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.3);
}

.campo-validable.campo-valido {
    border-color: #22c55e !important;
}

.campo-error {
    display: none;
    color: #ef4444;
    font-size: 11px;
    margin-top: 2px;
    padding-left: 2px;
    line-height: 1.3;
}

.campo-error.visible {
    display: block;
}

/* --- MERCADOPAGO CUSTOM CHECKOUT --- */
.mp-label {
    display: block;
    color: #a1a1aa;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.mp-secure-field {
    background-color: #000;
    border: 1px solid #3f3f46;
    border-radius: 6px;
    padding: 10px 12px;
    min-height: 44px;
    transition: border-color 0.2s;
}

.mp-secure-field:focus-within {
    border-color: #71717a;
}

.mp-input {
    background-color: #000;
    border: 1px solid #3f3f46;
    border-radius: 6px;
    padding: 10px 12px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.mp-input:focus {
    border-color: #71717a;
}

.mp-select {
    background-color: #000;
    border: 1px solid #3f3f46;
    border-radius: 6px;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.mp-select:focus {
    border-color: #71717a;
}