/**
 * Precio Oro Live - Frontend Styles
 * Estilos para la visualización de precios del oro
 */

/* ===========================
   BLOQUE MINIMALISTA
   =========================== */

.precio-oro-minimalista {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
}

.precio-oro-titulo {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 25px 0;
    color: #333;
}

.precio-oro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.precio-oro-item {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.precio-oro-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.precio-oro-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
    color: #666;
}

.precio-oro-valor {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.precio-numero {
    font-size: 28px;
    font-weight: 700;
    color: #d4af37; /* Dorado */
}

.precio-unidad {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

.precio-oro-update {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.precio-oro-update small {
    color: #999;
    font-size: 12px;
}

/* ===========================
   PÁGINA COMPLETA
   =========================== */

.precio-oro-completo {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.precio-oro-main-title {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 25px 0;
    color: #333;
    text-align: center;
}

.precio-oro-contacto {
    background: #f0f0f0;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 40px;
}

.precio-oro-llamar {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
    color: #666;
}

.precio-oro-telefono {
    font-size: 28px;
    font-weight: 700;
    color: #d4af37;
    margin: 0;
}

.precio-oro-horario {
    font-size: 12px;
    color: #999;
    margin: 10px 0 0 0;
}

.precio-oro-categorias {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 50px;
}

.precio-oro-categoria {
    flex: 0 1 280px;
    max-width: 320px;
}

.precio-oro-categoria {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.precio-oro-categoria:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.precio-categoria-titulo {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 20px 0;
    color: #333;
    text-align: center;
}

.precio-categoria-precio {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0;
    border-top: 2px solid #d4af37;
    border-bottom: 2px solid #d4af37;
}

.precio-numero-grande {
    font-size: 40px;
    font-weight: 700;
    color: #d4af37;
}

.precio-unidad-grande {
    font-size: 18px;
    color: #999;
    font-weight: 400;
    margin-left: 5px;
}

.precio-categoria-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    text-align: left;
}

.precio-oro-seccion-plata {
    background: #f8f8f8;
    padding: 40px;
    border-radius: 8px;
    margin-top: 50px;
    text-align: center;
}

.precio-plata-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0 auto 30px auto;
    max-width: 800px;
}

.precio-plata-destacado {
    max-width: 400px;
    margin: 0 auto;
}

/* ===========================
   PRECIO INDIVIDUAL
   =========================== */

.precio-oro-single {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
}

.precio-oro-single .precio-label {
    font-weight: 600;
    color: #333;
}

.precio-oro-single .precio-valor {
    font-size: 1.2em;
    font-weight: 700;
    color: #d4af37;
}

.precio-oro-single .precio-unidad {
    color: #999;
    font-size: 0.9em;
}

/* ===========================
   ANIMACIONES
   =========================== */

.precio-updating {
    animation: priceFlash 1s ease;
}

@keyframes priceFlash {
    0%, 100% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(212, 175, 55, 0.2);
    }
}

/* ===========================
   ERROR STATES
   =========================== */

.precio-oro-error {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #c33;
    font-size: 14px;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .precio-oro-grid {
        grid-template-columns: 1fr;
    }
    
    .precio-oro-categorias {
        flex-direction: column;
        align-items: center;
    }
    
    .precio-oro-categoria {
        width: 100%;
        max-width: 100%;
    }
    
    .precio-oro-main-title {
        font-size: 24px;
    }
    
    .precio-numero-grande {
        font-size: 32px;
    }
    
    .precio-oro-telefono {
        font-size: 22px;
    }
    
    .precio-oro-minimalista,
    .precio-oro-contacto,
    .precio-oro-categoria,
    .precio-oro-seccion-plata {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .precio-numero {
        font-size: 22px;
    }
    
    .precio-numero-grande {
        font-size: 28px;
    }
}